Package com.priint.pubserver.pubitem
Class PubItem.Rights
java.lang.Object
com.priint.pubserver.pubitem.PubItem.Rights
- Enclosing class:
- PubItem
Represents the rights associated with a publication item.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for creating instances of the Rights class. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PubItem.Rights.RightsBuilderbuilder()Returns a new instance of RightsBuilder.booleanChecks if some action is enabled.booleaninthashCode()booleanReturns whether deleting is enabled for this PubItem.booleanReturns whether editing is enabled for this PubItem.booleanReturns whether processing is enabled for this PubItem.booleanReturns whether reading is enabled for this PubItem.booleanChecks if any action is prohibited for this pub item.toString()
-
Field Details
-
PROHIBITING_ALL_ACTIONS
-
-
Method Details
-
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
-
equals
-
hashCode
public int hashCode()
-