Class AbstractSCIMService<R extends SCIMResource>
- java.lang.Object
-
- org.apache.syncope.ext.scimv2.cxf.service.AbstractSCIMService<R>
-
- Direct Known Subclasses:
SCIMAnyObjectServiceImpl,SCIMGroupServiceImpl,SCIMServiceImpl,SCIMUserServiceImpl
public abstract class AbstractSCIMService<R extends SCIMResource> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyObjectDAOanyObjectDAOprotected AnyObjectLogicanyObjectLogicprotected SCIMDataBinderbinderprotected SCIMConfManagerconfManagerprotected GroupDAOgroupDAOprotected GroupLogicgroupLogicprotected static LoggerLOGprotected org.apache.cxf.jaxrs.ext.MessageContextmessageContextprotected javax.ws.rs.core.UriInfouriInfoprotected UserDAOuserDAOprotected UserLogicuserLogic
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSCIMService(UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, UserLogic userLogic, GroupLogic groupLogic, AnyObjectLogic anyObjectLogic, SCIMDataBinder binder, SCIMConfManager confManager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected AnyDAO<?>anyDAO(String type)protected AbstractAnyLogic<?,?,?>anyLogic(String type)protected javax.ws.rs.core.Response.ResponseBuildercheckETag(String resource, String key)protected javax.ws.rs.core.ResponsecreateResponse(String key, SCIMResource resource)protected ListResponse<R>doSearch(String type, SCIMSearchRequest request)protected PreferencegetPreference()ReadsPreferheader from request and parses into aPreferenceinstance.protected abstract SCIMResourcegetResource(String key)protected javax.ws.rs.core.ResponseupdateResponse(String key, SCIMResource resource, boolean patch)
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
uriInfo
@Context protected javax.ws.rs.core.UriInfo uriInfo
-
messageContext
@Context protected org.apache.cxf.jaxrs.ext.MessageContext messageContext
-
userDAO
protected final UserDAO userDAO
-
groupDAO
protected final GroupDAO groupDAO
-
anyObjectDAO
protected final AnyObjectDAO anyObjectDAO
-
userLogic
protected final UserLogic userLogic
-
groupLogic
protected final GroupLogic groupLogic
-
anyObjectLogic
protected final AnyObjectLogic anyObjectLogic
-
binder
protected final SCIMDataBinder binder
-
confManager
protected final SCIMConfManager confManager
-
-
Constructor Detail
-
AbstractSCIMService
protected AbstractSCIMService(UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, UserLogic userLogic, GroupLogic groupLogic, AnyObjectLogic anyObjectLogic, SCIMDataBinder binder, SCIMConfManager confManager)
-
-
Method Detail
-
anyLogic
protected AbstractAnyLogic<?,?,?> anyLogic(String type)
-
createResponse
protected javax.ws.rs.core.Response createResponse(String key, SCIMResource resource)
-
updateResponse
protected javax.ws.rs.core.Response updateResponse(String key, SCIMResource resource, boolean patch)
-
getResource
protected abstract SCIMResource getResource(String key)
-
checkETag
protected javax.ws.rs.core.Response.ResponseBuilder checkETag(String resource, String key)
-
doSearch
protected ListResponse<R> doSearch(String type, SCIMSearchRequest request)
-
getPreference
protected Preference getPreference()
ReadsPreferheader from request and parses into aPreferenceinstance.- Returns:
- a
Preferenceinstance matching the passedPreferheader, orPreference.NONEif missing.
-
-