public abstract class AbstractStaticRightAssignmentContext extends StaticClientSideElement implements RightAssignmentContext, Contextualizable
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected Context |
_context
The avalon context
|
protected boolean |
_isPrivate
The private property
|
protected boolean |
_reverseWorkspaceMather
Consider _workspaceMatcher negatively
|
protected Pattern |
_workspaceMatcher
The regexp that should match current workspace
|
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
AbstractStaticRightAssignmentContext() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration) |
void |
contextualize(Context context) |
List<ClientSideElement.Script> |
getScripts(boolean ignoreRights,
Map<String,Object> contextParameters)
This method return the scripts that will be used on client side.
|
boolean |
isPrivate()
Determines if this rights assignment context is a private context
|
protected boolean |
matchWorkspace(Map<String,Object> contextParameters)
Determines if the current workspace matches the configured workspace regexp
|
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getRights, getScripts, hasRight, service, setPluginInfo, toString
getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
convertJSContext, getContextIdentifier, getParentContexts, getRootContexts
getDependencies, getId, getPluginName, getRights, getScripts
protected boolean _isPrivate
protected Pattern _workspaceMatcher
protected boolean _reverseWorkspaceMather
public AbstractStaticRightAssignmentContext()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class StaticFileImportsClientSideElement
ConfigurationException
public List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String,Object> contextParameters)
ClientSideElement
getScripts
in interface ClientSideElement
getScripts
in class StaticFileImportsClientSideElement
ignoreRights
- True to ignore the rights verification.contextParameters
- Contextuals parameters transmitted by the environment.public boolean isPrivate()
RightAssignmentContext
isPrivate
in interface RightAssignmentContext
protected boolean matchWorkspace(Map<String,Object> contextParameters)
contextParameters
- The contextual parameters