Enum OrgUnit.Type
- java.lang.Object
-
- java.lang.Enum<OrgUnit.Type>
-
- org.apache.directory.fortress.core.model.OrgUnit.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<OrgUnit.Type>
- Enclosing class:
- OrgUnit
public static enum OrgUnit.Type extends Enum<OrgUnit.Type>
The OrgUnit 'Type' attribute is required and used to specify which OrgUnit tree a particular entity is in reference to.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PERM
TypePermission
nodes reside in Perm OU pool.USER
TypeUser
nodes reside in User OU pool.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OrgUnit.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static OrgUnit.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USER
public static final OrgUnit.Type USER
TypeUser
nodes reside in User OU pool.
-
PERM
public static final OrgUnit.Type PERM
TypePermission
nodes reside in Perm OU pool.
-
-
Method Detail
-
values
public static OrgUnit.Type[] 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 (OrgUnit.Type c : OrgUnit.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OrgUnit.Type 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
-
-