Package com.priint.pubserver.pubitem
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 java.lang.ObjectBuilder class for creating instances of the Rights class. Allows setting the enabled/disabled status for various rights.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PubItem.Rightsbuild()Builds a new instance of the Rights class based on the configuration set in the RightsBuilder object.PubItem.Rights.RightsBuilderdeletingEnabled(boolean deletingEnabled)Sets whether deleting is enabled or not.PubItem.Rights.RightsBuildereditingEnabled(boolean editingEnabled)Sets the editing enabled flag.PubItem.Rights.RightsBuilderprocessingEnabled(boolean processingEnabled)Sets the processing enabled flag for thePubItem.Rights.RightsBuilderobject.PubItem.Rights.RightsBuilderreadingEnabled(boolean readingEnabled)Sets the reading enabled flag for the RightsBuilder.java.lang.StringtoString()
-
-
-
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
-
processingEnabled
public PubItem.Rights.RightsBuilder processingEnabled(boolean processingEnabled)
Sets the processing enabled flag for thePubItem.Rights.RightsBuilderobject.- Parameters:
processingEnabled- the flag indicating if processing is enabled- Returns:
- the
PubItem.Rights.RightsBuilderobject 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 java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-