|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.wles.blm.BLMComponentManager
com.wles.blm.BLMLocalUserManager
Manages all operations on users, including creation, deletion and profile operations.
User names are specified in a qualified format which includes the identity directory
which they belong to. The format is //user/dirName/userName/. The userName
portion may include whitespace and any printable english character. You may make use of the
com.wles.util.SubjectBuilder to construct and parse user names from Java objects rather then the
above format.
Use a BLMContextManager to obtain an instance of a
BLMLocalUserManager.
BLMContextManager,
SubjectBuilder| Field Summary | |
static int |
ATTRIBUTE_QUERY_TYPE_DIRECT
Attribute query type specifiying the attribute value assigned directly to the user. |
static int |
ATTRIBUTE_QUERY_TYPE_ENFORCED
Attribute query type specifiying the attribute value based on the attribute inheritance logic. |
static int |
ATTRIBUTE_QUERY_TYPE_INHERITED
Attribute query type specifiying the attribute value inherited by the user, from a group membership. |
| Method Summary | |
void |
copyLocalUser(java.lang.String userName,
java.lang.String clonedUserName)
Creates a new user based on an existing user's profile including group membership and attribute values, and rules. |
void |
create(java.lang.String name)
Creates a new user. |
java.lang.String |
filter(java.lang.String findPattern)
Finds all users matching the specified filter pattern. |
boolean |
find(java.lang.String cID,
java.lang.String name)
Checks for an occurance of the specified user name in a user collection. |
java.lang.String |
getAllSubjectGroups(java.lang.String aLocalUserName)
Finds all the groups the user is a member of. |
int |
getCount(java.lang.String cID)
Returns the size of a user or user attribute collection. |
java.lang.String |
getDirectSubjectGroups(java.lang.String aLocalUserName,
java.lang.String filterString)
Finds the direct group memberships for the specified user. |
java.lang.String |
getEligibleSubjectGroups(java.lang.String aLocalUserName,
java.lang.String filterString)
Finds all groups this user is not already a member of. |
java.lang.String |
getIndirectSubjectGroups(java.lang.String aLocalUserName,
java.lang.String filterString)
Finds the indirect (inherited) group memberships for the specified user. |
java.lang.String[] |
getReport(java.lang.String cID)
Returns a report on a user collection. |
java.lang.String[] |
getReport(java.lang.String cID,
int iStart,
int iCount)
Returns a report on a subset on a user collection. |
AttributeElement[] |
getReportOnUserAttributes(java.lang.String cID)
Returns a report on the user attributes collection. |
AttributeElement[] |
getReportOnUserAttributes(java.lang.String cID,
int iStart,
int iCount)
Returns a report on a subset of the user attributes collection. |
AttributeElement |
getUserAttribute(java.lang.String aLocalUserName,
java.lang.String attrName,
int attrQueryType)
Gets the value of an attribute associated with local user. |
java.lang.String |
getUserAttributes(java.lang.String aLocalUserName,
int attrQueryType)
Gets a collection of attributes associated with the specified user. |
java.lang.String |
getUsersWithAttribute(java.lang.String aDirName,
AttributeElement attrElem)
Finds all users with the specified attribute value. |
boolean |
isLimitReached(java.lang.String cID)
Checks if the server specified limit has been crossed for this collection. |
void |
release(java.lang.String cID)
Releases a user or user attribute collection. |
void |
remove(java.lang.String name)
Removes a user from the system. |
void |
removeCascade(java.lang.String name)
Removes a user and all associated policy data from the system. |
void |
removeUserAttribute(java.lang.String name,
java.lang.String attrName)
Removes the value of a user's attribute. |
void |
rename(java.lang.String oldName,
java.lang.String newName)
Renames a user. |
void |
setPasswordKnown(java.lang.String oldPassword,
java.lang.String newPassword,
java.lang.String confirmPassword)
Resets the value of a user's password, requiring validation of the existing password. |
void |
setPasswordUnknown(java.lang.String username,
java.lang.String newPassword,
java.lang.String confirmPassword)
Sets or resets a user's password without requiring knowledge of the current password. |
void |
setUserAttribute(java.lang.String aLocalUserName,
AttributeElement attrElem)
Sets the value for a user's attribute. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ATTRIBUTE_QUERY_TYPE_DIRECT
public static final int ATTRIBUTE_QUERY_TYPE_ENFORCED
public static final int ATTRIBUTE_QUERY_TYPE_INHERITED
| Method Detail |
public void copyLocalUser(java.lang.String userName,
java.lang.String clonedUserName)
throws BLMException
clonedUserName.
userName - name of the user to be copiedclonedUserName - name of the new user
BLMException
public void create(java.lang.String name)
throws BLMException
create in class BLMComponentManagername - name of the user to be created
BLMException
public java.lang.String filter(java.lang.String findPattern)
throws BLMException
filter in class BLMComponentManagerfindPattern - pattern for the filter
BLMExceptiongetReport(String cID),
getReport(String cID, int iStart, int iCount),
getCount(String CID),
release(String cID),
find(String cID, String name),
isLimitReached(String cID)
public boolean find(java.lang.String cID,
java.lang.String name)
throws BLMException
find in class BLMComponentManagercID - collection ID of the user collectionname - name of the user
BLMException
public java.lang.String getAllSubjectGroups(java.lang.String aLocalUserName)
throws BLMException
BLMLocalSubjectGroupManager to access the results.
aLocalUserName - local subjectgroup to be reported on
BLMExceptionBLMLocalSubjectGroupManager.getReport(String cID),
BLMLocalSubjectGroupManager.getReport(String cID, int iStart, int iCount),
BLMLocalSubjectGroupManager.getCount(String CID),
BLMLocalSubjectGroupManager.release(String cID),
BLMLocalSubjectGroupManager.find(String cID, String name)
public int getCount(java.lang.String cID)
throws BLMException
getCount in class BLMComponentManagercID - ID of the collection
BLMException
public java.lang.String getDirectSubjectGroups(java.lang.String aLocalUserName,
java.lang.String filterString)
throws BLMException
BLMLocalSubjectGroupManager to access the results.
aLocalUserName - a local user to be reported onfilterString - a pattern to filter the collection
BLMExceptionBLMLocalSubjectGroupManager.getReport(String cID),
BLMLocalSubjectGroupManager.getReport(String cID, int iStart, int iCount),
BLMLocalSubjectGroupManager.getCount(String CID),
BLMLocalSubjectGroupManager.release(String cID),
BLMLocalSubjectGroupManager.find(String cID, String name)
public java.lang.String getEligibleSubjectGroups(java.lang.String aLocalUserName,
java.lang.String filterString)
throws BLMException
BLMLocalSubjectGroupManager to access the results.
aLocalUserName - a local user to be reported onfilterString - a pattern to filter the collection
BLMExceptionBLMLocalSubjectGroupManager.getReport(String cID),
BLMLocalSubjectGroupManager.getReport(String cID, int iStart, int iCount),
BLMLocalSubjectGroupManager.getCount(String CID),
BLMLocalSubjectGroupManager.release(String cID),
BLMLocalSubjectGroupManager.find(String cID, String name)
public java.lang.String getIndirectSubjectGroups(java.lang.String aLocalUserName,
java.lang.String filterString)
throws BLMException
BLMLocalSubjectGroupManager to access the results.
aLocalUserName - a local user to be reported onfilterString - a pattern to filter the collection
BLMExceptionBLMLocalSubjectGroupManager.getReport(String cID),
BLMLocalSubjectGroupManager.getReport(String cID, int iStart, int iCount),
BLMLocalSubjectGroupManager.getCount(String CID),
BLMLocalSubjectGroupManager.release(String cID),
BLMLocalSubjectGroupManager.find(String cID, String name)
public java.lang.String[] getReport(java.lang.String cID)
throws BLMException
cID - ID of the collection
BLMException
public java.lang.String[] getReport(java.lang.String cID,
int iStart,
int iCount)
throws BLMException
cID - ID of the collectioniStart - the index into the collection at which to start the reportiCount - the number of entries to include in the report
BLMException
public AttributeElement[] getReportOnUserAttributes(java.lang.String cID)
throws BLMException,
BadParameterException
cID - ID of the collection
AttributeElement objects from the collection.
BLMException
BadParameterException
public AttributeElement[] getReportOnUserAttributes(java.lang.String cID,
int iStart,
int iCount)
throws BLMException,
BadParameterException
cID - ID of the collectioniStart - Start index in the collectioniCount - Number of objects
AttributeElement objects from the collection.
BLMException
BadParameterException
public AttributeElement getUserAttribute(java.lang.String aLocalUserName,
java.lang.String attrName,
int attrQueryType)
throws BLMException,
BadParameterException
aLocalUserName - the user nameattrName - the attribute nameattrQueryType - ATTRIBUTE_QUERY_TYPE_DIRECT, ATTRIBUTE_QUERY_TYPE_INHERITED, ATTRIBUTE_QUERY_TYPE_ENFORCED
AttributeElement containing the value of the user's attribute, or null if this attribute is not defined for the specified user.
BLMException
BadParameterExceptionATTRIBUTE_QUERY_TYPE_DIRECT,
ATTRIBUTE_QUERY_TYPE_INHERITED,
ATTRIBUTE_QUERY_TYPE_ENFORCED
public java.lang.String getUserAttributes(java.lang.String aLocalUserName,
int attrQueryType)
throws BLMException
aLocalUserName - user nameattrQueryType - ATTRIBUTE_QUERY_TYPE_DIRECT, ATTRIBUTE_QUERY_TYPE_INHERITED, ATTRIBUTE_QUERY_TYPE_ENFORCED
BLMExceptiongetReportOnUserAttributes(String cID),
getReportOnUserAttributes(String cID, int iStart, int iCount),
getCount(String cID),
release(String cID),
ATTRIBUTE_QUERY_TYPE_DIRECT,
ATTRIBUTE_QUERY_TYPE_INHERITED,
ATTRIBUTE_QUERY_TYPE_ENFORCED
public java.lang.String getUsersWithAttribute(java.lang.String aDirName,
AttributeElement attrElem)
throws BLMException,
BadParameterException
aDirName - directory nameattrElem - the attribute name and value
BLMException
BadParameterExceptiongetReport(String cID),
getReport(String cID, int iStart, int iCount),
getCount(String CID),
release(String cID),
find(String cID, String name),
getReportOnUserAttributes(String cID)
public boolean isLimitReached(java.lang.String cID)
throws BLMException
cID - collection ID of the collection
BLMException
public void release(java.lang.String cID)
throws BLMException
null collection id will cause all held collections to be released.
release in class BLMComponentManagercID - ID of the collection
BLMException
public void remove(java.lang.String name)
throws BLMException
remove in class BLMComponentManagername - name of the LocalUser to be renamed
BLMException
public void removeCascade(java.lang.String name)
throws BLMException
name - name of the user to be removed.
BLMException
public void removeUserAttribute(java.lang.String name,
java.lang.String attrName)
throws BLMException,
BadParameterException
name - fully qualified name of the userattrName - the name of the attribute to remove
BLMException
BadParameterException
public void rename(java.lang.String oldName,
java.lang.String newName)
throws BLMException
rename in class BLMComponentManageroldName - old name of the usernewName - new name of the user
BLMException
public void setPasswordKnown(java.lang.String oldPassword,
java.lang.String newPassword,
java.lang.String confirmPassword)
throws BLMException
oldPassword - old passwordnewPassword - new passwordconfirmPassword - confirm password
BLMException
public void setPasswordUnknown(java.lang.String username,
java.lang.String newPassword,
java.lang.String confirmPassword)
throws BLMException
username - fully qualified user namenewPassword - new passwordconfirmPassword - confirm password
BLMException
public void setUserAttribute(java.lang.String aLocalUserName,
AttributeElement attrElem)
throws BLMException,
BadParameterException
aLocalUserName - user nameattrElem - the attribute name and value to set
BLMException
BadParameterException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||