com.atlassian.crowd.embedded.api
Enum OperationType

java.lang.Object
  extended by java.lang.Enum<OperationType>
      extended by com.atlassian.crowd.embedded.api.OperationType
All Implemented Interfaces:
Serializable, Comparable<OperationType>

public enum OperationType
extends Enum<OperationType>

Represents the type of operations allowed to be performed on a directory.


Enum Constant Summary
CREATE_GROUP
           
CREATE_ROLE
           
CREATE_USER
           
DELETE_GROUP
           
DELETE_ROLE
           
DELETE_USER
           
UPDATE_GROUP
           
UPDATE_GROUP_ATTRIBUTE
           
UPDATE_ROLE
           
UPDATE_ROLE_ATTRIBUTE
           
UPDATE_USER
           
UPDATE_USER_ATTRIBUTE
           
 
Method Summary
 OperationType fromName(String name)
           
 String getName()
           
static OperationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OperationType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CREATE_USER

public static final OperationType CREATE_USER

CREATE_GROUP

public static final OperationType CREATE_GROUP

CREATE_ROLE

public static final OperationType CREATE_ROLE

UPDATE_USER

public static final OperationType UPDATE_USER

UPDATE_GROUP

public static final OperationType UPDATE_GROUP

UPDATE_ROLE

public static final OperationType UPDATE_ROLE

UPDATE_USER_ATTRIBUTE

public static final OperationType UPDATE_USER_ATTRIBUTE

UPDATE_GROUP_ATTRIBUTE

public static final OperationType UPDATE_GROUP_ATTRIBUTE

UPDATE_ROLE_ATTRIBUTE

public static final OperationType UPDATE_ROLE_ATTRIBUTE

DELETE_USER

public static final OperationType DELETE_USER

DELETE_GROUP

public static final OperationType DELETE_GROUP

DELETE_ROLE

public static final OperationType DELETE_ROLE
Method Detail

values

public static OperationType[] 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 (OperationType c : OperationType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OperationType 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 name
NullPointerException - if the argument is null

getName

public String getName()

fromName

public OperationType fromName(String name)


Copyright © 2013 Atlassian. All Rights Reserved.