Class Restrictions

java.lang.Object
org.ametys.cms.model.restrictions.Restrictions

public class Restrictions extends Object
Restrictions provided with a restricted model item.
  • Constructor Details

  • Method Details

    • 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

      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

      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

      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

      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