Package org.nuxeo.scim.server.mapper
Class AbstractMapper
- java.lang.Object
-
- org.nuxeo.scim.server.mapper.AbstractMapper
-
- Direct Known Subclasses:
ConfigurableUserMapper
,StaticUserMapper
public abstract class AbstractMapper extends Object
Base class used for mappers- Since:
- 7.4
- Author:
- tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected String
baseUrl
protected UserManager
um
-
Constructor Summary
Constructors Constructor Description AbstractMapper(String baseUrl)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DocumentModel
createGroupModelFromGroupResource(com.unboundid.scim.data.GroupResource group)
abstract DocumentModel
createNuxeoUserFromUserResource(com.unboundid.scim.data.UserResource user)
com.unboundid.scim.data.GroupResource
getGroupResourceFromNuxeoGroup(DocumentModel groupModel)
abstract com.unboundid.scim.data.UserResource
getUserResourceFromNuxeoUser(DocumentModel userModel)
protected void
updateGroupModel(DocumentModel userModel, com.unboundid.scim.data.GroupResource groupResouce)
DocumentModel
updateGroupModelFromGroupResource(String uid, com.unboundid.scim.data.GroupResource group)
abstract DocumentModel
updateNuxeoUserFromUserResource(String uid, com.unboundid.scim.data.UserResource user)
-
-
-
Field Detail
-
um
protected UserManager um
-
baseUrl
protected final String baseUrl
-
-
Constructor Detail
-
AbstractMapper
public AbstractMapper(String baseUrl)
-
-
Method Detail
-
getGroupResourceFromNuxeoGroup
public com.unboundid.scim.data.GroupResource getGroupResourceFromNuxeoGroup(DocumentModel groupModel) throws Exception
- Throws:
Exception
-
createGroupModelFromGroupResource
public DocumentModel createGroupModelFromGroupResource(com.unboundid.scim.data.GroupResource group) throws NuxeoException
- Throws:
NuxeoException
-
updateGroupModelFromGroupResource
public DocumentModel updateGroupModelFromGroupResource(String uid, com.unboundid.scim.data.GroupResource group) throws NuxeoException
- Throws:
NuxeoException
-
updateGroupModel
protected void updateGroupModel(DocumentModel userModel, com.unboundid.scim.data.GroupResource groupResouce) throws NuxeoException
- Throws:
NuxeoException
-
getUserResourceFromNuxeoUser
public abstract com.unboundid.scim.data.UserResource getUserResourceFromNuxeoUser(DocumentModel userModel) throws Exception
- Throws:
Exception
-
createNuxeoUserFromUserResource
public abstract DocumentModel createNuxeoUserFromUserResource(com.unboundid.scim.data.UserResource user) throws NuxeoException
- Throws:
NuxeoException
-
updateNuxeoUserFromUserResource
public abstract DocumentModel updateNuxeoUserFromUserResource(String uid, com.unboundid.scim.data.UserResource user)
-
-