Package com.priint.pubserver.pubitem
Class PubItem.Rights.RightsBuilder
java.lang.Object
com.priint.pubserver.pubitem.PubItem.Rights.RightsBuilder
- Enclosing class:
- PubItem.Rights
Builder class for creating instances of the Rights class.
Allows setting the enabled/disabled status for various rights.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new instance of the Rights class based on the configuration set in the RightsBuilder object.deletingEnabled(boolean deletingEnabled) Sets whether deleting is enabled or not.editingEnabled(boolean editingEnabled) Sets the editing enabled flag.processingEnabled(boolean processingEnabled) Sets the processing enabled flag for thePubItem.Rights.RightsBuilderobject.readingEnabled(boolean readingEnabled) Sets the reading enabled flag for the RightsBuilder.toString()
-
Method Details
-
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
Sets the editing enabled flag.- Parameters:
editingEnabled- The flag indicating if editing is enabled.- Returns:
- The RightsBuilder object for method chaining.
-
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
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
Builds a new instance of the Rights class based on the configuration set in the RightsBuilder object.- Returns:
- a new instance of Rights
-
toString
-