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 SRARouteLogic
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 SRARouteServiceImpl(SRARouteLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(SRARouteTO routeTO)
Creates a new route.void
delete(String key)
Deletes route with matching key.List<SRARouteTO>
list()
Returns a list of all existing routes.void
pushToSRA()
Push all routes to SRA.SRARouteTO
read(String key)
Returns route with matching key.void
update(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:SRARouteService
Returns a list of all existing routes.- Specified by:
list
in 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:SRARouteService
Creates a new route.- Specified by:
create
in 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:SRARouteService
Returns route with matching key.- Specified by:
read
in interfaceSRARouteService
- Parameters:
key
- key of route to be read- Returns:
- route with matching key
-
update
public void update(SRARouteTO routeTO)
Description copied from interface:SRARouteService
Updates route with matching key.- Specified by:
update
in interfaceSRARouteService
- Parameters:
routeTO
- route to be stored
-
delete
public void delete(String key)
Description copied from interface:SRARouteService
Deletes route with matching key.- Specified by:
delete
in interfaceSRARouteService
- Parameters:
key
- route key
-
pushToSRA
public void pushToSRA()
Description copied from interface:SRARouteService
Push all routes to SRA.- Specified by:
pushToSRA
in interfaceSRARouteService
-
-