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
public class AnyObjectServiceImpl
extends AbstractAnyService<AnyObjectTO,AnyObjectCR,AnyObjectUR>
implements AnyObjectService
-
Field Summary
FieldsFields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractSearchService
searchCondVisitorFields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfoFields 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
ConstructorsConstructorDescriptionAnyObjectServiceImpl(SearchCondVisitor searchCondVisitor, AnyObjectDAO anyObjectDAO, AnyObjectLogic logic) -
Method Summary
Modifier and TypeMethodDescriptioncreate(AnyObjectCR createReq) Creates a new any object.protected AnyDAO<?> protected AbstractAnyLogic<AnyObjectTO, AnyObjectCR, AnyObjectUR> protected AnyObjectURnewUpdateReq(String key) Reads the any object matching the provided key.Returns a paged list of any objects matching the given query.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, updateMethods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractSearchService
getSearchCondMethods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getPreference, isNullPriorityAsync, modificationResponse, pageable, pageable, sortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.syncope.common.rest.api.service.AnyService
associate, deassociate, delete, delete, read, read, update
-
Field Details
-
anyObjectDAO
-
logic
-
-
Constructor Details
-
AnyObjectServiceImpl
public AnyObjectServiceImpl(SearchCondVisitor searchCondVisitor, AnyObjectDAO anyObjectDAO, AnyObjectLogic logic)
-
-
Method Details
-
getAnyDAO
- Specified by:
getAnyDAOin classAbstractAnyService<AnyObjectTO,AnyObjectCR, AnyObjectUR>
-
getAnyLogic
- Specified by:
getAnyLogicin classAbstractAnyService<AnyObjectTO,AnyObjectCR, AnyObjectUR>
-
read
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
- Specified by:
readin interfaceAnyObjectService
-
newUpdateReq
- Specified by:
newUpdateReqin classAbstractAnyService<AnyObjectTO,AnyObjectCR, AnyObjectUR>
-
create
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
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
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
-