Class SRARouteServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.SRARouteServiceImpl
-
- All Implemented Interfaces:
JAXRSService,SRARouteService
@Service public class SRARouteServiceImpl extends AbstractService implements SRARouteService
-
-
Field Summary
Fields Modifier and Type Field Description protected SRARouteLogiclogic-
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 SRARouteServiceImpl(SRARouteLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsecreate(SRARouteTO routeTO)Creates a new route.voiddelete(String key)Deletes route with matching key.List<SRARouteTO>list()Returns a list of all existing routes.voidpushToSRA()Push all routes to SRA.SRARouteTOread(String key)Returns route with matching key.voidupdate(SRARouteTO routeTO)Updates route with matching 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 SRARouteLogic logic
-
-
Constructor Detail
-
SRARouteServiceImpl
public SRARouteServiceImpl(SRARouteLogic logic)
-
-
Method Detail
-
list
public List<SRARouteTO> list()
Description copied from interface:SRARouteServiceReturns a list of all existing routes.- Specified by:
listin interfaceSRARouteService- Returns:
- paged list of existing routes matching the given query
-
create
public javax.ws.rs.core.Response create(SRARouteTO routeTO)
Description copied from interface:SRARouteServiceCreates a new route.- Specified by:
createin interfaceSRARouteService- Parameters:
routeTO- route to be created- Returns:
- Response object featuring Location header of created route
-
read
public SRARouteTO read(String key)
Description copied from interface:SRARouteServiceReturns route with matching key.- Specified by:
readin interfaceSRARouteService- Parameters:
key- key of route to be read- Returns:
- route with matching key
-
update
public void update(SRARouteTO routeTO)
Description copied from interface:SRARouteServiceUpdates route with matching key.- Specified by:
updatein interfaceSRARouteService- Parameters:
routeTO- route to be stored
-
delete
public void delete(String key)
Description copied from interface:SRARouteServiceDeletes route with matching key.- Specified by:
deletein interfaceSRARouteService- Parameters:
key- route key
-
pushToSRA
public void pushToSRA()
Description copied from interface:SRARouteServicePush all routes to SRA.- Specified by:
pushToSRAin interfaceSRARouteService
-
-