Class DelegationServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.DelegationServiceImpl
-
- All Implemented Interfaces:
DelegationService
,JAXRSService
@Service public class DelegationServiceImpl extends AbstractService implements DelegationService
-
-
Field Summary
Fields Modifier and Type Field Description protected DelegationLogic
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 DelegationServiceImpl(DelegationLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(DelegationTO applicationTO)
Creates a new delegation.void
delete(String key)
Deletes the delegation matching the provided key.List<DelegationTO>
list()
Returns a list of all delegations.DelegationTO
read(String key)
Returns delegation with matching key.void
update(DelegationTO applicationTO)
Updates the delegation matching the provided 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 DelegationLogic logic
-
-
Constructor Detail
-
DelegationServiceImpl
public DelegationServiceImpl(DelegationLogic logic)
-
-
Method Detail
-
list
public List<DelegationTO> list()
Description copied from interface:DelegationService
Returns a list of all delegations.- Specified by:
list
in interfaceDelegationService
- Returns:
- list of all delegations.
-
read
public DelegationTO read(String key)
Description copied from interface:DelegationService
Returns delegation with matching key.- Specified by:
read
in interfaceDelegationService
- Parameters:
key
- delegation key to be read- Returns:
- delegation with matching key
-
create
public javax.ws.rs.core.Response create(DelegationTO applicationTO)
Description copied from interface:DelegationService
Creates a new delegation.- Specified by:
create
in interfaceDelegationService
- Parameters:
applicationTO
- delegation to be created- Returns:
- Response object featuring Location header of created delegation
-
update
public void update(DelegationTO applicationTO)
Description copied from interface:DelegationService
Updates the delegation matching the provided key.- Specified by:
update
in interfaceDelegationService
- Parameters:
applicationTO
- delegation to be stored
-
delete
public void delete(String key)
Description copied from interface:DelegationService
Deletes the delegation matching the provided key.- Specified by:
delete
in interfaceDelegationService
- Parameters:
key
- delegation key to be deleted
-
-