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 AnyObjectDAO
anyObjectDAO
protected AnyObjectLogic
anyObjectLogic
protected SCIMDataBinder
binder
protected SCIMConfManager
confManager
protected GroupDAO
groupDAO
protected GroupLogic
groupLogic
protected static Logger
LOG
protected org.apache.cxf.jaxrs.ext.MessageContext
messageContext
protected javax.ws.rs.core.UriInfo
uriInfo
protected UserDAO
userDAO
protected UserLogic
userLogic
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSCIMService(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.ResponseBuilder
checkETag(String resource, String key)
protected javax.ws.rs.core.Response
createResponse(String key, SCIMResource resource)
protected ListResponse<R>
doSearch(String type, SCIMSearchRequest request)
protected Preference
getPreference()
ReadsPrefer
header from request and parses into aPreference
instance.protected abstract SCIMResource
getResource(String key)
protected javax.ws.rs.core.Response
updateResponse(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()
ReadsPrefer
header from request and parses into aPreference
instance.- Returns:
- a
Preference
instance matching the passedPrefer
header, orPreference.NONE
if missing.
-
-