Enum ActivityType
- java.lang.Object
-
- java.lang.Enum<ActivityType>
-
- ca.corefacility.bioinformatics.irida.ria.web.activities.ActivityType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ActivityType>
public enum ActivityType extends java.lang.Enum<ActivityType>
Define specific type activities. NOTE: These are used in the UI on the activities pages, please update there if you update them here.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PROJECT_SAMPLE_ADDED
PROJECT_SAMPLE_DATA_ADDED
PROJECT_SAMPLE_REMOVED
PROJECT_USER_GROUP_ADDED
PROJECT_USER_GROUP_REMOVED
PROJECT_USER_REMOVED
PROJECT_USER_ROLE
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
label
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ActivityType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ActivityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROJECT_USER_ROLE
public static final ActivityType PROJECT_USER_ROLE
-
PROJECT_USER_REMOVED
public static final ActivityType PROJECT_USER_REMOVED
-
PROJECT_SAMPLE_ADDED
public static final ActivityType PROJECT_SAMPLE_ADDED
-
PROJECT_SAMPLE_REMOVED
public static final ActivityType PROJECT_SAMPLE_REMOVED
-
PROJECT_SAMPLE_DATA_ADDED
public static final ActivityType PROJECT_SAMPLE_DATA_ADDED
-
PROJECT_USER_GROUP_ADDED
public static final ActivityType PROJECT_USER_GROUP_ADDED
-
PROJECT_USER_GROUP_REMOVED
public static final ActivityType PROJECT_USER_GROUP_REMOVED
-
-
Method Detail
-
values
public static ActivityType[] 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 (ActivityType c : ActivityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ActivityType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-