Class Restrictions
- java.lang.Object
-
- org.ametys.cms.model.restrictions.Restrictions
-
public class Restrictions extends Object
Restrictions provided with a restricted model item.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
_cannotRead
Cannot read status.private boolean
_cannotWrite
Cannot write status.private Set<String>
_readRightIds
Read right ids.private Set<Integer>
_readWorkflowfStepIds
Write right ids.private Set<String>
_writeRightIds
Read workflow step ids.private Set<Integer>
_writeWorkflowfStepIds
Write workflow step ids.
-
Constructor Summary
Constructors Constructor Description Restrictions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
cannotRead()
Retrieves the cannot read status of the restrictionsboolean
cannotWrite()
Retrieves the cannot write status of the restrictionsSet<String>
getReadRightIds()
Retrieves the read rights identifiersSet<Integer>
getReadWorkflowfStepIds()
Retrieves the read workflow step identifiersSet<String>
getWriteRightIds()
Retrieves the write rights identifiersSet<Integer>
getWriteWorkflowfStepIds()
Retrieves the write workflow step identifiersvoid
setCannotRead(boolean cannotRead)
Sets the cannot read statusvoid
setCannotWrite(boolean cannotWrite)
Sets the cannot write status
-
-
-
Field Detail
-
_cannotRead
private boolean _cannotRead
Cannot read status.
-
_cannotWrite
private boolean _cannotWrite
Cannot write status.
-
_readRightIds
private Set<String> _readRightIds
Read right ids.
-
_writeRightIds
private Set<String> _writeRightIds
Read workflow step ids.
-
_readWorkflowfStepIds
private Set<Integer> _readWorkflowfStepIds
Write right ids.
-
_writeWorkflowfStepIds
private Set<Integer> _writeWorkflowfStepIds
Write workflow step ids.
-
-
Constructor Detail
-
Restrictions
public Restrictions()
-
-
Method Detail
-
cannotRead
public boolean cannotRead()
Retrieves the cannot read status of the restrictions- Returns:
- the cannot read
-
setCannotRead
public void setCannotRead(boolean cannotRead)
Sets the cannot read status- Parameters:
cannotRead
- the cannot read status to set
-
cannotWrite
public boolean cannotWrite()
Retrieves the cannot write status of the restrictions- Returns:
- the cannot write
-
setCannotWrite
public void setCannotWrite(boolean cannotWrite)
Sets the cannot write status- Parameters:
cannotWrite
- the cannot write status to set
-
getReadRightIds
public Set<String> getReadRightIds()
Retrieves the read rights identifiers- Returns:
- the read rights identifiers
-
addReadRightIds
public void addReadRightIds(String... readRightIds)
Add identifiers for read rights- Parameters:
readRightIds
- the read right identifiers to add
-
getWriteRightIds
public Set<String> getWriteRightIds()
Retrieves the write rights identifiers- Returns:
- the write rights identifiers
-
addWriteRightIds
public void addWriteRightIds(String... writeRightIds)
Add identifiers for write rights- Parameters:
writeRightIds
- the write right identifiers to add
-
getReadWorkflowfStepIds
public Set<Integer> getReadWorkflowfStepIds()
Retrieves the read workflow step identifiers- Returns:
- the read workflow step identifiers
-
addReadWorkflowfStepIds
public void addReadWorkflowfStepIds(Integer... readWorkflowfStepIds)
Add identifiers for read workflow step- Parameters:
readWorkflowfStepIds
- read workflow step identifiers to add
-
getWriteWorkflowfStepIds
public Set<Integer> getWriteWorkflowfStepIds()
Retrieves the write workflow step identifiers- Returns:
- the write workflow step identifiers
-
addWriteWorkflowfStepIds
public void addWriteWorkflowfStepIds(Integer... writeWorkflowfStepIds)
Add identifiers for write workflow step- Parameters:
writeWorkflowfStepIds
- write workflow step identifiers to add
-
-