|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.ales.management.Subject | +--com.bea.ales.management.Group
Group is typically a collection of users that share some common property. A group can contain either users or other groups. Users or groups who belong to a group are called members of that group. Nested memberships of groups within a group form a hierarchy. A group can only include users or groups within the same directory.
Method Summary | |
void |
addMember(Subject subject)
Add a single subject to this group. |
void |
addMembers(java.util.Collection subjs)
Add a collection of subjects to this group. |
boolean |
equals(java.lang.Object obj)
Determine if the pass in obj equals to this group. |
GroupQueryResult |
getAncestorGroups(int queryType,
java.lang.String filter)
Find ancestors of the group. |
AttributeElement |
getAttribute(java.lang.String attrName,
int queryType)
Get an attribute of this group which has the specified name. |
AttributeQueryResult |
getAttributes(int queryType)
Get attributes of the group. |
IdentityQueryContainer |
getEligibleMembers(int subjType,
java.lang.String filter)
Find subjects (users or groups) than can be added to this group. |
IdentityQueryContainer |
getMembers(int queryType,
int subjType,
java.lang.String filter)
Get all users or groups which are directly or indirectly belongs to the group. |
int |
hashCode()
Return the hash code of this group object. |
boolean |
isSecurityEnabled()
|
void |
removeAttribute(AttributeElement attributeElement)
Remove an attribute from this group. |
void |
removeMember(Subject subj)
Remove a specific subject from this group. |
void |
removeMembers(java.util.Collection subjs)
Remove a collection of subjects from this group. |
void |
rename(java.lang.String newName)
Rename this group. |
void |
setAttributeValue(AttributeElement attributeElement)
Set the attribute value for this group. |
Methods inherited from class com.bea.ales.management.Subject |
getDirectory,
getDirectoryShortName,
getName,
getType,
toString |
Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public IdentityQueryContainer getMembers(int queryType, int subjType, java.lang.String filter) throws ManagementException
queryType
- one of:
QueryType.DIRECT
- Direct members of this group.QueryType.ALL
- Both direct and indirect members of this group.subjType
- what kind of subjects to find:
SubjectType.USER
- only find users.SubjectType.GROUP
- only find groups.SubjectType.ALL
- find both users and groups.filter
- pattern of the name to match.IdentityQueryContainer
which contains the result.IdentityQueryContainer
public IdentityQueryContainer getEligibleMembers(int subjType, java.lang.String filter) throws ManagementException
subjType
- what kind of subjects to find:
SubjectType.USER
- only find users.SubjectType.GROUP
- only find groups.SubjectType.ALL
- find both users and groups.filter
- pattern of name to match.IdentityQueryContainer
which contains the result.IdentityQueryContainer
public GroupQueryResult getAncestorGroups(int queryType, java.lang.String filter) throws ManagementException
queryType
- one of:
QueryType.DIRECT
- Direct ancestors of this group.QueryType.ALL
- Both direct and indirect ancestors of this group.filter
- pattern of ancestor names to matchGroupQueryResult
object which contains the result.GroupQueryResult
public void addMembers(java.util.Collection subjs) throws ManagementException
subjs
- a collection of subjects to be added.removeMembers(Collection subjs)
public void addMember(Subject subject) throws ManagementException
subject
- the new member.public void removeMembers(java.util.Collection subjs) throws ManagementException
subjs
- a collection of subjects to be removed#addMembers(Subject[])
public void removeMember(Subject subj) throws ManagementException
subj
- the subject to be removed.#addMembers(Subject[])
public AttributeQueryResult getAttributes(int queryType) throws ManagementException, java.lang.IllegalArgumentException
queryType
- - One of:
AttributeQueryResult
object contains the result.AttributeQueryResult
public AttributeElement getAttribute(java.lang.String attrName, int queryType) throws ManagementException
attrName
- name of the attribute.queryType
- - One of:
null
if not found.public void setAttributeValue(AttributeElement attributeElement) throws ManagementException
attributeElement
- The name of this passed in attribute is used to find attribute to be set of the group.
The value of this passed in attribute is set to the value of the found attribute of the group.public void removeAttribute(AttributeElement attributeElement) throws ManagementException
attributeElement
- The attribute to be removed from this group.public void rename(java.lang.String newName) throws ManagementException
newName
- new group name. This name should be short name without ALES prefix.public boolean equals(java.lang.Object obj)
obj
equals to this group.
obj
- the object to compare with.true
if equals; false
otherwise.public int hashCode()
public boolean isSecurityEnabled()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |