Package org.nuxeo.scim.server.mapper
Class StaticUserMapper
- java.lang.Object
-
- org.nuxeo.scim.server.mapper.AbstractMapper
-
- org.nuxeo.scim.server.mapper.StaticUserMapper
-
public class StaticUserMapper extends AbstractMapper
Static / Hardcoded Mapper implementation (in caseUserMapperService
is not available)- Since:
- 7.4
- Author:
- tiry
-
-
Field Summary
-
Fields inherited from class org.nuxeo.scim.server.mapper.AbstractMapper
baseUrl, um
-
-
Constructor Summary
Constructors Constructor Description StaticUserMapper(String baseUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModel
createNuxeoUserFromUserResource(com.unboundid.scim.data.UserResource user)
com.unboundid.scim.data.UserResource
getUserResourceFromNuxeoUser(DocumentModel userModel)
DocumentModel
updateNuxeoUserFromUserResource(String uid, com.unboundid.scim.data.UserResource user)
protected void
updateUserModel(DocumentModel userModel, com.unboundid.scim.data.UserResource userResouce)
-
Methods inherited from class org.nuxeo.scim.server.mapper.AbstractMapper
createGroupModelFromGroupResource, getGroupResourceFromNuxeoGroup, updateGroupModel, updateGroupModelFromGroupResource
-
-
-
-
Constructor Detail
-
StaticUserMapper
public StaticUserMapper(String baseUrl)
-
-
Method Detail
-
getUserResourceFromNuxeoUser
public com.unboundid.scim.data.UserResource getUserResourceFromNuxeoUser(DocumentModel userModel) throws Exception
- Specified by:
getUserResourceFromNuxeoUser
in classAbstractMapper
- Throws:
Exception
-
createNuxeoUserFromUserResource
public DocumentModel createNuxeoUserFromUserResource(com.unboundid.scim.data.UserResource user) throws NuxeoException
- Specified by:
createNuxeoUserFromUserResource
in classAbstractMapper
- Throws:
NuxeoException
-
updateNuxeoUserFromUserResource
public DocumentModel updateNuxeoUserFromUserResource(String uid, com.unboundid.scim.data.UserResource user) throws NuxeoException
- Specified by:
updateNuxeoUserFromUserResource
in classAbstractMapper
- Throws:
NuxeoException
-
updateUserModel
protected void updateUserModel(DocumentModel userModel, com.unboundid.scim.data.UserResource userResouce) throws NuxeoException
- Throws:
NuxeoException
-
-