public interface UserManager
| Modifier and Type | Method and Description |
|---|---|
Group |
createGroup(Group group,
Map<String,Boolean> requiredAttributes) |
User |
createMe(User user,
Map<String,Boolean> requiredAttributes) |
User |
createUser(User user,
Map<String,Boolean> requiredAttributes)
User Manipulation operations.
|
void |
deleteGroup(String id) |
void |
deleteMe(String userName) |
void |
deleteUser(String userId) |
default List<Attribute> |
getCustomUserSchemaAttributes()
Returns list of attributes in custom schema.
|
default AttributeSchema |
getCustomUserSchemaExtension()
Return Custom schema.
|
default List<Attribute> |
getEnterpriseUserSchema()
Retrieve schema of the enterprise user.
|
Group |
getGroup(String id,
Map<String,Boolean> requiredAttributes) |
User |
getMe(String userName,
Map<String,Boolean> requiredAttributes) |
User |
getUser(String id,
Map<String,Boolean> requiredAttributes) |
default List<Attribute> |
getUserSchema() |
default List<Object> |
listGroupsWithGET(Node node,
Integer startIndex,
Integer count,
String sortBy,
String sortOrder,
String domainName,
Map<String,Boolean> requiredAttributes) |
default List<Object> |
listGroupsWithGET(Node node,
int startIndex,
int count,
String sortBy,
String sortOrder,
Map<String,Boolean> requiredAttributes)
Deprecated.
|
default List<Object> |
listGroupsWithGET(Node node,
int startIndex,
int count,
String sortBy,
String sortOrder,
String domainName,
Map<String,Boolean> requiredAttributes)
Deprecated.
Method does not handle when the count is not specified in the request and when the count specified
is zero. Use
listGroupsWithGET(Node, Integer, Integer, String, String,
String, Map) method. |
List<Object> |
listGroupsWithPost(SearchRequest searchRequest,
Map<String,Boolean> requiredAttributes) |
default List<Object> |
listUsersWithGET(Node node,
Integer startIndex,
Integer count,
String sortBy,
String sortOrder,
String domainName,
Map<String,Boolean> requiredAttributes)
List users with Get.
|
default List<Object> |
listUsersWithGET(Node node,
int startIndex,
int count,
String sortBy,
String sortOrder,
Map<String,Boolean> requiredAttributes)
Deprecated.
|
default List<Object> |
listUsersWithGET(Node node,
int startIndex,
int count,
String sortBy,
String sortOrder,
String domainName,
Map<String,Boolean> requiredAttributes)
Deprecated.
Method does not handle when the count is not specified in the request and when the count specified
is zero.
Use
listUsersWithGET(Node, Integer, Integer, String, String,
String, Map) method. |
List<Object> |
listUsersWithPost(SearchRequest searchRequest,
Map<String,Boolean> requiredAttributes) |
default Group |
patchGroup(String groupId,
String currentGroupName,
Map<String,List<PatchOperation>> patchOperations,
Map<String,Boolean> requiredAttributes)
Updates the group via PATCH.
|
default void |
updateGroup(Group oldGroup,
Group newGroup)
Updates the group.
|
Group |
updateGroup(Group oldGroup,
Group newGroup,
Map<String,Boolean> requiredAttributes) |
User |
updateMe(User updatedUser,
Map<String,Boolean> requiredAttributes) |
User |
updateUser(User updatedUser,
Map<String,Boolean> requiredAttributes) |
default User |
updateUser(User updatedUser,
Map<String,Boolean> requiredAttributes,
List<String> allSimpleMultiValuedAttributes)
Identify user claims to be updated and update the user in user store.
|
User createUser(User user, Map<String,Boolean> requiredAttributes) throws CharonException, ConflictException, BadRequestException
User getUser(String id, Map<String,Boolean> requiredAttributes) throws CharonException, BadRequestException, NotFoundException
void deleteUser(String userId) throws NotFoundException, CharonException, NotImplementedException, BadRequestException
default List<Object> listUsersWithGET(Node node, Integer startIndex, Integer count, String sortBy, String sortOrder, String domainName, Map<String,Boolean> requiredAttributes) throws CharonException, NotImplementedException, BadRequestException
node - NodestartIndex - Start Indexcount - CountsortBy - Sort bysortOrder - Sort orderdomainName - Domain namerequiredAttributes - Required user attributesCharonException - Error while listing usersNotImplementedException - Operation note implementedBadRequestException - Bad request@Deprecated default List<Object> listUsersWithGET(Node node, int startIndex, int count, String sortBy, String sortOrder, String domainName, Map<String,Boolean> requiredAttributes) throws CharonException, NotImplementedException, BadRequestException
listUsersWithGET(Node, Integer, Integer, String, String,
String, Map) method.CharonExceptionNotImplementedExceptionBadRequestException@Deprecated default List<Object> listUsersWithGET(Node node, int startIndex, int count, String sortBy, String sortOrder, Map<String,Boolean> requiredAttributes) throws CharonException, NotImplementedException, BadRequestException
List<Object> listUsersWithPost(SearchRequest searchRequest, Map<String,Boolean> requiredAttributes) throws CharonException, NotImplementedException, BadRequestException
User updateUser(User updatedUser, Map<String,Boolean> requiredAttributes) throws NotImplementedException, CharonException, BadRequestException, NotFoundException
default User updateUser(User updatedUser, Map<String,Boolean> requiredAttributes, List<String> allSimpleMultiValuedAttributes) throws CharonException, BadRequestException, NotFoundException, NotImplementedException
updatedUser - Updated user.requiredAttributes - URIs of required attributes which must be given a value.allSimpleMultiValuedAttributes - Simple multi-valued attributes defined in SCIM schema.CharonException - Charon exception.BadRequestException - Bad request exception.NotFoundException - Not found exception.NotImplementedException - Functionality no implemented exception.User getMe(String userName, Map<String,Boolean> requiredAttributes) throws CharonException, BadRequestException, NotFoundException
User createMe(User user, Map<String,Boolean> requiredAttributes) throws CharonException, ConflictException, BadRequestException
void deleteMe(String userName) throws NotFoundException, CharonException, NotImplementedException, BadRequestException
User updateMe(User updatedUser, Map<String,Boolean> requiredAttributes) throws NotImplementedException, CharonException, BadRequestException, NotFoundException
Group createGroup(Group group, Map<String,Boolean> requiredAttributes) throws CharonException, ConflictException, NotImplementedException, BadRequestException
Group getGroup(String id, Map<String,Boolean> requiredAttributes) throws NotImplementedException, BadRequestException, CharonException, NotFoundException
void deleteGroup(String id) throws NotFoundException, CharonException, NotImplementedException, BadRequestException
default List<Object> listGroupsWithGET(Node node, Integer startIndex, Integer count, String sortBy, String sortOrder, String domainName, Map<String,Boolean> requiredAttributes) throws CharonException, NotImplementedException, BadRequestException
@Deprecated default List<Object> listGroupsWithGET(Node node, int startIndex, int count, String sortBy, String sortOrder, String domainName, Map<String,Boolean> requiredAttributes) throws CharonException, NotImplementedException, BadRequestException
listGroupsWithGET(Node, Integer, Integer, String, String,
String, Map) method.CharonExceptionNotImplementedExceptionBadRequestException@Deprecated default List<Object> listGroupsWithGET(Node node, int startIndex, int count, String sortBy, String sortOrder, Map<String,Boolean> requiredAttributes) throws CharonException, NotImplementedException, BadRequestException
Group updateGroup(Group oldGroup, Group newGroup, Map<String,Boolean> requiredAttributes) throws NotImplementedException, BadRequestException, CharonException, NotFoundException
default void updateGroup(Group oldGroup, Group newGroup) throws NotImplementedException, BadRequestException, CharonException, NotFoundException
oldGroup - newGroup - NotImplementedExceptionBadRequestExceptionCharonExceptionNotFoundExceptiondefault Group patchGroup(String groupId, String currentGroupName, Map<String,List<PatchOperation>> patchOperations, Map<String,Boolean> requiredAttributes) throws NotImplementedException, BadRequestException, CharonException, NotFoundException
groupId - ID of the group.currentGroupName - Current name of the group.patchOperations - A map of patch operations.requiredAttributes - Attributes to be returned in the response.CharonException - Charon exception.BadRequestException - Bad request exception.NotFoundException - Not found exception.NotImplementedException - Functionality no implemented exception.List<Object> listGroupsWithPost(SearchRequest searchRequest, Map<String,Boolean> requiredAttributes) throws NotImplementedException, BadRequestException, CharonException
default List<Attribute> getUserSchema() throws CharonException, NotImplementedException, BadRequestException
default List<Attribute> getEnterpriseUserSchema() throws CharonException, NotImplementedException, BadRequestException
CharonExceptionNotImplementedExceptionBadRequestExceptiondefault AttributeSchema getCustomUserSchemaExtension() throws CharonException, NotImplementedException, BadRequestException
CharonExceptionNotImplementedExceptionBadRequestExceptiondefault List<Attribute> getCustomUserSchemaAttributes() throws CharonException, NotImplementedException, BadRequestException
CharonExceptionNotImplementedExceptionBadRequestExceptionCopyright © 2021 WSO2. All rights reserved.