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 AnyObjectDAOanyObjectDAOprotected AnyObjectLogiclogic-
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.Responsecreate(AnyObjectCR createReq)Creates a new any object.protected AnyDAO<?>getAnyDAO()protected AbstractAnyLogic<AnyObjectTO,AnyObjectCR,AnyObjectUR>getAnyLogic()protected AnyObjectURnewUpdateReq(String key)AnyObjectTOread(String key)Reads the any object matching the provided key.AnyObjectTOread(String type, String name)PagedResult<AnyObjectTO>search(AnyQuery anyQuery)Returns a paged list of any objects matching the given query.javax.ws.rs.core.Responseupdate(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:
getAnyDAOin classAbstractAnyService<AnyObjectTO,AnyObjectCR,AnyObjectUR>
-
getAnyLogic
protected AbstractAnyLogic<AnyObjectTO,AnyObjectCR,AnyObjectUR> getAnyLogic()
- Specified by:
getAnyLogicin classAbstractAnyService<AnyObjectTO,AnyObjectCR,AnyObjectUR>
-
read
public AnyObjectTO read(String key)
Description copied from interface:AnyServiceReads the any object matching the provided key.- Specified by:
readin interfaceAnyObjectService- Specified by:
readin interfaceAnyService<AnyObjectTO>- Overrides:
readin 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:
readin interfaceAnyObjectService
-
newUpdateReq
protected AnyObjectUR newUpdateReq(String key)
- Specified by:
newUpdateReqin classAbstractAnyService<AnyObjectTO,AnyObjectCR,AnyObjectUR>
-
create
public javax.ws.rs.core.Response create(AnyObjectCR createReq)
Description copied from interface:AnyObjectServiceCreates a new any object.- Specified by:
createin 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:AnyObjectServiceUpdates any object matching the provided key.- Specified by:
updatein 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:AnyServiceReturns a paged list of any objects matching the given query.- Specified by:
searchin interfaceAnyObjectService- Specified by:
searchin interfaceAnyService<AnyObjectTO>- Overrides:
searchin classAbstractAnyService<AnyObjectTO,AnyObjectCR,AnyObjectUR>- Parameters:
anyQuery- query conditions- Returns:
- paged list of any objects matching the given query
-
-