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<TO,CR,UR>
- All Implemented Interfaces:
AnyService<TO>,JAXRSService
- Direct Known Subclasses:
AnyObjectServiceImpl,GroupServiceImpl,UserServiceImpl
public abstract class AbstractAnyService<TO extends AnyTO,CR extends AnyCR,UR extends AnyUR>
extends AbstractSearchService
implements AnyService<TO>
-
Field Summary
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddUpdateOrReplaceAttr(String key, SchemaType schemaType, Attr attrTO, PatchOperation operation) associate(ResourceAR req) Executes resource-related operations on given entity.deassociate(ResourceDR req) Executes resource-related operations on given entity.Deletes any object matching provided key.voiddelete(String key, SchemaType schemaType, String schema) Deletes the attribute, owned by the given any object, for the given schema type and schema.protected Responseprotected OffsetDateTimefindLastChange(String key) protected abstract AnyDAO<?> protected abstract AbstractAnyLogic<TO, CR, UR> protected abstract URnewUpdateReq(String key) Reads the any object matching the provided key.read(String key, SchemaType schemaType) Reads the list of attributes owned by the given any object for the given schema type.read(String key, SchemaType schemaType, String schema) Reads the attribute, owned by the given any object, for the given schema type and schema.Returns a paged list of any objects matching the given query.update(String key, SchemaType schemaType, Attr attrTO) Adds or replaces the attribute, owned by the given any object, for the given schema type and schema.Methods 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, sort
-
Constructor Details
-
AbstractAnyService
-
-
Method Details
-
getAnyDAO
-
getAnyLogic
-
newUpdateReq
-
read
Description copied from interface:AnyServiceReads the list of attributes owned by the given any object for the given schema type. Note that for the UserService, GroupService and AnyObjectService subclasses, if the key parameter looks like a UUID then it is interpreted as as key, otherwise as a (user)name.- Specified by:
readin interfaceAnyService<TO extends AnyTO>- Parameters:
key- any object key or nameschemaType- schema type- Returns:
- list of attributes, owned by the given any object, for the given schema type
-
read
Description copied from interface:AnyServiceReads the attribute, owned by the given any object, for the given schema type and schema. Note that for the UserService, GroupService and AnyObjectService subclasses, if the key parameter looks like a UUID then it is interpreted as as key, otherwise as a (user)name.- Specified by:
readin interfaceAnyService<TO extends AnyTO>- Parameters:
key- any object key or nameschemaType- schema typeschema- schema- Returns:
- attribute, owned by the given any object, for the given schema type and schema
-
read
Description copied from interface:AnyServiceReads the any object matching the provided key.- Specified by:
readin interfaceAnyService<TO extends AnyTO>- 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
-
search
Description copied from interface:AnyServiceReturns a paged list of any objects matching the given query.- Specified by:
searchin interfaceAnyService<TO extends AnyTO>- Parameters:
anyQuery- query conditions- Returns:
- paged list of any objects matching the given query
-
findLastChange
-
doUpdate
-
addUpdateOrReplaceAttr
protected void addUpdateOrReplaceAttr(String key, SchemaType schemaType, Attr attrTO, PatchOperation operation) -
update
Description copied from interface:AnyServiceAdds or replaces the attribute, owned by the given any object, for the given schema type and schema.- Specified by:
updatein interfaceAnyService<TO extends AnyTO>- Parameters:
key- any object key or nameschemaType- schema typeattrTO- attribute- Returns:
- Response object featuring the updated any object attribute - as Entity
-
delete
Description copied from interface:AnyServiceDeletes the attribute, owned by the given any object, for the given schema type and schema.- Specified by:
deletein interfaceAnyService<TO extends AnyTO>- Parameters:
key- any object key or nameschemaType- schema typeschema- schema
-
delete
Description copied from interface:AnyServiceDeletes any object matching provided key.- Specified by:
deletein interfaceAnyService<TO extends AnyTO>- Parameters:
key- any object key or name- Returns:
- Response object featuring the deleted any object enriched with propagation status information
-
deassociate
Description copied from interface:AnyServiceExecutes resource-related operations on given entity.- Specified by:
deassociatein interfaceAnyService<TO extends AnyTO>- Parameters:
req- external resources to be used for propagation-related operations- Returns:
- batch results as Response entity
-
associate
Description copied from interface:AnyServiceExecutes resource-related operations on given entity.- Specified by:
associatein interfaceAnyService<TO extends AnyTO>- Parameters:
req- external resources to be used for propagation-related operations- Returns:
- batch results as Response entity
-