Class PubItem.Rights

java.lang.Object
com.priint.pubserver.pubitem.PubItem.Rights
Enclosing class:
PubItem

public static final class PubItem.Rights extends Object
Represents the rights associated with a publication item.
  • Field Details

    • PROHIBITING_ALL_ACTIONS

      public static final PubItem.Rights PROHIBITING_ALL_ACTIONS
  • Method Details

    • builder

      public static PubItem.Rights.RightsBuilder builder()
      Returns a new instance of RightsBuilder.
      Returns:
      a new instance of RightsBuilder
    • isReadingEnabled

      public boolean isReadingEnabled()
      Returns whether reading is enabled for this PubItem.
      Returns:
      true if reading is enabled, false otherwise
    • isEditingEnabled

      public boolean isEditingEnabled()
      Returns whether editing is enabled for this PubItem.
      Returns:
      true if editing is enabled, false otherwise
    • isDeletingEnabled

      public boolean isDeletingEnabled()
      Returns whether deleting is enabled for this PubItem.
      Returns:
      true if deleting is enabled, false otherwise
    • isProcessingEnabled

      public boolean isProcessingEnabled()
      Returns whether processing is enabled for this PubItem.
      Returns:
      true if processing is enabled, false otherwise
    • enableSomeAction

      public boolean enableSomeAction()
      Checks if some action is enabled.
      Returns:
      true if any of the actions (reading, editing, deleting, processing) is enabled, false otherwise.
    • prohibitAnyAction

      public boolean prohibitAnyAction()
      Checks if any action is prohibited for this pub item.
      Returns:
      true if any action is prohibited, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object