Class PubItem.Rights

  • Enclosing class:
    PubItem

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

      • PROHIBITING_ALL_ACTIONS

        public static final PubItem.Rights PROHIBITING_ALL_ACTIONS
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object