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 AttrRepoLogiclogic-
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.Responsecreate(AttrRepoTO attrRepoTO)Create a new attribute repository.voiddelete(String key)Delete attribute repository matching the given key.List<AttrRepoTO>list()Returns a list of attribute repositories.AttrRepoTOread(String key)Returns the attribute repository matching the given key.voidupdate(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:AttrRepoServiceCreate a new attribute repository.- Specified by:
createin 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:AttrRepoServiceDelete attribute repository matching the given key.- Specified by:
deletein interfaceAttrRepoService- Parameters:
key- key of attribute repository to be deleted
-
list
public List<AttrRepoTO> list()
Description copied from interface:AttrRepoServiceReturns a list of attribute repositories.- Specified by:
listin interfaceAttrRepoService- Returns:
- list of attribute repositories
-
read
public AttrRepoTO read(String key)
Description copied from interface:AttrRepoServiceReturns the attribute repository matching the given key.- Specified by:
readin interfaceAttrRepoService- Parameters:
key- key of requested attribute repository- Returns:
- attribute repository with matching id
-
update
public void update(AttrRepoTO attrRepoTO)
Description copied from interface:AttrRepoServiceUpdates attribute repository matching the given key.- Specified by:
updatein interfaceAttrRepoService- Parameters:
attrRepoTO- AttrRepo to replace existing attribute repository
-
-