Class ClientAppServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.ClientAppServiceImpl
-
- All Implemented Interfaces:
ClientAppService
,JAXRSService
@Service public class ClientAppServiceImpl extends AbstractService implements ClientAppService
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientAppLogic
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 ClientAppServiceImpl(ClientAppLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(ClientAppType type, ClientAppTO clientAppTO)
Create a new client app.void
delete(ClientAppType type, String key)
Delete client app matching the given key.<T extends ClientAppTO>
List<T>list(ClientAppType type)
Returns a list of client apps of the matching type.<T extends ClientAppTO>
Tread(ClientAppType type, String key)
Returns the client app matching the given key.void
update(ClientAppType type, ClientAppTO clientAppTO)
Updates client app matching the given key.-
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 ClientAppLogic logic
-
-
Constructor Detail
-
ClientAppServiceImpl
public ClientAppServiceImpl(ClientAppLogic logic)
-
-
Method Detail
-
create
public javax.ws.rs.core.Response create(ClientAppType type, ClientAppTO clientAppTO)
Description copied from interface:ClientAppService
Create a new client app.- Specified by:
create
in interfaceClientAppService
- Parameters:
type
- client app typeclientAppTO
- ClientApp to be created (needs to match type)- Returns:
- Response object featuring Location header of created client app
-
list
public <T extends ClientAppTO> List<T> list(ClientAppType type)
Description copied from interface:ClientAppService
Returns a list of client apps of the matching type.- Specified by:
list
in interfaceClientAppService
- Type Parameters:
T
- response type (extending ClientAppTO)- Parameters:
type
- Type selector for requested client apps- Returns:
- list of client apps with matching type
-
read
public <T extends ClientAppTO> T read(ClientAppType type, String key)
Description copied from interface:ClientAppService
Returns the client app matching the given key.- Specified by:
read
in interfaceClientAppService
- Type Parameters:
T
- response type (extending ClientAppTO)- Parameters:
type
- client app typekey
- key of requested client app- Returns:
- client app with matching id
-
update
public void update(ClientAppType type, ClientAppTO clientAppTO)
Description copied from interface:ClientAppService
Updates client app matching the given key.- Specified by:
update
in interfaceClientAppService
- Parameters:
type
- client app typeclientAppTO
- ClientApp to replace existing client app
-
delete
public void delete(ClientAppType type, String key)
Description copied from interface:ClientAppService
Delete client app matching the given key.- Specified by:
delete
in interfaceClientAppService
- Parameters:
type
- client app typekey
- key of client app to be deleted
-
-