|
||||||||
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.User
This class represent a user. The users can be assigned to groups from the same directory. All users within the same directory must have the unique user name. User can have attributes directly or inherited attributes from the group it belongs to.
Method Summary | |
void |
addMemberships(java.util.Collection groups)
Assign the user to the groups. |
boolean |
equals(java.lang.Object obj)
|
GroupQueryResult |
getAllGroupMempership()
Get all groups this user is a member of. |
AttributeElement |
getAttribute(java.lang.String attrName,
int queryType)
Get the user attribute which has the specified attribute name. |
AttributeQueryResult |
getAttributes(int queryType)
Get attributes of the user. |
GroupQueryResult |
getDirectGroupMembership(java.lang.String queryString)
Get all groups this user is a directly member of. |
GroupQueryResult |
getEligibleGroups(java.lang.String queryString)
Get all groups that the user is not a member of. |
GroupQueryResult |
getIndirectGroupMembership(java.lang.String queryString)
Get the groups this user is an indirectly member of. |
java.lang.String |
getScopedName()
|
int |
hashCode()
|
void |
removeMemberships(java.util.Collection groups)
Remove the user from groups. |
void |
removeUserAttribute(AttributeElement attributeElement)
Remove the attribute value of this user. |
void |
setAttributeValue(AttributeElement attributeElement)
Set the attribute value for this user. |
void |
setPassword(java.lang.String newPass)
Set the password for the user. |
void |
setPasswordKnown(java.lang.String oldPass,
java.lang.String newPass)
Set the password for the user, requiring validation of the existing password. |
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 AttributeQueryResult getAttributes(int queryType) throws ManagementException
queryType
- - One of:
AttributeQueryResult
object contains the result.AttributeQueryResult
public AttributeElement getAttribute(java.lang.String attrName, int queryType) throws ManagementException
attrName
- the name of the attribute to look for.queryType
- - One of:
public void setAttributeValue(AttributeElement attributeElement) throws ManagementException, BadParameterException
attributeElement
- The name of this passed in attribute is used to find attribute to be set of the user.
The value of this passed in attribute is set to the value of the found attribute of the user.public void removeUserAttribute(AttributeElement attributeElement) throws ManagementException, BadParameterException
attributeElement
- the same name of the attribute of the user will be removed.public GroupQueryResult getDirectGroupMembership(java.lang.String queryString) throws ManagementException
queryString
- the query pattern the groups matches.public GroupQueryResult getIndirectGroupMembership(java.lang.String queryString) throws ManagementException
queryString
- the query pattern the groups matches.public GroupQueryResult getAllGroupMempership() throws ManagementException
public GroupQueryResult getEligibleGroups(java.lang.String queryString) throws ManagementException
queryString
- the pattern string the groups need to matchpublic void addMemberships(java.util.Collection groups) throws ManagementException
groups
- groups that the user is assigned to.public void removeMemberships(java.util.Collection groups) throws ManagementException
groups
- groups that remove the membership of the user.public void setPassword(java.lang.String newPass) throws ManagementException
newPass
- the new password for the user.public void setPasswordKnown(java.lang.String oldPass, java.lang.String newPass) throws ManagementException
oldPass
- old passwordnewPass
- new passwordpublic boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String getScopedName()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |