public class SessionScopeResolver extends java.lang.Object implements ScopeResolver
| Constructor and Description |
|---|
SessionScopeResolver() |
| Modifier and Type | Method and Description |
|---|---|
static ScopeObjectRegistry |
getRegistry(javax.servlet.http.HttpSession session,
java.lang.String dbKey,
boolean create) |
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
ScopeResolverresolveObjectRegistry in interface ScopeResolverwga - The environmentref - Reference of an object that is to be created. Resolvers may choose their resolving strategy based on this.de.innovationgate.webgate.api.WGExceptionpublic static ScopeObjectRegistry getRegistry(javax.servlet.http.HttpSession session, java.lang.String dbKey, boolean create) throws de.innovationgate.webgate.api.WGException
de.innovationgate.webgate.api.WGExceptionpublic boolean isApplicationEventReceiver(Event.Scope scope)
ScopeResolverisApplicationEventReceiver in interface ScopeResolverpublic java.util.List<ApplicationEventReceiver> resolveApplicationEventReceivers(WGA wga, java.lang.String dbKey, Event event) throws de.innovationgate.webgate.api.WGException
ScopeResolverresolveApplicationEventReceivers in interface ScopeResolverwga - The environmentdbKey - Key of the app throwing the eventde.innovationgate.webgate.api.WGExceptionpublic void notifyScopeObjectStateChange(ScopeObjectRegistry.ScopeObject scopeObject, WGA wga, DesignResourceReference ref) throws de.innovationgate.webgate.api.WGException
ScopeResolvernotifyScopeObjectStateChange in interface ScopeResolverscopeObject - TODOwga - The environmentref - Reference of the object with changed statede.innovationgate.webgate.api.WGExceptionpublic boolean needsWebsockets()
ScopeResolverneedsWebsockets in interface ScopeResolver