Class AnyObjectServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.AbstractSearchService
-
- org.apache.syncope.core.rest.cxf.service.AbstractAnyService<AnyObjectTO,AnyObjectCR,AnyObjectUR>
-
- org.apache.syncope.core.rest.cxf.service.AnyObjectServiceImpl
-
- All Implemented Interfaces:
AnyObjectService
,AnyService<AnyObjectTO>
,JAXRSService
@Service public class AnyObjectServiceImpl extends AbstractAnyService<AnyObjectTO,AnyObjectCR,AnyObjectUR> implements AnyObjectService
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyObjectDAO
anyObjectDAO
protected AnyObjectLogic
logic
-
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractSearchService
searchCondVisitor
-
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfo
-
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
-
-
Constructor Summary
Constructors Constructor Description AnyObjectServiceImpl(SearchCondVisitor searchCondVisitor, AnyObjectDAO anyObjectDAO, AnyObjectLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(AnyObjectCR createReq)
Creates a new any object.protected AnyDAO<?>
getAnyDAO()
protected AbstractAnyLogic<AnyObjectTO,AnyObjectCR,AnyObjectUR>
getAnyLogic()
protected AnyObjectUR
newUpdateReq(String key)
AnyObjectTO
read(String key)
Reads the any object matching the provided key.AnyObjectTO
read(String type, String name)
PagedResult<AnyObjectTO>
search(AnyQuery anyQuery)
Returns a paged list of any objects matching the given query.javax.ws.rs.core.Response
update(AnyObjectUR updateReq)
Updates any object matching the provided key.-
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractAnyService
addUpdateOrReplaceAttr, associate, deassociate, delete, delete, doUpdate, findLastChange, read, read, update
-
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractSearchService
getSearchCond
-
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.syncope.common.rest.api.service.AnyService
associate, deassociate, delete, delete, read, read, update
-
-
-
-
Field Detail
-
anyObjectDAO
protected final AnyObjectDAO anyObjectDAO
-
logic
protected final AnyObjectLogic logic
-
-
Constructor Detail
-
AnyObjectServiceImpl
public AnyObjectServiceImpl(SearchCondVisitor searchCondVisitor, AnyObjectDAO anyObjectDAO, AnyObjectLogic logic)
-
-
Method Detail
-
getAnyDAO
protected AnyDAO<?> getAnyDAO()
- Specified by:
getAnyDAO
in classAbstractAnyService<AnyObjectTO,AnyObjectCR,AnyObjectUR>
-
getAnyLogic
protected AbstractAnyLogic<AnyObjectTO,AnyObjectCR,AnyObjectUR> getAnyLogic()
- Specified by:
getAnyLogic
in classAbstractAnyService<AnyObjectTO,AnyObjectCR,AnyObjectUR>
-
read
public AnyObjectTO read(String key)
Description copied from interface:AnyService
Reads the any object matching the provided key.- Specified by:
read
in interfaceAnyObjectService
- Specified by:
read
in interfaceAnyService<AnyObjectTO>
- Overrides:
read
in classAbstractAnyService<AnyObjectTO,AnyObjectCR,AnyObjectUR>
- Parameters:
key
- if value looks like a UUID then it is interpreted as key, otherwise as a (user)name- Returns:
- any object with matching key
-
read
public AnyObjectTO read(String type, String name)
- Specified by:
read
in interfaceAnyObjectService
-
newUpdateReq
protected AnyObjectUR newUpdateReq(String key)
- Specified by:
newUpdateReq
in classAbstractAnyService<AnyObjectTO,AnyObjectCR,AnyObjectUR>
-
create
public javax.ws.rs.core.Response create(AnyObjectCR createReq)
Description copied from interface:AnyObjectService
Creates a new any object.- Specified by:
create
in interfaceAnyObjectService
- Parameters:
createReq
- any object create request- Returns:
- Response object featuring Location header of created any object as well as the any object itself enriched with propagation status information
-
update
public javax.ws.rs.core.Response update(AnyObjectUR updateReq)
Description copied from interface:AnyObjectService
Updates any object matching the provided key.- Specified by:
update
in interfaceAnyObjectService
- Parameters:
updateReq
- modification to be applied to any object matching the provided key- Returns:
- Response object featuring the updated any object enriched with propagation status information
-
search
public PagedResult<AnyObjectTO> search(AnyQuery anyQuery)
Description copied from interface:AnyService
Returns a paged list of any objects matching the given query.- Specified by:
search
in interfaceAnyObjectService
- Specified by:
search
in interfaceAnyService<AnyObjectTO>
- Overrides:
search
in classAbstractAnyService<AnyObjectTO,AnyObjectCR,AnyObjectUR>
- Parameters:
anyQuery
- query conditions- Returns:
- paged list of any objects matching the given query
-
-