Package org.apache.syncope.core.logic
Class ReportLogic
java.lang.Object
org.apache.syncope.core.logic.AbstractLogic<ReportTO>
org.apache.syncope.core.logic.AbstractTransactionalLogic<ReportTO>
org.apache.syncope.core.logic.AbstractExecutableLogic<ReportTO>
org.apache.syncope.core.logic.ReportLogic
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ReportDataBinder
protected final EntityFactory
protected final JobManager
protected final JobStatusDAO
protected final ReportDAO
protected final ReportExecDAO
protected final SyncopeTaskScheduler
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
Constructor Summary
ConstructorDescriptionReportLogic
(JobManager jobManager, SyncopeTaskScheduler scheduler, JobStatusDAO jobStatusDAO, ReportDAO reportDAO, ReportExecDAO reportExecDAO, ReportDataBinder binder, EntityFactory entityFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteExecution
(String executionKey) deleteExecutions
(String key, OffsetDateTime before, OffsetDateTime after) protected void
doActionJob
(String jobName, JobAction action) doListJobs
(boolean includeCustom) void
exportExecutionResult
(OutputStream os, String executionKey) getFilename
(String executionKey) getReference
(String jobName) list()
org.springframework.data.domain.Page
<ExecTO> listExecutions
(String key, OffsetDateTime before, OffsetDateTime after, org.springframework.data.domain.Pageable pageable) listJobs()
listRecentExecutions
(int max) protected ReportTO
resolveReference
(Method method, Object... args) Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
Field Details
-
reportDAO
-
reportExecDAO
-
binder
-
entityFactory
-
jobManager
-
scheduler
-
jobStatusDAO
-
-
Constructor Details
-
ReportLogic
public ReportLogic(JobManager jobManager, SyncopeTaskScheduler scheduler, JobStatusDAO jobStatusDAO, ReportDAO reportDAO, ReportExecDAO reportExecDAO, ReportDataBinder binder, EntityFactory entityFactory)
-
-
Method Details
-
create
-
update
-
list
@PreAuthorize("hasRole(\'REPORT_LIST\')") @Transactional(readOnly=true) public List<ReportTO> list() -
read
@PreAuthorize("hasRole(\'REPORT_READ\')") @Transactional(readOnly=true) public ReportTO read(String key) -
execute
- Specified by:
execute
in classAbstractExecutableLogic<ReportTO>
-
getFilename
@PreAuthorize("hasRole(\'REPORT_READ\')") @Transactional(readOnly=true) public String getFilename(String executionKey) -
exportExecutionResult
@PreAuthorize("hasRole(\'REPORT_READ\')") @Transactional(readOnly=true) public void exportExecutionResult(OutputStream os, String executionKey) -
delete
-
listExecutions
@PreAuthorize("hasRole(\'REPORT_READ\')") public org.springframework.data.domain.Page<ExecTO> listExecutions(String key, OffsetDateTime before, OffsetDateTime after, org.springframework.data.domain.Pageable pageable) - Specified by:
listExecutions
in classAbstractExecutableLogic<ReportTO>
-
listRecentExecutions
- Specified by:
listRecentExecutions
in classAbstractExecutableLogic<ReportTO>
-
deleteExecution
- Specified by:
deleteExecution
in classAbstractExecutableLogic<ReportTO>
-
deleteExecutions
@PreAuthorize("hasRole(\'REPORT_DELETE\')") public List<BatchResponseItem> deleteExecutions(String key, OffsetDateTime before, OffsetDateTime after) - Specified by:
deleteExecutions
in classAbstractExecutableLogic<ReportTO>
-
getReference
-
listJobs
- Specified by:
listJobs
in classAbstractExecutableLogic<ReportTO>
-
getJob
- Specified by:
getJob
in classAbstractExecutableLogic<ReportTO>
-
actionJob
- Specified by:
actionJob
in classAbstractExecutableLogic<ReportTO>
-
resolveReference
protected ReportTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReference
in classAbstractLogic<ReportTO>
- Throws:
UnresolvedReferenceException
-
getJobTO
-
doListJobs
-
doActionJob
-