Class AttrRepoServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.AttrRepoServiceImpl
-
- All Implemented Interfaces:
AttrRepoService
,JAXRSService
@Service public class AttrRepoServiceImpl extends AbstractService implements AttrRepoService
-
-
Field Summary
Fields Modifier and Type Field Description protected AttrRepoLogic
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 AttrRepoServiceImpl(AttrRepoLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(AttrRepoTO attrRepoTO)
Create a new attribute repository.void
delete(String key)
Delete attribute repository matching the given key.List<AttrRepoTO>
list()
Returns a list of attribute repositories.AttrRepoTO
read(String key)
Returns the attribute repository matching the given key.void
update(AttrRepoTO attrRepoTO)
Updates attribute repository matching the given 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 AttrRepoLogic logic
-
-
Constructor Detail
-
AttrRepoServiceImpl
public AttrRepoServiceImpl(AttrRepoLogic logic)
-
-
Method Detail
-
create
public javax.ws.rs.core.Response create(AttrRepoTO attrRepoTO)
Description copied from interface:AttrRepoService
Create a new attribute repository.- Specified by:
create
in interfaceAttrRepoService
- Parameters:
attrRepoTO
- AttrRepo to be created.- Returns:
- Response object featuring Location header of created attribute repository
-
delete
public void delete(String key)
Description copied from interface:AttrRepoService
Delete attribute repository matching the given key.- Specified by:
delete
in interfaceAttrRepoService
- Parameters:
key
- key of attribute repository to be deleted
-
list
public List<AttrRepoTO> list()
Description copied from interface:AttrRepoService
Returns a list of attribute repositories.- Specified by:
list
in interfaceAttrRepoService
- Returns:
- list of attribute repositories
-
read
public AttrRepoTO read(String key)
Description copied from interface:AttrRepoService
Returns the attribute repository matching the given key.- Specified by:
read
in interfaceAttrRepoService
- Parameters:
key
- key of requested attribute repository- Returns:
- attribute repository with matching id
-
update
public void update(AttrRepoTO attrRepoTO)
Description copied from interface:AttrRepoService
Updates attribute repository matching the given key.- Specified by:
update
in interfaceAttrRepoService
- Parameters:
attrRepoTO
- AttrRepo to replace existing attribute repository
-
-