Enum Class DigitalAssetState
java.lang.Object
java.lang.Enum<DigitalAssetState>
com.orchestranetworks.addon.dama.ext.enumeration.DigitalAssetState
- All Implemented Interfaces:
Serializable
,Comparable<DigitalAssetState>
,Constable
Defines the permission to see and modify a resource.
The possible states are:
- Activated: the digital asset displays and is selectable in the Drive view and Manage digital assets screen.
- Deactivated: the digital asset does not display in the Drive view or Manage digital assets screen. Only an administrator can view and change the state in the Digital asset table.
- Since:
- 1.6.0
-
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 TypeMethodDescriptioncom.onwbp.base.text.UserMessage
getLabel()
Gets the label.getState()
Gets the state.boolean
Checks whether the state activated.boolean
Checks whether the state deactivated.static DigitalAssetState
Parses the state.toString()
static DigitalAssetState
Returns the enum constant of this class with the specified name.static DigitalAssetState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
ACTIVATED
The activated. -
DEACTIVATED
The deactivated.
-
-
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
-
parse
Parses the state.- Parameters:
state
- the state- Returns:
- the digital asset state
-
getState
Gets the state.- Returns:
- the state
-
getLabel
public com.onwbp.base.text.UserMessage getLabel()Gets the label.- Returns:
- the label
-
toString
- Overrides:
toString
in classEnum<DigitalAssetState>
-
isActivated
public boolean isActivated()Checks whether the state activated.- Returns:
- true, if is activated
-
isDeactivated
public boolean isDeactivated()Checks whether the state deactivated.- Returns:
- true, if is deactivated
-