public class PortletScopeObjectContext extends java.lang.Object implements ScopeObjectContext
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PORTLETITEM_CONFIGPROPNAMES |
Constructor and Description |
---|
PortletScopeObjectContext(TMLPortlet portlet) |
Modifier and Type | Method and Description |
---|---|
void |
afterUsage(ScopeObjectRegistry.ScopeObject so)
Called after the scope object was used
|
void |
beforeUsage(ScopeObjectRegistry.ScopeObject so)
Called after the scope object has retrieved from the registry
|
com.google.gson.JsonObject |
transformStateToExtract(com.google.gson.JsonObject state,
DesignResourceReference ref)
Called after extracting state from the scope object, so the scope can optionally do some transformation
before setting the state to the registry.
|
com.google.gson.JsonObject |
transformStateToInject(com.google.gson.JsonObject state,
DesignResourceReference ref)
Called before injecting state to the scope object, so the scope can optionally do some transformation
before setting it to the object.
|
public static final java.lang.String PORTLETITEM_CONFIGPROPNAMES
public PortletScopeObjectContext(TMLPortlet portlet)
public com.google.gson.JsonObject transformStateToExtract(com.google.gson.JsonObject state, DesignResourceReference ref) throws de.innovationgate.webgate.api.WGException
ScopeObjectContext
transformStateToExtract
in interface ScopeObjectContext
state
- The original stateref
- TODOde.innovationgate.webgate.api.WGException
public com.google.gson.JsonObject transformStateToInject(com.google.gson.JsonObject state, DesignResourceReference ref) throws de.innovationgate.webgate.api.WGException
ScopeObjectContext
transformStateToInject
in interface ScopeObjectContext
state
- The original stateref
- TODOde.innovationgate.webgate.api.WGException
public void beforeUsage(ScopeObjectRegistry.ScopeObject so) throws de.innovationgate.webgate.api.WGException
ScopeObjectContext
beforeUsage
in interface ScopeObjectContext
so
- The scope objectde.innovationgate.webgate.api.WGException
public void afterUsage(ScopeObjectRegistry.ScopeObject so) throws de.innovationgate.webgate.api.WGException
ScopeObjectContext
afterUsage
in interface ScopeObjectContext
so
- The scope objectde.innovationgate.webgate.api.WGException