Class RemediationServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.RemediationServiceImpl
-
- All Implemented Interfaces:
JAXRSService
,RemediationService
@Service public class RemediationServiceImpl extends AbstractService implements RemediationService
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyObjectDAO
anyObjectDAO
protected GroupDAO
groupDAO
protected RemediationLogic
logic
protected UserDAO
userDAO
-
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 RemediationServiceImpl(RemediationLogic logic, UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
delete(String key)
Deletes the remediation matching the given key.PagedResult<RemediationTO>
list(RemediationQuery query)
Returns a list of all remediations.RemediationTO
read(String key)
Returns remediation with matching key.javax.ws.rs.core.Response
remedy(String remediationKey, String anyKey)
Perform remediation by deleting the provided user, group or any object.javax.ws.rs.core.Response
remedy(String remediationKey, AnyCR anyCR)
Perform remediation by creating the provided user, group or any object.javax.ws.rs.core.Response
remedy(String remediationKey, AnyUR anyUR)
Perform remediation by updating the provided user, group or any object.-
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 RemediationLogic logic
-
userDAO
protected final UserDAO userDAO
-
groupDAO
protected final GroupDAO groupDAO
-
anyObjectDAO
protected final AnyObjectDAO anyObjectDAO
-
-
Constructor Detail
-
RemediationServiceImpl
public RemediationServiceImpl(RemediationLogic logic, UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO)
-
-
Method Detail
-
list
public PagedResult<RemediationTO> list(RemediationQuery query)
Description copied from interface:RemediationService
Returns a list of all remediations.- Specified by:
list
in interfaceRemediationService
- Parameters:
query
- query conditions- Returns:
- list of all remediations.
-
read
public RemediationTO read(String key)
Description copied from interface:RemediationService
Returns remediation with matching key.- Specified by:
read
in interfaceRemediationService
- Parameters:
key
- key of remediation to be read- Returns:
- remediation with matching key
-
delete
public javax.ws.rs.core.Response delete(String key)
Description copied from interface:RemediationService
Deletes the remediation matching the given key.- Specified by:
delete
in interfaceRemediationService
- Parameters:
key
- key for remediation to be deleted- Returns:
- an empty response if operation was successful
-
remedy
public javax.ws.rs.core.Response remedy(String remediationKey, AnyCR anyCR)
Description copied from interface:RemediationService
Perform remediation by creating the provided user, group or any object.- Specified by:
remedy
in interfaceRemediationService
- Parameters:
remediationKey
- key for remediation to act onanyCR
- user, group or any object to create- Returns:
- Response object featuring Location header of created object as well as the object itself enriched with propagation status information
-
remedy
public javax.ws.rs.core.Response remedy(String remediationKey, AnyUR anyUR)
Description copied from interface:RemediationService
Perform remediation by updating the provided user, group or any object.- Specified by:
remedy
in interfaceRemediationService
- Parameters:
remediationKey
- key for remediation to act onanyUR
- user, group or any object to update- Returns:
- Response object featuring the updated object enriched with propagation status information
-
remedy
public javax.ws.rs.core.Response remedy(String remediationKey, String anyKey)
Description copied from interface:RemediationService
Perform remediation by deleting the provided user, group or any object.- Specified by:
remedy
in interfaceRemediationService
- Parameters:
remediationKey
- key for remediation to act onanyKey
- user's, group's or any object's key to delete- Returns:
- Response object featuring the deleted object enriched with propagation status information
-
-