Class Restrictions


  • public class Restrictions
    extends Object
    Restrictions provided with a restricted model item.
    • 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<StringgetReadRightIds()
        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<StringgetWriteRightIds()
        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
      • addReadWorkflowfStepIds

        public void addReadWorkflowfStepIds​(Integer... readWorkflowfStepIds)
        Add identifiers for read workflow step
        Parameters:
        readWorkflowfStepIds - read workflow step identifiers to add
      • addWriteWorkflowfStepIds

        public void addWriteWorkflowfStepIds​(Integer... writeWorkflowfStepIds)
        Add identifiers for write workflow step
        Parameters:
        writeWorkflowfStepIds - write workflow step identifiers to add