Class PubItem.Rights.RightsBuilder

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

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

    • 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
    • processingEnabled

      public PubItem.Rights.RightsBuilder processingEnabled(boolean processingEnabled)
      Sets the processing enabled flag for the PubItem.Rights.RightsBuilder object.
      Parameters:
      processingEnabled - the flag indicating if processing is enabled
      Returns:
      the PubItem.Rights.RightsBuilder object with the updated processing enabled 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 String toString()
      Overrides:
      toString in class Object