|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<AccessRights>
com.groupdocs.annotation.domain.AccessRights
public enum AccessRights
Collaborator access rights object
| Enum Constant Summary | |
|---|---|
All
|
|
CAN_ANNOTATE
|
|
CAN_DELETE
|
|
CAN_DOWNLOAD
|
|
CAN_EXPORT
|
|
CAN_VIEW
|
|
| Method Summary | |
|---|---|
boolean |
equals(int id)
Check if access rights is equal |
static int |
from(AccessRights... accessRights)
Combine access rights integer value from few @{AccessRights} objects Sample: int integerCombinedValue = AccessRights.from(AccessRights.CAN_VIEW, AccessRights.CAN_DOWNLOAD); |
boolean |
is(int value)
Check that access right contains in provided access right value Sample: AccessRights.CAN_VIEW.is(integerCombinedValue) |
String |
toString()
Convert value to string |
int |
value()
Get value |
static AccessRights |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AccessRights[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final AccessRights CAN_VIEW
public static final AccessRights CAN_ANNOTATE
public static final AccessRights CAN_DOWNLOAD
public static final AccessRights CAN_EXPORT
public static final AccessRights CAN_DELETE
public static final AccessRights All
| Method Detail |
|---|
public static AccessRights[] values()
for (AccessRights c : AccessRights.values()) System.out.println(c);
public static AccessRights valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean equals(int id)
id - access rights value to compare
public String toString()
toString in class Enum<AccessRights>public int value()
public static int from(AccessRights... accessRights)
accessRights - access rights to combine
public boolean is(int value)
value - access right to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||