Class ReportServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.AbstractExecutableService
-
- org.apache.syncope.core.rest.cxf.service.ReportServiceImpl
-
- All Implemented Interfaces:
ExecutableService
,JAXRSService
,ReportService
@Service public class ReportServiceImpl extends AbstractExecutableService implements ReportService
-
-
Field Summary
Fields Modifier and Type Field Description protected ReportLogic
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 ReportServiceImpl(ReportLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(ReportTO reportTO)
Creates a new report.void
delete(String key)
Deletes report with matching key.javax.ws.rs.core.Response
exportExecutionResult(String executionKey)
Exports the report execution with matching key in the requested format.protected AbstractExecutableLogic<?>
getExecutableLogic()
List<ReportTO>
list()
Returns a list of all existing reports.ReportTO
read(String key)
Returns report with matching key.void
update(ReportTO reportTO)
Updates report with matching key.-
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractExecutableService
actionJob, deleteExecution, deleteExecutions, execute, getJob, listExecutions, listJobs, listRecentExecutions
-
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.syncope.common.rest.api.service.ExecutableService
actionJob, deleteExecution, deleteExecutions, execute, getJob, listExecutions, listJobs, listRecentExecutions
-
-
-
-
Field Detail
-
logic
protected final ReportLogic logic
-
-
Constructor Detail
-
ReportServiceImpl
public ReportServiceImpl(ReportLogic logic)
-
-
Method Detail
-
getExecutableLogic
protected AbstractExecutableLogic<?> getExecutableLogic()
- Specified by:
getExecutableLogic
in classAbstractExecutableService
-
create
public javax.ws.rs.core.Response create(ReportTO reportTO)
Description copied from interface:ReportService
Creates a new report.- Specified by:
create
in interfaceReportService
- Parameters:
reportTO
- report to be created- Returns:
- Response object featuring Location header of created report
-
update
public void update(ReportTO reportTO)
Description copied from interface:ReportService
Updates report with matching key.- Specified by:
update
in interfaceReportService
- Parameters:
reportTO
- report to be stored
-
list
public List<ReportTO> list()
Description copied from interface:ReportService
Returns a list of all existing reports.- Specified by:
list
in interfaceReportService
- Returns:
- paged list of existing reports matching the given query
-
read
public ReportTO read(String key)
Description copied from interface:ReportService
Returns report with matching key.- Specified by:
read
in interfaceReportService
- Parameters:
key
- key of report to be read- Returns:
- report with matching key
-
exportExecutionResult
public javax.ws.rs.core.Response exportExecutionResult(String executionKey)
Description copied from interface:ReportService
Exports the report execution with matching key in the requested format.- Specified by:
exportExecutionResult
in interfaceReportService
- Parameters:
executionKey
- key of execution report to be selected- Returns:
- a stream for content download
-
delete
public void delete(String key)
Description copied from interface:ReportService
Deletes report with matching key.- Specified by:
delete
in interfaceReportService
- Parameters:
key
- Deletes report with matching key
-
-