Enum CustomOperationScope
- java.lang.Object
-
- java.lang.Enum<CustomOperationScope>
-
- org.cyclos.model.system.operations.CustomOperationScope
-
- All Implemented Interfaces:
Serializable,Comparable<CustomOperationScope>,HasMessageKey
public enum CustomOperationScope extends Enum<CustomOperationScope> implements HasMessageKey
Determines the scope of a custom operation
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADVERTISEMENTA custom operation over an advertisementBULK_ACTIONA custom operation to be executed as a bulk action over a set of usersCONTACTA custom operation over a contactCONTACT_INFOA custom operation over a public contact informationINTERNALA custom operation which is executed by another custom operationMENUA custom operation which is visible in a custom menu itemRECORDA custom operation over a recordSYSTEMA general, system custom operationTRANSFERA custom operation over a transferUSERA custom operation over a single user
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static CustomOperationScopevalueOf(String name)Returns the enum constant of this type with the specified name.static CustomOperationScope[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SYSTEM
public static final CustomOperationScope SYSTEM
A general, system custom operation
-
USER
public static final CustomOperationScope USER
A custom operation over a single user
-
CONTACT
public static final CustomOperationScope CONTACT
A custom operation over a contact
-
CONTACT_INFO
public static final CustomOperationScope CONTACT_INFO
A custom operation over a public contact information
-
BULK_ACTION
public static final CustomOperationScope BULK_ACTION
A custom operation to be executed as a bulk action over a set of users
-
MENU
public static final CustomOperationScope MENU
A custom operation which is visible in a custom menu item
-
INTERNAL
public static final CustomOperationScope INTERNAL
A custom operation which is executed by another custom operation
-
ADVERTISEMENT
public static final CustomOperationScope ADVERTISEMENT
A custom operation over an advertisement
-
RECORD
public static final CustomOperationScope RECORD
A custom operation over a record
-
TRANSFER
public static final CustomOperationScope TRANSFER
A custom operation over a transfer
-
-
Method Detail
-
values
public static CustomOperationScope[] 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 (CustomOperationScope c : CustomOperationScope.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CustomOperationScope 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-