Class ImplementationServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.ImplementationServiceImpl
-
- All Implemented Interfaces:
ImplementationService
,JAXRSService
@Service public class ImplementationServiceImpl extends AbstractService implements ImplementationService
-
-
Field Summary
Fields Modifier and Type Field Description protected ImplementationLogic
logic
-
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 ImplementationServiceImpl(ImplementationLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(ImplementationTO implementationTO)
Creates a new implementation.javax.ws.rs.core.Response
delete(String type, String key)
Deletes the implementation matching the given key and type.List<ImplementationTO>
list(String type)
Returns a list of all implementations of the given type.ImplementationTO
read(String type, String key)
Returns implementation with matching type and key.javax.ws.rs.core.Response
update(ImplementationTO implementationTO)
Updates an existing implementation.-
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
-
-
-
-
Field Detail
-
logic
protected final ImplementationLogic logic
-
-
Constructor Detail
-
ImplementationServiceImpl
public ImplementationServiceImpl(ImplementationLogic logic)
-
-
Method Detail
-
list
public List<ImplementationTO> list(String type)
Description copied from interface:ImplementationService
Returns a list of all implementations of the given type.- Specified by:
list
in interfaceImplementationService
- Parameters:
type
- implementation type- Returns:
- list of all implementations.
-
read
public ImplementationTO read(String type, String key)
Description copied from interface:ImplementationService
Returns implementation with matching type and key.- Specified by:
read
in interfaceImplementationService
- Parameters:
type
- implementation typekey
- key of implementation to be read- Returns:
- implementation with matching key
-
create
public javax.ws.rs.core.Response create(ImplementationTO implementationTO)
Description copied from interface:ImplementationService
Creates a new implementation.- Specified by:
create
in interfaceImplementationService
- Parameters:
implementationTO
- implementation.- Returns:
- Response object featuring Location header of created implementation
-
update
public javax.ws.rs.core.Response update(ImplementationTO implementationTO)
Description copied from interface:ImplementationService
Updates an existing implementation.- Specified by:
update
in interfaceImplementationService
- Parameters:
implementationTO
- implementation.- Returns:
- an empty response if operation was successful
-
delete
public javax.ws.rs.core.Response delete(String type, String key)
Description copied from interface:ImplementationService
Deletes the implementation matching the given key and type.- Specified by:
delete
in interfaceImplementationService
- Parameters:
type
- implementation typekey
- key for implementation to be deleted- Returns:
- an empty response if operation was successful
-
-