Package org.dspace.profile
Enum Class OrcidProfileDisconnectionMode
- All Implemented Interfaces:
Serializable,Comparable<OrcidProfileDisconnectionMode>,Constable
Enum that models all the available values of the property that which
determines which users can disconnect a profile from an ORCID account.
- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOnly the admin or the profile's owner can disconnect that profile from ORCID.The disconnection is disabled.Only the admins can disconnect profiles from ORCID.Only the profile's owner can disconnect that profile from ORCID. -
Method Summary
Modifier and TypeMethodDescriptionfromString(String mode) static booleanReturns the enum constant of this class with the specified name.static OrcidProfileDisconnectionMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISABLED
The disconnection is disabled. -
ONLY_OWNER
Only the profile's owner can disconnect that profile from ORCID. -
ONLY_ADMIN
Only the admins can disconnect profiles from ORCID. -
ADMIN_AND_OWNER
Only the admin or the profile's owner can disconnect that profile from ORCID.
-
-
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
-
isValid
-
fromString
-