|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IIdentityManager
Defines the expected behavior for an identity manager. This manager supports users IDIFUser
and groups
IDIFGroup
.
Method Summary | |
---|---|
void |
addGroup(IDIFGroup newGroup)
Adds a new group to the manager. |
void |
addManagedAttribute(String attribute)
Adds a managed attribute. |
void |
addManagedAttributes(String attributes)
Adds a comma-separated list of managed attributes. |
void |
addUser(IDIFUser newUser)
Adds a new user to the manager. |
void |
addUserToGroup(String userID,
String groupID)
Adds an existing user to an existing group. |
void |
changePassword(String userID,
String newPassword)
Changes the password for the supplied user. |
boolean |
containsUserParameter(String userID,
String parameterID)
Checks if a parameter exists. |
int |
countAllGroups()
Counts the number of groups in the system |
int |
countAllGroupsOfUser(String userId)
Counts all groups of a given user. |
int |
countAllGroupsOfUser(String userId,
boolean parseGroupHierarchy)
Counts all groups of a given user. |
int |
countAllUsers()
Counts the number of users in the system |
int |
countAllUsers(String groupId)
Counts all users of a given group. |
int |
countUsers(Map<String,String> attributes)
Count the number of users in the system which match all of the provided attributes |
List<String> |
gatherManagedAttributes()
Gathers the managed attributes. |
Set<IDIFGroup> |
getAllGroups()
Get all the groups registered in the system |
Set<IDIFUser> |
getAllUsers()
Get all the users in the system |
String |
getExclusionCharaters()
Get the exclusion charaters |
IDIFGroup |
getGroup(String groupID)
Gets a group from its id, if it exists. |
String |
getGroupAttributeName()
Gets the group attribute name |
Map<String,IDIFGroup> |
getGroupGroups(String parentGroupID)
Returns the list of groups whose parent group is the given group |
Set<IDIFGroup> |
getGroups(Pagination page)
Returns a subset of all groups in the system, according to the parameters |
Map<String,IDIFUser> |
getGroupUsers(String groupID)
Returns the list of users of a given group |
String |
getMailAttributeName()
Gets the mail attribute name |
List<String> |
getManagedAttributes()
Gets the framework managed attributes. |
String |
getNameAttributeName()
Gets the name attribute name |
IDIFUser |
getUser(String userID)
Gets an user from its id, if it exists. |
Map<String,IDIFGroup> |
getUserGroups(String userID)
Returns the list of groups of a given user |
Map<String,IDIFGroup> |
getUserGroups(String userID,
boolean parseGroupHierarchy)
Returns the list of groups of a given user |
Set<String> |
getUserGroupsIDs(String userID)
Returns the list of group IDs of a given user |
Set<String> |
getUserGroupsIDs(String userID,
boolean parseGroupHierarchy)
Returns the list of group IDs of a given user |
Map<String,IDIFGroup> |
getUserGroupsPagination(String userID,
Pagination page)
Returns the list of groups of a given user, with pagination. |
Set<String> |
getUserIDsInGroup(String groupID)
Returns the list of user IDs of a given group |
String |
getUserLoginAttributeName()
Gets the user login attribute name |
Object |
getUserParameter(String userID,
String parameterID)
Gets a given parameter from a given user. |
Map<String,Object> |
getUserParameters(String userID)
Gets all the parameters from a given user. |
String |
getUserParentGroupAttributeName()
Returns the user parent group attribute name |
Set<IDIFUser> |
getUsers(Pagination page)
Returns a subset of all users in the system, according to the parameters |
Set<IDIFUser> |
getUsersByAttribute(String attribute,
String value)
Returns the list of users with a given attribute value. |
Set<IDIFUser> |
getUsersByAttributes(Map<String,String> attributes)
Get users that match specified attributes. |
Set<IDIFUser> |
getUsersByAttributes(Map<String,String> attributes,
Pagination page)
Get users that match specified attributes. |
Set<IDIFUser> |
getUsersByEmail(String value)
Returns the list of users with a given email attribute value. |
boolean |
groupExists(String groupID)
Checks if a group exists on the manager. |
boolean |
isIdentityValid(String userID,
String suppliedPassword)
Checks if the supplied password matches the one defined for a user with a given ID. |
boolean |
isReadOnly()
Get the ldap readOnly configuration value. |
boolean |
isUserInGroup(String userID,
String groupID)
Checks if a given user belongs to a given group. |
boolean |
isUserInGroup(String userID,
String groupID,
boolean parseGroupHierarchy)
Checks if a given user belongs to a given group. |
void |
removeGroup(String groupID)
Removes an existing group from the manager, if it exists. |
void |
removeUser(String userID)
Removes an existing user from the manager, if it exists. |
void |
removeUserFromGroup(String userID,
String groupID)
Removes an existing user from an existing group. |
void |
removeUserParameter(String userID,
String parameterID)
Removes a given parameter from a given user. |
void |
resetIdentityManager()
Resets the identity manager. |
void |
setUserParameter(String userID,
String parameterID,
Object parameterValue)
Sets an user parameter. |
void |
setUserParameters(String userID,
Map<String,Object> parametersMap)
Sets the user parameters as an whole. |
void |
updateGroup(IDIFGroup existingGroup)
Updates an existing group. |
void |
updateUser(IDIFUser existingUser,
String userID)
Updates an existing user. |
void |
updateUserAttribute(String userID,
String attributeID,
Object attributeValue)
Updates an attribute value on a given user and persists it. |
void |
updateUserAttributes(String userID,
Map<String,Object> attributes)
Updates all of the user's attributes. |
boolean |
userExists(String userID)
Checks if a user exists on the manager. |
Method Detail |
---|
void addGroup(IDIFGroup newGroup) throws IdentityManagerException
newGroup
- the group to add
IdentityManagerException
- if the user can't be addedvoid addManagedAttribute(String attribute)
attribute
- The attributevoid addManagedAttributes(String attributes)
attributes
- The comma-separated list of managed attributes.void addUser(IDIFUser newUser) throws IdentityManagerException
newUser
- the new user to add to the manager
IdentityManagerException
- if the user can't be addedvoid addUserToGroup(String userID, String groupID) throws IdentityManagerException
groupID
- the group IDuserID
- the user ID
IdentityManagerException
- if the user can't be added to the groupvoid changePassword(String userID, String newPassword) throws IdentityManagerException
userID
- the user IDnewPassword
- the new password
IdentityManagerException
- if the password can't be changedboolean containsUserParameter(String userID, String parameterID)
userID
- the user IDparameterID
- the parameter ID
int countAllGroups() throws IdentityManagerException
IdentityManagerException
- * If the operation cannot be executedint countAllGroupsOfUser(String userId) throws IdentityManagerException
userId
- The user identifier
IdentityManagerException
int countAllGroupsOfUser(String userId, boolean parseGroupHierarchy) throws IdentityManagerException
userId
- The user identifierparseGroupHierarchy
- contemplates the group Hierarchy
IdentityManagerException
int countAllUsers() throws IdentityManagerException
IdentityManagerException
- If the operation cannot be executedint countAllUsers(String groupId) throws IdentityManagerException
groupId
- The group identifier
IdentityManagerException
int countUsers(Map<String,String> attributes) throws IdentityManagerException
attributes
- The attributes
IdentityManagerException
- If the operation cannot be executedList<String> gatherManagedAttributes()
Set<IDIFGroup> getAllGroups() throws IdentityManagerException
IdentityManagerException
- If the operation cannot be executedSet<IDIFUser> getAllUsers() throws IdentityManagerException
IdentityManagerException
- If the operation cannot be executedString getExclusionCharaters()
IDIFGroup getGroup(String groupID) throws IdentityManagerException
groupID
- the group id
IdentityManagerException
- if the group can't be foundString getGroupAttributeName()
Map<String,IDIFGroup> getGroupGroups(String parentGroupID) throws IdentityManagerException
parentGroupID
- the parent group to search for children groups
IdentityManagerException
- if the group's groups can't be foundSet<IDIFGroup> getGroups(Pagination page) throws IdentityManagerException
page
- The required page
IdentityManagerException
- If the operation can't be executedMap<String,IDIFUser> getGroupUsers(String groupID) throws IdentityManagerException
groupID
- the group
IdentityManagerException
- if the operation can't be executedString getMailAttributeName()
List<String> getManagedAttributes()
String getNameAttributeName()
IDIFUser getUser(String userID) throws IdentityManagerException
userID
- the user id
IdentityManagerException
- if the user can't be fetchedMap<String,IDIFGroup> getUserGroups(String userID) throws IdentityManagerException
userID
- the user
IdentityManagerException
- if the group's users can't be foundMap<String,IDIFGroup> getUserGroups(String userID, boolean parseGroupHierarchy) throws IdentityManagerException
userID
- the userparseGroupHierarchy
- contemplates the group Hierarchy
IdentityManagerException
- if the group's users can't be foundSet<String> getUserGroupsIDs(String userID) throws IdentityManagerException
userID
- the user
IdentityManagerException
- if the group's users can't be foundSet<String> getUserGroupsIDs(String userID, boolean parseGroupHierarchy) throws IdentityManagerException
userID
- the userparseGroupHierarchy
- contemplates the group Hierarchy
IdentityManagerException
- if the group's users can't be foundMap<String,IDIFGroup> getUserGroupsPagination(String userID, Pagination page) throws IdentityManagerException
userID
- the userpage
- The page to be returned
IdentityManagerException
- if the group's users can't be foundSet<String> getUserIDsInGroup(String groupID) throws IdentityManagerException
groupID
- the group
IdentityManagerException
- if the operation can't be executedString getUserLoginAttributeName()
Object getUserParameter(String userID, String parameterID)
userID
- parameterID
-
Map<String,Object> getUserParameters(String userID)
userID
- the user ID
String getUserParentGroupAttributeName()
Set<IDIFUser> getUsers(Pagination page) throws IdentityManagerException
page
- The required page
IdentityManagerException
- If the operation can't be executedSet<IDIFUser> getUsersByAttribute(String attribute, String value) throws IdentityManagerException
attribute
- the attribute to searchvalue
- the value for the attribute
IdentityManagerException
- if the operation cannot be executedSet<IDIFUser> getUsersByAttributes(Map<String,String> attributes) throws IdentityManagerException
attributes
- A map of attributes to be searched, where the keys are the attribute names, and the values are the
attribute values.
IdentityManagerException
- If the operation can't be executedSet<IDIFUser> getUsersByAttributes(Map<String,String> attributes, Pagination page) throws IdentityManagerException
attributes
- A map of attributes to be searched, where the keys are the attribute names, and the values are the
attribute values.page
- The page to be obtained
IdentityManagerException
- If the operation can't be executedSet<IDIFUser> getUsersByEmail(String value) throws IdentityManagerException
value
- the value for the attribute email
IdentityManagerException
- if the operation cannot be executedboolean groupExists(String groupID) throws IdentityManagerException
groupID
- the ID of the group
IdentityManagerException
- if the operation can't be executedboolean isIdentityValid(String userID, String suppliedPassword) throws IdentityManagerException
userID
- the user IDsuppliedPassword
- the supplied user password
IdentityManagerException
- if the group can't be added as member of the parent groupboolean isReadOnly()
boolean isUserInGroup(String userID, String groupID) throws IdentityManagerException
userID
- the user IDgroupID
- the group ID
IdentityManagerException
- if the operation can't be executedboolean isUserInGroup(String userID, String groupID, boolean parseGroupHierarchy) throws IdentityManagerException
userID
- the user IDgroupID
- the group IDparseGroupHierarchy
- contemplates the group Hierarchy
IdentityManagerException
- if the operation can't be executedvoid removeGroup(String groupID) throws IdentityManagerException
groupID
- the id of the group to remove
IdentityManagerException
- if the group can't be removedvoid removeUser(String userID) throws IdentityManagerException
userID
- the id of the user to remove
IdentityManagerException
- if the user can't be removedvoid removeUserFromGroup(String userID, String groupID) throws IdentityManagerException
groupID
- the group IDuserID
- the user ID
IdentityManagerException
- if the user can't be removed from the groupvoid removeUserParameter(String userID, String parameterID)
userID
- the user IDparameterID
- the parameter IDvoid resetIdentityManager()
void setUserParameter(String userID, String parameterID, Object parameterValue)
userID
- the user IDparameterID
- the parameter IDparameterValue
- the parameter valuevoid setUserParameters(String userID, Map<String,Object> parametersMap)
userID
- the user IDparametersMap
- the parameters mapvoid updateGroup(IDIFGroup existingGroup) throws IdentityManagerException
existingGroup
- the group to update
IdentityManagerException
- if the group can't be updatedvoid updateUser(IDIFUser existingUser, String userID) throws IdentityManagerException
existingUser
- the user to updateuserID
- the user ID (must be supplied separately to ensure data integrity if the user ID is changed)
IdentityManagerException
- if the operation can't be executedvoid updateUserAttribute(String userID, String attributeID, Object attributeValue) throws IdentityManagerException
userID
- the ID of the user to updateattributeID
- the ID of the attribute to updateattributeValue
- the value of the attribute to update
IdentityManagerException
- if the attribute can't be updatedvoid updateUserAttributes(String userID, Map<String,Object> attributes) throws IdentityManagerException
userID
- the ID of the user to updateattributes
- the attributes to update
IdentityManagerException
- if the attribute can't be updatedboolean userExists(String userID) throws IdentityManagerException
userID
- the ID of the user
IdentityManagerException
- if the operation can't be executed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |