Package com.priint.pubserver.pubitem
Class PubItem.Rights
- java.lang.Object
-
- com.priint.pubserver.pubitem.PubItem.Rights
-
- Enclosing class:
- PubItem
public static final class PubItem.Rights extends java.lang.ObjectRepresents the rights associated with a publication item.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPubItem.Rights.RightsBuilderBuilder class for creating instances of the Rights class.
-
Field Summary
Fields Modifier and Type Field Description static PubItem.RightsPROHIBITING_ALL_ACTIONS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PubItem.Rights.RightsBuilderbuilder()Returns a new instance of RightsBuilder.booleanenableSomeAction()Checks if some action is enabled.booleanequals(java.lang.Object o)inthashCode()booleanisDeletingEnabled()Returns whether deleting is enabled for this PubItem.booleanisEditingEnabled()Returns whether editing is enabled for this PubItem.booleanisProcessingEnabled()Returns whether processing is enabled for this PubItem.booleanisReadingEnabled()Returns whether reading is enabled for this PubItem.booleanprohibitAnyAction()Checks if any action is prohibited for this pub item.java.lang.StringtoString()
-
-
-
Field Detail
-
PROHIBITING_ALL_ACTIONS
public static final PubItem.Rights PROHIBITING_ALL_ACTIONS
-
-
Method Detail
-
builder
public static PubItem.Rights.RightsBuilder 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-