Class PubItem.Rights.RightsBuilder

  • Enclosing class:
    PubItem.Rights

    public static class PubItem.Rights.RightsBuilder
    extends java.lang.Object
    Builder class for creating instances of the Rights class. Allows setting the enabled/disabled status for various rights.
    • Method Detail

      • readingEnabled

        public PubItem.Rights.RightsBuilder readingEnabled​(boolean readingEnabled)
        Sets the reading enabled flag for the RightsBuilder.
        Parameters:
        readingEnabled - the reading enabled flag to be set
        Returns:
        the RightsBuilder instance with the reading enabled flag set
      • editingEnabled

        public PubItem.Rights.RightsBuilder editingEnabled​(boolean editingEnabled)
        Sets the editing enabled flag.
        Parameters:
        editingEnabled - The flag indicating if editing is enabled.
        Returns:
        The RightsBuilder object for method chaining.
      • deletingEnabled

        public PubItem.Rights.RightsBuilder deletingEnabled​(boolean deletingEnabled)
        Sets whether deleting is enabled or not.
        Parameters:
        deletingEnabled - the flag indicating whether deleting is enabled
        Returns:
        the RightsBuilder object with the updated deletingEnabled flag
      • build

        public PubItem.Rights build()
        Builds a new instance of the Rights class based on the configuration set in the RightsBuilder object.
        Returns:
        a new instance of Rights
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object