Class Restrictions
java.lang.Object
org.ametys.cms.model.restrictions.Restrictions
Restrictions provided with a restricted model item.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addReadRightIds
(String... readRightIds) Add identifiers for read rightsvoid
addReadWorkflowfStepIds
(Integer... readWorkflowfStepIds) Add identifiers for read workflow stepvoid
addWriteRightIds
(String... writeRightIds) Add identifiers for write rightsvoid
addWriteWorkflowfStepIds
(Integer... writeWorkflowfStepIds) Add identifiers for write workflow stepboolean
Retrieves the cannot read status of the restrictionsboolean
Retrieves the cannot write status of the restrictionsRetrieves the read rights identifiersRetrieves the read workflow step identifiersRetrieves the write rights identifiersRetrieves the write workflow step identifiersvoid
setCannotRead
(boolean cannotRead) Sets the cannot read statusvoid
setCannotWrite
(boolean cannotWrite) Sets the cannot write status
-
Constructor Details
-
Restrictions
public Restrictions()
-
-
Method Details
-
cannotRead
Retrieves the cannot read status of the restrictions- Returns:
- the cannot read
-
setCannotRead
Sets the cannot read status- Parameters:
cannotRead
- the cannot read status to set
-
cannotWrite
Retrieves the cannot write status of the restrictions- Returns:
- the cannot write
-
setCannotWrite
Sets the cannot write status- Parameters:
cannotWrite
- the cannot write status to set
-
getReadRightIds
Retrieves the read rights identifiers- Returns:
- the read rights identifiers
-
addReadRightIds
Add identifiers for read rights- Parameters:
readRightIds
- the read right identifiers to add
-
getWriteRightIds
Retrieves the write rights identifiers- Returns:
- the write rights identifiers
-
addWriteRightIds
Add identifiers for write rights- Parameters:
writeRightIds
- the write right identifiers to add
-
getReadWorkflowfStepIds
Retrieves the read workflow step identifiers- Returns:
- the read workflow step identifiers
-
addReadWorkflowfStepIds
Add identifiers for read workflow step- Parameters:
readWorkflowfStepIds
- read workflow step identifiers to add
-
getWriteWorkflowfStepIds
Retrieves the write workflow step identifiers- Returns:
- the write workflow step identifiers
-
addWriteWorkflowfStepIds
Add identifiers for write workflow step- Parameters:
writeWorkflowfStepIds
- write workflow step identifiers to add
-