public enum OperationType extends Enum<OperationType>
Modifier and Type | Class and Description |
---|---|
static class |
OperationType.Config |
Enum Constant and Description |
---|
CREATE
Operation which creates a new object in the service.
|
DELETE
Operation which deletes objects from the service given object ids.
|
EXECUTE
Operation which is not "object" based but executes some sort of action in the service.
|
GET
Operation which retrieves a single object from the service given an object id.
|
LISTEN
Operation which can be used to submit process executions for "real-time" connectivity.
|
QUERY
Operation which retrieves 0 or more objects from the service given some user defined search criteria.
|
UPDATE
Operation which updates an existing object in the service.
|
UPSERT
(Combination of UPDATE/INSERT) Operation which updates an object if it already exists, otherwise creates a new
instance.
|
Modifier and Type | Method and Description |
---|---|
Set<ObjectDefinitionRole> |
getRequiredDefinitionRoles()
The collection of roles which are required by this operation type (i.e.
|
Set<ObjectDefinitionRole> |
getSupportedDefinitionRoles()
The collection of all roles which are supported by this operation type (this may or may not be more than the
collection of required roles).
|
static Set<OperationType> |
typesFromConfig(String opConfigStr) |
static String |
typesToConfig(Collection<OperationType> types) |
static OperationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperationType |
valueOfCaseInsensitive(String str) |
static OperationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperationType GET
public static final OperationType QUERY
public static final OperationType CREATE
public static final OperationType UPDATE
public static final OperationType UPSERT
public static final OperationType DELETE
public static final OperationType EXECUTE
public static final OperationType LISTEN
public static OperationType[] values()
for (OperationType c : OperationType.values()) System.out.println(c);
public static OperationType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Set<ObjectDefinitionRole> getSupportedDefinitionRoles()
public Set<ObjectDefinitionRole> getRequiredDefinitionRoles()
public static Set<OperationType> typesFromConfig(String opConfigStr)
public static String typesToConfig(Collection<OperationType> types)
public static OperationType valueOfCaseInsensitive(String str)