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 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
ConstructorDescriptionAnyObjectServiceImpl
(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 AnyObjectUR
newUpdateReq
(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, 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, getPreference, isNullPriorityAsync, modificationResponse, pageable, pageable, sort
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 Details
-
anyObjectDAO
-
logic
-
-
Constructor Details
-
AnyObjectServiceImpl
public AnyObjectServiceImpl(SearchCondVisitor searchCondVisitor, AnyObjectDAO anyObjectDAO, AnyObjectLogic logic)
-
-
Method Details
-
getAnyDAO
- Specified by:
getAnyDAO
in classAbstractAnyService<AnyObjectTO,
AnyObjectCR, AnyObjectUR>
-
getAnyLogic
- Specified by:
getAnyLogic
in classAbstractAnyService<AnyObjectTO,
AnyObjectCR, AnyObjectUR>
-
read
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
- Specified by:
read
in interfaceAnyObjectService
-
newUpdateReq
- Specified by:
newUpdateReq
in classAbstractAnyService<AnyObjectTO,
AnyObjectCR, AnyObjectUR>
-
create
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
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
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
-