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 DelegationLogiclogic-
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.Responsecreate(DelegationTO applicationTO)Creates a new delegation.voiddelete(String key)Deletes the delegation matching the provided key.List<DelegationTO>list()Returns a list of all delegations.DelegationTOread(String key)Returns delegation with matching key.voidupdate(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:DelegationServiceReturns a list of all delegations.- Specified by:
listin interfaceDelegationService- Returns:
- list of all delegations.
-
read
public DelegationTO read(String key)
Description copied from interface:DelegationServiceReturns delegation with matching key.- Specified by:
readin 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:DelegationServiceCreates a new delegation.- Specified by:
createin 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:DelegationServiceUpdates the delegation matching the provided key.- Specified by:
updatein interfaceDelegationService- Parameters:
applicationTO- delegation to be stored
-
delete
public void delete(String key)
Description copied from interface:DelegationServiceDeletes the delegation matching the provided key.- Specified by:
deletein interfaceDelegationService- Parameters:
key- delegation key to be deleted
-
-