@ExperimentalApi public enum ShareRights extends Enum<ShareRights> implements ShareRight
Modifier and Type | Method and Description |
---|---|
boolean |
hasEditRightsGranted()
Checks if this share right gives rights to view and edit
|
boolean |
hasViewRightsGranted()
Checks if this share right gives rights to view
|
static ShareRights |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShareRights[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShareRights VIEW
public static final ShareRights VIEW_EDIT
public static ShareRights[] values()
for (ShareRights c : ShareRights.values()) System.out.println(c);
public static ShareRights valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean hasEditRightsGranted()
ShareRight
hasEditRightsGranted
in interface ShareRight
public boolean hasViewRightsGranted()
ShareRight
hasViewRightsGranted
in interface ShareRight
Copyright © 2002-2019 Atlassian. All Rights Reserved.