Package org.ametys.core.right
Interface RightAssignmentContext
- All Superinterfaces:
ClientSideElement
- All Known Implementing Classes:
AbstractStaticRightAssignmentContext
,CartRightAssignmentContext
,ContentRightAssignmentContext
,ContentTypeRightAssignmentContext
,ExtractionRightAssignmentContext
,FormsDirectoryRightAssignmentContext
,LinkDirectoryRightAssignmentContext
,ODFRightAssignmentContext
,PageRightAssignmentContext
,QueriesDirectoryRightAssignmentContext
,ReferenceTableRightAssignmentContext
,ResourceRightAssignmentContext
,StringRightAssignmentContext
,SurveyRightAssignmentContext
,SynchronizeContentRightAssignmentContext
,UserDirectoryRightAssignmentContext
,WebContentTypeRightAssignmentContext
,WebReferenceTableRightAssignmentContext
,WebStringRightAssignmentContext
This interface represents a context of right assignment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
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 contextgetParentContexts
(Object context) Get the parent contexts of the object contextgetRootContexts
(Map<String, Object> contextParameters) Get the list of root contexts if the current workspace matches the allowed workspaceboolean
Determines if this rights assignment context is a private contextMethods inherited from interface org.ametys.core.ui.ClientSideElement
getDependencies, getId, getPluginName, getRights, getScripts, getScripts
-
Method Details
-
isPrivate
boolean isPrivate()Determines if this rights assignment context is a private context- Returns:
- true if is private
-
convertJSContext
From a JavaScript context object, converts it into a Java object- Parameters:
jsContext
- the JS context object- Returns:
- the Java object
-
getContextIdentifier
Gets the identifier of the object context- Parameters:
context
- The object context- Returns:
- the identifier of the object context
-
getParentContexts
Get the parent contexts of the object context- Parameters:
context
- The object context- Returns:
- The parents if exist or
null
otherwise
-
getRootContexts
Get the list of root contexts if the current workspace matches the allowed workspace- Parameters:
contextParameters
- The contextual parameters- Returns:
- The root context object in a list
-