Package org.nuxeo.scim.v2.api
Interface ScimV2MappingService
- All Known Implementing Classes:
ScimV2MappingServiceImpl
public interface ScimV2MappingService
- Since:
- 2023.14
-
Method Summary
Modifier and TypeMethodDescriptioncreateNuxeoGroupFromGroupResource
(com.unboundid.scim2.common.types.GroupResource group) Creates a Nuxeo group model according to the group resource.createNuxeoUserFromUserResource
(com.unboundid.scim2.common.types.UserResource user) Creates a Nuxeo user model according to the user resource.com.unboundid.scim2.common.types.GroupResource
getGroupResourceFromNuxeoGroup
(DocumentModel groupModel, String baseURL) Gets a group resource representation of a group model.Gets the contributed SCIM mapping.com.unboundid.scim2.common.types.UserResource
getUserResourceFromNuxeoUser
(DocumentModel userModel, String baseURL) Gets a user resource representation of a user model.void
patchNuxeoGroup
(String uid, com.unboundid.scim2.common.messages.PatchRequest patch) Patches a Nuxeo group model according to the patch request.patchNuxeoUser
(String uid, com.unboundid.scim2.common.messages.PatchRequest patch) Patches a Nuxeo user model according to the patch request.com.unboundid.scim2.common.messages.ListResponse<com.unboundid.scim2.common.ScimResource>
queryGroups
(ScimV2QueryContext queryCtx) Searches for groups.com.unboundid.scim2.common.messages.ListResponse<com.unboundid.scim2.common.ScimResource>
queryUsers
(ScimV2QueryContext queryCtx) Searches for users.updateNuxeoGroupFromGroupResource
(String uid, com.unboundid.scim2.common.types.GroupResource group) Updates a Nuxeo group model according to the group resource.updateNuxeoUserFromUserResource
(String uid, com.unboundid.scim2.common.types.UserResource user) Updates a Nuxeo user model according to the user resource.
-
Method Details
-
createNuxeoGroupFromGroupResource
DocumentModel createNuxeoGroupFromGroupResource(com.unboundid.scim2.common.types.GroupResource group) throws com.unboundid.scim2.common.exceptions.ScimException Creates a Nuxeo group model according to the group resource.- Parameters:
group
- the group resource- Returns:
- the created group
- Throws:
com.unboundid.scim2.common.exceptions.ScimException
- if an error occurred
-
createNuxeoUserFromUserResource
DocumentModel createNuxeoUserFromUserResource(com.unboundid.scim2.common.types.UserResource user) throws com.unboundid.scim2.common.exceptions.ScimException Creates a Nuxeo user model according to the user resource.- Parameters:
user
- the user resource- Returns:
- the created user
- Throws:
com.unboundid.scim2.common.exceptions.ScimException
- if an error occurred
-
getGroupResourceFromNuxeoGroup
com.unboundid.scim2.common.types.GroupResource getGroupResourceFromNuxeoGroup(DocumentModel groupModel, String baseURL) throws com.unboundid.scim2.common.exceptions.ScimException Gets a group resource representation of a group model.- Parameters:
groupModel
- the group modelbaseURL
- the location base URL of the SCIM group object- Returns:
- the group resource
- Throws:
com.unboundid.scim2.common.exceptions.ScimException
- if an error occurred
-
getMapping
ScimV2Mapping getMapping()Gets the contributed SCIM mapping.- Returns:
- the contributed scim mapping
-
getUserResourceFromNuxeoUser
com.unboundid.scim2.common.types.UserResource getUserResourceFromNuxeoUser(DocumentModel userModel, String baseURL) throws com.unboundid.scim2.common.exceptions.ScimException Gets a user resource representation of a user model.- Parameters:
userModel
- the user modelbaseURL
- the location base URL of the SCIM user object- Returns:
- the user resource
- Throws:
com.unboundid.scim2.common.exceptions.ScimException
- if an error occurred
-
patchNuxeoGroup
void patchNuxeoGroup(String uid, com.unboundid.scim2.common.messages.PatchRequest patch) throws com.unboundid.scim2.common.exceptions.ScimException Patches a Nuxeo group model according to the patch request.- Parameters:
uid
- the group uidpatch
- the patch request- Throws:
com.unboundid.scim2.common.exceptions.ScimException
- if an error occurred
-
patchNuxeoUser
DocumentModel patchNuxeoUser(String uid, com.unboundid.scim2.common.messages.PatchRequest patch) throws com.unboundid.scim2.common.exceptions.ScimException Patches a Nuxeo user model according to the patch request.- Parameters:
uid
- the user uidpatch
- the patch request- Returns:
- the patched user
- Throws:
com.unboundid.scim2.common.exceptions.ScimException
- if an error occurred
-
queryGroups
com.unboundid.scim2.common.messages.ListResponse<com.unboundid.scim2.common.ScimResource> queryGroups(ScimV2QueryContext queryCtx) throws com.unboundid.scim2.common.exceptions.ScimException Searches for groups.- Parameters:
queryCtx
- the query context- Returns:
- the query result
- Throws:
com.unboundid.scim2.common.exceptions.ScimException
- if an error occurred
-
queryUsers
com.unboundid.scim2.common.messages.ListResponse<com.unboundid.scim2.common.ScimResource> queryUsers(ScimV2QueryContext queryCtx) throws com.unboundid.scim2.common.exceptions.ScimException Searches for users.- Parameters:
queryCtx
- the query context- Returns:
- the query result
- Throws:
com.unboundid.scim2.common.exceptions.ScimException
- if an error occurred
-
updateNuxeoGroupFromGroupResource
DocumentModel updateNuxeoGroupFromGroupResource(String uid, com.unboundid.scim2.common.types.GroupResource group) throws com.unboundid.scim2.common.exceptions.ScimException Updates a Nuxeo group model according to the group resource.- Parameters:
uid
- the group uidgroup
- the group resource- Returns:
- the updated group
- Throws:
com.unboundid.scim2.common.exceptions.ScimException
- if an error occurred
-
updateNuxeoUserFromUserResource
DocumentModel updateNuxeoUserFromUserResource(String uid, com.unboundid.scim2.common.types.UserResource user) throws com.unboundid.scim2.common.exceptions.ScimException Updates a Nuxeo user model according to the user resource.- Parameters:
uid
- the user uiduser
- the user resource- Returns:
- the updated user
- Throws:
com.unboundid.scim2.common.exceptions.ScimException
- if an error occurred
-