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, toStringgetLogger, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconvertJSContext, getContextIdentifier, getParentContexts, getRootContextsgetDependencies, getId, getPluginName, getRights, getScriptsprotected boolean _isPrivate
protected Pattern _workspaceMatcher
protected boolean _reverseWorkspaceMather
public AbstractStaticRightAssignmentContext()
public void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void configure(Configuration configuration) throws ConfigurationException
configure in interface Configurableconfigure in class StaticFileImportsClientSideElementConfigurationExceptionpublic List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String,Object> contextParameters)
ClientSideElementgetScripts in interface ClientSideElementgetScripts in class StaticFileImportsClientSideElementignoreRights - True to ignore the rights verification.contextParameters - Contextuals parameters transmitted by the environment.public boolean isPrivate()
RightAssignmentContextisPrivate in interface RightAssignmentContextprotected boolean matchWorkspace(Map<String,Object> contextParameters)
contextParameters - The contextual parameters