@Component public class ReportLogic extends AbstractExecutableLogic<ReportTO>
Modifier and Type | Field and Description |
---|---|
protected JobManager |
jobManager |
protected JobStatusDAO |
jobStatusDAO |
protected static org.slf4j.Logger |
LOG |
protected SchedulerFactoryBean |
scheduler |
Constructor and Description |
---|
ReportLogic() |
Modifier and Type | Method and Description |
---|---|
void |
actionJob(String key,
JobAction action) |
ReportTO |
create(ReportTO reportTO) |
ReportTO |
delete(String key) |
ExecTO |
deleteExecution(String executionKey) |
List<BatchResponseItem> |
deleteExecutions(String key,
Date before,
Date after) |
protected void |
doActionJob(org.quartz.JobKey jobKey,
JobAction action) |
protected List<JobTO> |
doListJobs(boolean includeCustom) |
ExecTO |
execute(String key,
Date startAt,
boolean dryRun) |
void |
exportExecutionResult(OutputStream os,
ReportExec reportExec,
ReportExecExportFormat format) |
JobTO |
getJob(String key) |
protected JobTO |
getJobTO(org.quartz.JobKey jobKey,
boolean includeCustom) |
protected Triple<JobType,String,String> |
getReference(org.quartz.JobKey jobKey) |
ReportExec |
getReportExec(String executionKey) |
List<ReportTO> |
list() |
Pair<Integer,List<ExecTO>> |
listExecutions(String key,
Date before,
Date after,
int page,
int size,
List<OrderByClause> orderByClauses) |
List<JobTO> |
listJobs() |
List<ExecTO> |
listRecentExecutions(int max) |
ReportTO |
read(String key) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected ReportTO |
resolveReference(Method method,
Object... args) |
ReportTO |
update(ReportTO reportTO) |
@Autowired protected JobManager jobManager
@Autowired protected SchedulerFactoryBean scheduler
@Autowired protected JobStatusDAO jobStatusDAO
protected static final org.slf4j.Logger LOG
@PreAuthorize(value="hasRole(\'REPORT_CREATE\')") public ReportTO create(ReportTO reportTO)
@PreAuthorize(value="hasRole(\'REPORT_UPDATE\')") public ReportTO update(ReportTO reportTO)
@PreAuthorize(value="hasRole(\'REPORT_LIST\')") @Transactional(readOnly=true) public List<ReportTO> list()
@PreAuthorize(value="hasRole(\'REPORT_READ\')") @Transactional(readOnly=true) public ReportTO read(String key)
@PreAuthorize(value="hasRole(\'REPORT_EXECUTE\')") public ExecTO execute(String key, Date startAt, boolean dryRun)
execute
in class AbstractExecutableLogic<ReportTO>
@PreAuthorize(value="hasRole(\'REPORT_READ\')") public ReportExec getReportExec(String executionKey)
@PreAuthorize(value="hasRole(\'REPORT_READ\')") public void exportExecutionResult(OutputStream os, ReportExec reportExec, ReportExecExportFormat format)
@PreAuthorize(value="hasRole(\'REPORT_DELETE\')") public ReportTO delete(String key)
@PreAuthorize(value="hasRole(\'REPORT_READ\')") public Pair<Integer,List<ExecTO>> listExecutions(String key, Date before, Date after, int page, int size, List<OrderByClause> orderByClauses)
listExecutions
in class AbstractExecutableLogic<ReportTO>
@PreAuthorize(value="hasRole(\'REPORT_LIST\')") public List<ExecTO> listRecentExecutions(int max)
listRecentExecutions
in class AbstractExecutableLogic<ReportTO>
@PreAuthorize(value="hasRole(\'REPORT_DELETE\')") public ExecTO deleteExecution(String executionKey)
deleteExecution
in class AbstractExecutableLogic<ReportTO>
@PreAuthorize(value="hasRole(\'REPORT_DELETE\')") public List<BatchResponseItem> deleteExecutions(String key, Date before, Date after)
deleteExecutions
in class AbstractExecutableLogic<ReportTO>
@PreAuthorize(value="hasRole(\'REPORT_LIST\')") public List<JobTO> listJobs()
listJobs
in class AbstractExecutableLogic<ReportTO>
@PreAuthorize(value="hasRole(\'REPORT_READ\')") public JobTO getJob(String key)
getJob
in class AbstractExecutableLogic<ReportTO>
@PreAuthorize(value="hasRole(\'REPORT_EXECUTE\')") public void actionJob(String key, JobAction action)
actionJob
in class AbstractExecutableLogic<ReportTO>
protected ReportTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
UnresolvedReferenceException
protected JobTO getJobTO(org.quartz.JobKey jobKey, boolean includeCustom) throws org.quartz.SchedulerException
org.quartz.SchedulerException
protected void doActionJob(org.quartz.JobKey jobKey, JobAction action)
public T resolveBeanReference(Method method, Object... args) throws UnresolvedReferenceException
method
- method.args
- method arguments.UnresolvedReferenceException
- in case of failures, read-only methods and unresolved bean.Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.