Enum Class SharingEntryAction
- All Implemented Interfaces:
Serializable
,Comparable<SharingEntryAction>
,Constable
Provides the actions that users can perform on resources shared with them.
Each sharing entry action is composed of an ID and a bitwise value used to
check permissions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the sharing entry action's ID.long
Returns the sharing entry action's bitwise value.static Collection<SharingEntryAction>
getSharingEntryActions
(long bitwiseValue) Returns the sharing entry actions from the bitwise value.static boolean
isSupportedActionId
(String actionId) Returnstrue
if the sharing entry action's ID matches a valid sharing entry action.static SharingEntryAction
parseFromActionId
(String actionId) Returns the sharing entry action parsed from a sharing entry action's ID.static SharingEntryAction
parseFromBitwiseValue
(long bitwiseValue) Returns the sharing entry action parsed from the bitwise value.static SharingEntryAction
Returns the enum constant of this class with the specified name.static SharingEntryAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD_DISCUSSION
-
DOWNLOAD
-
UPDATE
-
VIEW
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getSharingEntryActions
Returns the sharing entry actions from the bitwise value.- Parameters:
bitwiseValue
- the bitwise value- Returns:
- the sharing entry actions
-
isSupportedActionId
Returnstrue
if the sharing entry action's ID matches a valid sharing entry action.- Parameters:
actionId
- the sharing entry action's ID- Returns:
true
if the sharing entry action's ID matches a valid sharing entry action;false
otherwise
-
parseFromActionId
Returns the sharing entry action parsed from a sharing entry action's ID.- Parameters:
actionId
- the sharing entry action's ID- Returns:
- the sharing entry action
-
parseFromBitwiseValue
Returns the sharing entry action parsed from the bitwise value.- Parameters:
bitwiseValue
- the bitwise value- Returns:
- the sharing entry action
-
getActionId
Returns the sharing entry action's ID.- Returns:
- the sharing entry action's ID
-
getBitwiseValue
public long getBitwiseValue()Returns the sharing entry action's bitwise value.- Returns:
- the bitwise value
-