Class ACLAmetysObjectRightAssignmentContext
java.lang.Object
org.ametys.plugins.repository.rights.ACLAmetysObjectRightAssignmentContext
- All Implemented Interfaces:
RightAssignmentContext,ClientSideElement,PluginAware,Serviceable
public class ACLAmetysObjectRightAssignmentContext
extends Object
implements RightAssignmentContext, Serviceable, PluginAware
Private
This implementation can be used to get a
It is not supposed to be available to get or set assignments.
RightAssignmentContext for ACLAmetysObject.This implementation can be used to get a
ACLAmetysObject from a JS context.It is not supposed to be available to get or set assignments.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe Ametys object resolverstatic final StringThe id of this right context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertJSContext(Object jsContext) From a JavaScript context object, converts it into a Java objectgetContextIdentifier(Object context) Gets the identifier of the object contextThis method returns the list of dependencies, sorted by extension point.getId()Get the id of the element.getParentContexts(Object context) Get the parent contexts of the object contextGet the plugin name where the control was declaredThis method return the right that will be needed on client side.getRootContexts(Map<String, Object> contextParameters) Get the list of root contexts if the current workspace matches the allowed workspacegetScripts(boolean ignoreRights, Map<String, Object> contextParameters) This method return the scripts that will be used on client side.getScripts(Map<String, Object> contextParameters) This method return the scripts that will be used on client side.booleanDetermines if this rights assignment context is a private contextvoidservice(ServiceManager smanager) voidsetPluginInfo(String pluginName, String featureName, String id) Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.core.right.RightAssignmentContext
matchWorkspace
-
Field Details
-
ID
The id of this right context- See Also:
-
_resolver
The Ametys object resolver
-
-
Constructor Details
-
ACLAmetysObjectRightAssignmentContext
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
setPluginInfo
Description copied from interface:PluginAwareSets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfoin interfacePluginAware- Parameters:
pluginName- Unique identifier for the plugin hosting the extensionfeatureName- Unique feature identifier (unique for a given pluginName)id- Unique identifier of this component
-
getId
Description copied from interface:ClientSideElementGet the id of the element.- Specified by:
getIdin interfaceClientSideElement- Returns:
- the id. Can not be null.
-
isPrivate
Description copied from interface:RightAssignmentContextDetermines if this rights assignment context is a private context- Specified by:
isPrivatein interfaceRightAssignmentContext- Returns:
- true if is private
-
convertJSContext
Description copied from interface:RightAssignmentContextFrom a JavaScript context object, converts it into a Java object- Specified by:
convertJSContextin interfaceRightAssignmentContext- Parameters:
jsContext- the JS context object- Returns:
- the Java object
-
getContextIdentifier
Description copied from interface:RightAssignmentContextGets the identifier of the object context- Specified by:
getContextIdentifierin interfaceRightAssignmentContext- Parameters:
context- The object context- Returns:
- the identifier of the object context
-
getParentContexts
Description copied from interface:RightAssignmentContextGet the parent contexts of the object context- Specified by:
getParentContextsin interfaceRightAssignmentContext- Parameters:
context- The object context- Returns:
- The parents if exist or
nullotherwise
-
getRootContexts
Description copied from interface:RightAssignmentContextGet the list of root contexts if the current workspace matches the allowed workspace- Specified by:
getRootContextsin interfaceRightAssignmentContext- Parameters:
contextParameters- The contextual parameters- Returns:
- The root context object in a list
-
getScripts
Description copied from interface:ClientSideElementThis method return the scripts that will be used on client side. This class will be parametrized by initial and current parameters.- Specified by:
getScriptsin interfaceClientSideElement- Parameters:
contextParameters- Contextuals parameters transmitted by the environment.- Returns:
- The list of scripts or an empty list.
-
getScripts
public List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String, Object> contextParameters) Description copied from interface:ClientSideElementThis method return the scripts that will be used on client side. This class will be parametrized by initial and current parameters.- Specified by:
getScriptsin interfaceClientSideElement- Parameters:
ignoreRights- True to ignore the rights verification.contextParameters- Contextuals parameters transmitted by the environment.- Returns:
- The list of scripts or an empty list.
-
getRights
Description copied from interface:ClientSideElementThis method return the right that will be needed on client side. This class will be parametrized by initial and current parameters.- Specified by:
getRightsin interfaceClientSideElement- Parameters:
contextParameters- Contextuals parameters transmitted by the environment.- Returns:
- The rights in a Map of (rightId, context). Can be empty.
-
getPluginName
Description copied from interface:ClientSideElementGet the plugin name where the control was declared- Specified by:
getPluginNamein interfaceClientSideElement- Returns:
- The plugin name. Can not be null.
-
getDependencies
Description copied from interface:ClientSideElementThis method returns the list of dependencies, sorted by extension point.- Specified by:
getDependenciesin interfaceClientSideElement- Returns:
- a map of dependencies ids by extension point.
-