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