Package org.ametys.core.right
Interface RightAssignmentContext
-
- All Superinterfaces:
ClientSideElement
- All Known Implementing Classes:
AbstractStaticRightAssignmentContext,CartRightAssignmentContext,ContentRightAssignmentContext,ContentTypeRightAssignmentContext,ExtractionRightAssignmentContext,LinkDirectoryRightAssignmentContext,ODFRightAssignmentContext,PageRightAssignmentContext,QueriesDirectoryRightAssignmentContext,ReferenceTableRightAssignmentContext,ResourceRightAssignmentContext,StringRightAssignmentContext,SurveyRightAssignmentContext,SynchronizeContentRightAssignmentContext,UserDirectoryRightAssignmentContext,WebContentTypeRightAssignmentContext,WebReferenceTableRightAssignmentContext,WebStringRightAssignmentContext
public interface RightAssignmentContext extends ClientSideElement
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectconvertJSContext(Object jsContext)From a JavaScript context object, converts it into a Java objectStringgetContextIdentifier(Object context)Gets the identifier of the object contextSet<Object>getParentContexts(Object context)Get the parent contexts of the object contextList<Object>getRootContexts(Map<String,Object> contextParameters)Get the list of root contexts if the current workspace matches the allowed workspacebooleanisPrivate()Determines if this rights assignment context is a private context-
Methods inherited from interface org.ametys.core.ui.ClientSideElement
getDependencies, getId, getPluginName, getRights, getScripts, getScripts
-
-
-
-
Method Detail
-
isPrivate
boolean isPrivate()
Determines if this rights assignment context is a private context- Returns:
- true if is private
-
convertJSContext
Object convertJSContext(Object jsContext)
From a JavaScript context object, converts it into a Java object- Parameters:
jsContext- the JS context object- Returns:
- the Java object
-
getContextIdentifier
String getContextIdentifier(Object context)
Gets the identifier of the object context- Parameters:
context- The object context- Returns:
- the identifier of the object context
-
getParentContexts
Set<Object> getParentContexts(Object context)
Get the parent contexts of the object context- Parameters:
context- The object context- Returns:
- The parents if exist or
nullotherwise
-
-