Package org.apache.syncope.core.logic
Class ReportLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<T>
-
- org.apache.syncope.core.logic.AbstractExecutableLogic<ReportTO>
-
- org.apache.syncope.core.logic.ReportLogic
-
public class ReportLogic extends AbstractExecutableLogic<ReportTO>
-
-
Field Summary
Fields Modifier and Type Field Description protected ReportDataBinder
binder
protected EntityFactory
entityFactory
protected JobManager
jobManager
protected JobStatusDAO
jobStatusDAO
protected ReportDAO
reportDAO
protected ReportExecDAO
reportExecDAO
protected SchedulerFactoryBean
scheduler
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description ReportLogic(JobManager jobManager, SchedulerFactoryBean scheduler, JobStatusDAO jobStatusDAO, ReportDAO reportDAO, ReportExecDAO reportExecDAO, ReportDataBinder binder, EntityFactory entityFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionJob(String key, JobAction action)
ReportTO
create(ReportTO reportTO)
ReportTO
delete(String key)
ExecTO
deleteExecution(String executionKey)
List<BatchResponseItem>
deleteExecutions(String key, OffsetDateTime before, OffsetDateTime after)
protected void
doActionJob(org.quartz.JobKey jobKey, JobAction action)
protected List<JobTO>
doListJobs(boolean includeCustom)
ExecTO
execute(ExecSpecs specs)
void
exportExecutionResult(OutputStream os, String executionKey)
String
getFilename(String executionKey)
JobTO
getJob(String key)
protected JobTO
getJobTO(org.quartz.JobKey jobKey, boolean includeCustom)
protected Triple<JobType,String,String>
getReference(org.quartz.JobKey jobKey)
List<ReportTO>
list()
Pair<Integer,List<ExecTO>>
listExecutions(String key, OffsetDateTime before, OffsetDateTime after, int page, int size, List<OrderByClause> orderByClauses)
List<JobTO>
listJobs()
List<ExecTO>
listRecentExecutions(int max)
ReportTO
read(String key)
protected ReportTO
resolveReference(Method method, Object... args)
ReportTO
update(ReportTO reportTO)
-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
reportDAO
protected final ReportDAO reportDAO
-
reportExecDAO
protected final ReportExecDAO reportExecDAO
-
binder
protected final ReportDataBinder binder
-
entityFactory
protected final EntityFactory entityFactory
-
jobManager
protected final JobManager jobManager
-
scheduler
protected final SchedulerFactoryBean scheduler
-
jobStatusDAO
protected final JobStatusDAO jobStatusDAO
-
-
Constructor Detail
-
ReportLogic
public ReportLogic(JobManager jobManager, SchedulerFactoryBean scheduler, JobStatusDAO jobStatusDAO, ReportDAO reportDAO, ReportExecDAO reportExecDAO, ReportDataBinder binder, EntityFactory entityFactory)
-
-
Method Detail
-
create
@PreAuthorize("hasRole(\'REPORT_CREATE\')") public ReportTO create(ReportTO reportTO)
-
update
@PreAuthorize("hasRole(\'REPORT_UPDATE\')") public ReportTO update(ReportTO reportTO)
-
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
@PreAuthorize("hasRole(\'REPORT_EXECUTE\')") public ExecTO execute(ExecSpecs specs)
- 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
@PreAuthorize("hasRole(\'REPORT_DELETE\')") public ReportTO delete(String key)
-
listExecutions
@PreAuthorize("hasRole(\'REPORT_READ\')") public Pair<Integer,List<ExecTO>> listExecutions(String key, OffsetDateTime before, OffsetDateTime after, int page, int size, List<OrderByClause> orderByClauses)
- Specified by:
listExecutions
in classAbstractExecutableLogic<ReportTO>
-
listRecentExecutions
@PreAuthorize("hasRole(\'REPORT_LIST\')") public List<ExecTO> listRecentExecutions(int max)
- Specified by:
listRecentExecutions
in classAbstractExecutableLogic<ReportTO>
-
deleteExecution
@PreAuthorize("hasRole(\'REPORT_DELETE\')") public ExecTO deleteExecution(String executionKey)
- 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>
-
listJobs
@PreAuthorize("hasRole(\'REPORT_LIST\')") public List<JobTO> listJobs()
- Specified by:
listJobs
in classAbstractExecutableLogic<ReportTO>
-
getJob
@PreAuthorize("hasRole(\'REPORT_READ\')") public JobTO getJob(String key)
- Specified by:
getJob
in classAbstractExecutableLogic<ReportTO>
-
actionJob
@PreAuthorize("hasRole(\'REPORT_EXECUTE\')") public void actionJob(String key, JobAction action)
- 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
protected JobTO getJobTO(org.quartz.JobKey jobKey, boolean includeCustom) throws org.quartz.SchedulerException
- Throws:
org.quartz.SchedulerException
-
doActionJob
protected void doActionJob(org.quartz.JobKey jobKey, JobAction action)
-
-