public class ContentRightAssignmentContext extends AbstractStaticRightAssignmentContext
RightAssignmentContext for assign rights to a Content or a jcr node root holding the contentsClientSideElement.Script, ClientSideElement.ScriptFile| Modifier and Type | Field and Description |
|---|---|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
protected RootContentHelper |
_rootContentHelper
The root content helper
|
_context, _isPrivate, _reverseWorkspaceMather, _workspaceMatcher_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script| Constructor and Description |
|---|
ContentRightAssignmentContext() |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertJSContext(Object context)
From a JavaScript context object, converts it into a Java object
|
String |
getContextIdentifier(Object context)
Gets the identifier of the object context
|
Set<Object> |
getParentContexts(Object context)
Get the parent contexts of the object context
|
protected Object |
getRootContent()
Gets the root of contents
|
List<Object> |
getRootContexts(Map<String,Object> contextParameters)
Get the list of root contexts if the current workspace matches the allowed workspace
|
List<ClientSideElement.Script> |
getScripts(boolean ignoreRights,
Map<String,Object> contextParameters)
This method return the scripts that will be used on client side.
|
void |
service(ServiceManager smanager) |
configure, contextualize, isPrivate, matchWorkspace_configureClass, _configureParameters, _configureScript, configureInitialParameters_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getRights, getScripts, hasRight, setPluginInfo, toStringgetLogger, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDependencies, getId, getPluginName, getRights, getScriptsprotected AmetysObjectResolver _resolver
protected RootContentHelper _rootContentHelper
public ContentRightAssignmentContext()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class StaticFileImportsClientSideElementServiceExceptionpublic Object convertJSContext(Object context)
RightAssignmentContextcontext - the JS context objectpublic String getContextIdentifier(Object context)
RightAssignmentContextcontext - The object contextpublic Set<Object> getParentContexts(Object context)
RightAssignmentContextcontext - The object contextnull otherwisepublic List<Object> getRootContexts(Map<String,Object> contextParameters)
RightAssignmentContextcontextParameters - The contextual parameterspublic List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String,Object> contextParameters)
ClientSideElementgetScripts in interface ClientSideElementgetScripts in class AbstractStaticRightAssignmentContextignoreRights - True to ignore the rights verification.contextParameters - Contextuals parameters transmitted by the environment.protected Object getRootContent()