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