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 ReportLogiclogic-
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.Responsecreate(ReportTO reportTO)Creates a new report.voiddelete(String key)Deletes report with matching key.javax.ws.rs.core.ResponseexportExecutionResult(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.ReportTOread(String key)Returns report with matching key.voidupdate(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:
getExecutableLogicin classAbstractExecutableService
-
create
public javax.ws.rs.core.Response create(ReportTO reportTO)
Description copied from interface:ReportServiceCreates a new report.- Specified by:
createin 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:ReportServiceUpdates report with matching key.- Specified by:
updatein interfaceReportService- Parameters:
reportTO- report to be stored
-
list
public List<ReportTO> list()
Description copied from interface:ReportServiceReturns a list of all existing reports.- Specified by:
listin interfaceReportService- Returns:
- paged list of existing reports matching the given query
-
read
public ReportTO read(String key)
Description copied from interface:ReportServiceReturns report with matching key.- Specified by:
readin 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:ReportServiceExports the report execution with matching key in the requested format.- Specified by:
exportExecutionResultin 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:ReportServiceDeletes report with matching key.- Specified by:
deletein interfaceReportService- Parameters:
key- Deletes report with matching key
-
-