public class CallScopeResolver extends java.lang.Object implements ScopeResolver
Constructor and Description |
---|
CallScopeResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
isApplicationEventReceiver(Event.Scope scope)
Returns if this scope receives events of the given event scope
|
boolean |
needsWebsockets()
Returns if websockets are required
|
void |
notifyScopeObjectStateChange(ScopeObjectRegistry.ScopeObject scopeObject,
WGA wga,
DesignResourceReference ref)
Should be called when a scope object has changed its state, so the resolver can trigger necessary actions to persist this state
|
java.util.List<ApplicationEventReceiver> |
resolveApplicationEventReceivers(WGA wga,
java.lang.String dbKey,
Event event)
Resolves object registries that receive application events in this scope
|
ScopeObjectRegistry |
resolveObjectRegistry(WGA wga,
DesignResourceReference ref)
Resolves the object registry for the current scope in the current environment
|
public ScopeObjectRegistry resolveObjectRegistry(WGA wga, DesignResourceReference ref) throws de.innovationgate.webgate.api.WGException
ScopeResolver
resolveObjectRegistry
in interface ScopeResolver
wga
- The environmentref
- Reference of an object that is to be created. Resolvers may choose their resolving strategy based on this.de.innovationgate.webgate.api.WGException
public boolean isApplicationEventReceiver(Event.Scope scope)
ScopeResolver
isApplicationEventReceiver
in interface ScopeResolver
public java.util.List<ApplicationEventReceiver> resolveApplicationEventReceivers(WGA wga, java.lang.String dbKey, Event event) throws de.innovationgate.webgate.api.WGException
ScopeResolver
resolveApplicationEventReceivers
in interface ScopeResolver
wga
- The environmentdbKey
- Key of the app throwing the eventde.innovationgate.webgate.api.WGException
public void notifyScopeObjectStateChange(ScopeObjectRegistry.ScopeObject scopeObject, WGA wga, DesignResourceReference ref) throws de.innovationgate.webgate.api.WGException
ScopeResolver
notifyScopeObjectStateChange
in interface ScopeResolver
scopeObject
- TODOwga
- The environmentref
- Reference of the object with changed statede.innovationgate.webgate.api.WGException
public boolean needsWebsockets()
ScopeResolver
needsWebsockets
in interface ScopeResolver