Package com.helger.photon.audit
Enum EAuditActionType
- java.lang.Object
-
- java.lang.Enum<EAuditActionType>
-
- com.helger.photon.audit.EAuditActionType
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<EAuditActionType>
public enum EAuditActionType extends Enum<EAuditActionType> implements com.helger.commons.id.IHasID<String>
Determines the different types of actions of an audit item.- Author:
- Philip Helger
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_ID_LENGTHThe maximum ID length - that needs to be maintained for database compatibility.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EAuditActionTypegetFromIDOrNull(String sID)StringgetID()static EAuditActionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EAuditActionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE
public static final EAuditActionType CREATE
-
MODIFY
public static final EAuditActionType MODIFY
-
DELETE
public static final EAuditActionType DELETE
-
UNDELETE
public static final EAuditActionType UNDELETE
-
EXECUTE
public static final EAuditActionType EXECUTE
-
-
Field Detail
-
MAX_ID_LENGTH
public static final int MAX_ID_LENGTH
The maximum ID length - that needs to be maintained for database compatibility.- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static EAuditActionType[] 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 (EAuditActionType c : EAuditActionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EAuditActionType 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
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getFromIDOrNull
@Nullable public static EAuditActionType getFromIDOrNull(@Nullable String sID)
-
-