Package org.dspace.profile
Enum OrcidProfileDisconnectionMode
- java.lang.Object
-
- java.lang.Enum<OrcidProfileDisconnectionMode>
-
- org.dspace.profile.OrcidProfileDisconnectionMode
-
- All Implemented Interfaces:
Serializable,Comparable<OrcidProfileDisconnectionMode>
public enum OrcidProfileDisconnectionMode extends Enum<OrcidProfileDisconnectionMode>
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)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMIN_AND_OWNEROnly the admin or the profile's owner can disconnect that profile from ORCID.DISABLEDThe disconnection is disabled.ONLY_ADMINOnly the admins can disconnect profiles from ORCID.ONLY_OWNEROnly the profile's owner can disconnect that profile from ORCID.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OrcidProfileDisconnectionModefromString(String mode)static booleanisValid(String mode)static OrcidProfileDisconnectionModevalueOf(String name)Returns the enum constant of this type with the specified name.static OrcidProfileDisconnectionMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLED
public static final OrcidProfileDisconnectionMode DISABLED
The disconnection is disabled.
-
ONLY_OWNER
public static final OrcidProfileDisconnectionMode ONLY_OWNER
Only the profile's owner can disconnect that profile from ORCID.
-
ONLY_ADMIN
public static final OrcidProfileDisconnectionMode ONLY_ADMIN
Only the admins can disconnect profiles from ORCID.
-
ADMIN_AND_OWNER
public static final OrcidProfileDisconnectionMode ADMIN_AND_OWNER
Only the admin or the profile's owner can disconnect that profile from ORCID.
-
-
Method Detail
-
values
public static OrcidProfileDisconnectionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OrcidProfileDisconnectionMode c : OrcidProfileDisconnectionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OrcidProfileDisconnectionMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
isValid
public static boolean isValid(String mode)
-
fromString
public static OrcidProfileDisconnectionMode fromString(String mode)
-
-