|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.ales.management.Directory
This class represents an identity directory which contains a collection of users and groups.
It provides methods to manage schema of the directory, to get UserManager
and
GroupManager
which manage user and group directly.
The schema is the collection of attribute definitions and default value.
Each directory is bundled with its own schema.
All users and groups in the directory can only have attributes defined in the schema bundled with the directory.
Field Summary | |
static java.lang.String |
ATTRIBUTE_TYPE_BOOLEAN
|
static java.lang.String |
ATTRIBUTE_TYPE_DATE
|
static java.lang.String |
ATTRIBUTE_TYPE_INTEGER
|
static java.lang.String |
ATTRIBUTE_TYPE_IP_ADDRESS
|
static java.lang.String |
ATTRIBUTE_TYPE_STRING
|
static java.lang.String |
ATTRIBUTE_TYPE_TIME
|
Method Summary | |
void |
addSchemaAttribute(AttributeElement attributeElement)
Add the attribute definition to this directory's schema. |
void |
addSchemaAttribute(java.lang.String name,
java.lang.String type,
boolean isList)
Add attribute definition to schema of the directory without a default value |
boolean |
equals(java.lang.Object obj)
Compare this directory with other Java object. |
java.util.Collection |
getAvailableAttributeTypes()
Get all available attribute types. |
GroupManager |
getGroupManager()
Get group manager that manages groups in the directory |
java.lang.String |
getName()
Get name of the directory. |
AttributeQueryResult |
getSchema()
Get the collection of the attributes of the specified directory's schema. |
UserManager |
getUserManager()
Get user manager which manages users in the directory |
int |
hashCode()
Return the hash code of the directory. |
void |
removeSchemaAttribute(java.lang.String attrName)
Remove attribute definition from the directory's schema |
void |
SetAttributeDefaultValue(AttributeElement attributeElement)
Set the default attribute value for a schema attribute of this directory. |
java.lang.String |
toString()
Return the string representation of the directory. |
Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static java.lang.String ATTRIBUTE_TYPE_STRING
public static java.lang.String ATTRIBUTE_TYPE_BOOLEAN
public static java.lang.String ATTRIBUTE_TYPE_DATE
public static java.lang.String ATTRIBUTE_TYPE_INTEGER
public static java.lang.String ATTRIBUTE_TYPE_IP_ADDRESS
public static java.lang.String ATTRIBUTE_TYPE_TIME
Method Detail |
public java.lang.String getName()
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
public UserManager getUserManager() throws ManagementException
UserManager
bundled with the directorygetGroupManager()
public GroupManager getGroupManager() throws ManagementException
GroupManager
bundled with the directorygetUserManager()
public AttributeQueryResult getSchema() throws ManagementException
AttributeQueryResult
public java.util.Collection getAvailableAttributeTypes() throws ManagementException
ATTRIBUTE_TYPE_STRING, ATTRIBUTE_TYPE_INTEGER, ATTRIBUTE_TYPE_BOOLEAN,
ATTRIBUTE_TYPE_IP_ADDRESS, ATTRIBUTE_TYPE_DATE, ATTRIBUTE_TYPE_TIME
public void addSchemaAttribute(AttributeElement attributeElement) throws ManagementException, BadParameterException
attributeElement
- the attribute to add to this directory schema.
If attributeElement
has the value, the value is set to default value of the attriubte definition in the schema.public void addSchemaAttribute(java.lang.String name, java.lang.String type, boolean isList) throws ManagementException
name
- the name of the attribute to add to the schematype
- the type of the attributeisList
- whether the attribute is a list or not.public void removeSchemaAttribute(java.lang.String attrName) throws ManagementException
attrName
- the attribute name to be removed.public void SetAttributeDefaultValue(AttributeElement attributeElement) throws ManagementException, BadParameterException
attributeElement
- The name of this passed in attribute is used to find attribute to be set in the directory's schema.
The value of this passed in attribute is set to the found attribute in the schema as the default vaule.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |