move api versions to develop versions for next release. suppress unused warnings.
This commit is contained in:
@@ -90,7 +90,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="page-wrapper">
|
<div id="page-wrapper">
|
||||||
<div id="flybar">
|
<div id="flybar">
|
||||||
<div id="nav-logo">1.5.0.RELEASE API</div>
|
<div id="nav-logo">1.6.0.DEVELOP API</div>
|
||||||
<div class="flybar-nav">
|
<div class="flybar-nav">
|
||||||
<h2 class="flybar-button">Overview</h2>
|
<h2 class="flybar-button">Overview</h2>
|
||||||
<div class="flybar-menu-overview">
|
<div class="flybar-menu-overview">
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
releaseVersion=1.5.0.RELEASE
|
releaseVersion=1.6.0.DEVELOP
|
||||||
|
|||||||
+11
-6
@@ -17,12 +17,14 @@ public class ScheduledJobDetail extends AbstractPersistable<Long> {
|
|||||||
@Column(name = "name")
|
@Column(name = "name")
|
||||||
private String jobName;
|
private String jobName;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
@Column(name = "display_name")
|
@Column(name = "display_name")
|
||||||
private String jobDisplayName;
|
private String jobDisplayName;
|
||||||
|
|
||||||
@Column(name = "cron_expression")
|
@Column(name = "cron_expression")
|
||||||
private String croneExpression;
|
private String croneExpression;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
@Column(name = "create_time")
|
@Column(name = "create_time")
|
||||||
@Temporal(TemporalType.TIMESTAMP)
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
@@ -33,10 +35,12 @@ public class ScheduledJobDetail extends AbstractPersistable<Long> {
|
|||||||
@Column(name = "group_name")
|
@Column(name = "group_name")
|
||||||
private String groupName;
|
private String groupName;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
@Column(name = "previous_run_start_time")
|
@Column(name = "previous_run_start_time")
|
||||||
@Temporal(TemporalType.TIMESTAMP)
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
private Date previousRunStartTime;
|
private Date previousRunStartTime;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
@Column(name = "next_run_time")
|
@Column(name = "next_run_time")
|
||||||
@Temporal(TemporalType.TIMESTAMP)
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
private Date nextRunTime;
|
private Date nextRunTime;
|
||||||
@@ -44,6 +48,7 @@ public class ScheduledJobDetail extends AbstractPersistable<Long> {
|
|||||||
@Column(name = "trigger_key")
|
@Column(name = "trigger_key")
|
||||||
private String triggerKey;
|
private String triggerKey;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
@Column(name = "initializing_errorlog")
|
@Column(name = "initializing_errorlog")
|
||||||
private String errorLog;
|
private String errorLog;
|
||||||
|
|
||||||
@@ -54,7 +59,7 @@ public class ScheduledJobDetail extends AbstractPersistable<Long> {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ScheduledJobDetail(final String jobName, final String jobDisplayName, final String croneExpression, Date createTime,
|
public ScheduledJobDetail(final String jobName, final String jobDisplayName, final String croneExpression, final Date createTime,
|
||||||
final Short taskPriority, final String groupName, final Date previousRunStartTime, final Date nextRunTime,
|
final Short taskPriority, final String groupName, final Date previousRunStartTime, final Date nextRunTime,
|
||||||
final String triggKey, final String errorLog, final boolean activeSchedular) {
|
final String triggKey, final String errorLog, final boolean activeSchedular) {
|
||||||
this.jobName = jobName;
|
this.jobName = jobName;
|
||||||
@@ -94,23 +99,23 @@ public class ScheduledJobDetail extends AbstractPersistable<Long> {
|
|||||||
return this.activeSchedular;
|
return this.activeSchedular;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateCroneExpression(String croneExpression) {
|
public void updateCroneExpression(final String croneExpression) {
|
||||||
this.croneExpression = croneExpression;
|
this.croneExpression = croneExpression;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updatePreviousRunStartTime(Date previousRunStartTime) {
|
public void updatePreviousRunStartTime(final Date previousRunStartTime) {
|
||||||
this.previousRunStartTime = previousRunStartTime;
|
this.previousRunStartTime = previousRunStartTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateNextRunTime(Date nextRunTime) {
|
public void updateNextRunTime(final Date nextRunTime) {
|
||||||
this.nextRunTime = nextRunTime;
|
this.nextRunTime = nextRunTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateTriggerKey(String triggerKey) {
|
public void updateTriggerKey(final String triggerKey) {
|
||||||
this.triggerKey = triggerKey;
|
this.triggerKey = triggerKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateErrorLog(String errorLog) {
|
public void updateErrorLog(final String errorLog) {
|
||||||
this.errorLog = errorLog;
|
this.errorLog = errorLog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+8
@@ -16,30 +16,38 @@ import org.springframework.data.jpa.domain.AbstractPersistable;
|
|||||||
@Table(name = "job_run_history")
|
@Table(name = "job_run_history")
|
||||||
public class ScheduledJobRunHistory extends AbstractPersistable<Long> {
|
public class ScheduledJobRunHistory extends AbstractPersistable<Long> {
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name = "job_id")
|
@JoinColumn(name = "job_id")
|
||||||
private ScheduledJobDetail scheduledJobDetail;
|
private ScheduledJobDetail scheduledJobDetail;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
@Column(name = "version")
|
@Column(name = "version")
|
||||||
private Long version;
|
private Long version;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
@Column(name = "start_time")
|
@Column(name = "start_time")
|
||||||
@Temporal(TemporalType.TIMESTAMP)
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
private Date startTime;
|
private Date startTime;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
@Column(name = "end_time")
|
@Column(name = "end_time")
|
||||||
@Temporal(TemporalType.TIMESTAMP)
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
private Date endTime;
|
private Date endTime;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
@Column(name = "status")
|
@Column(name = "status")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
@Column(name = "error_message")
|
@Column(name = "error_message")
|
||||||
private String errorMessage;
|
private String errorMessage;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
@Column(name = "trigger_type")
|
@Column(name = "trigger_type")
|
||||||
private String triggerType;
|
private String triggerType;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
@Column(name = "error_log")
|
@Column(name = "error_log")
|
||||||
private String errorLog;
|
private String errorLog;
|
||||||
|
|
||||||
|
|||||||
+7
-7
@@ -26,14 +26,14 @@ public class SchedulerJobListener implements JobListener {
|
|||||||
|
|
||||||
private int stackTraceLevel = 0;
|
private int stackTraceLevel = 0;
|
||||||
|
|
||||||
private String name = SchedularServiceConstants.DEFAULT_LISTENER_NAME;
|
private final String name = SchedularServiceConstants.DEFAULT_LISTENER_NAME;
|
||||||
|
|
||||||
private final SchedularService schedularService;
|
private final SchedularService schedularService;
|
||||||
|
|
||||||
private final TenantDetailsService tenantDetailsService;
|
private final TenantDetailsService tenantDetailsService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public SchedulerJobListener(SchedularService schedularService, TenantDetailsService tenantDetailsService) {
|
public SchedulerJobListener(final SchedularService schedularService, final TenantDetailsService tenantDetailsService) {
|
||||||
this.schedularService = schedularService;
|
this.schedularService = schedularService;
|
||||||
this.tenantDetailsService = tenantDetailsService;
|
this.tenantDetailsService = tenantDetailsService;
|
||||||
}
|
}
|
||||||
@@ -44,19 +44,19 @@ public class SchedulerJobListener implements JobListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void jobToBeExecuted(JobExecutionContext context) {
|
public void jobToBeExecuted(final JobExecutionContext context) {
|
||||||
String tenantIdentifier = context.getTrigger().getJobDataMap().getString(SchedularServiceConstants.TENANT_IDENTIFIER);
|
String tenantIdentifier = context.getTrigger().getJobDataMap().getString(SchedularServiceConstants.TENANT_IDENTIFIER);
|
||||||
MifosPlatformTenant tenant = this.tenantDetailsService.loadTenantById(tenantIdentifier);
|
MifosPlatformTenant tenant = this.tenantDetailsService.loadTenantById(tenantIdentifier);
|
||||||
ThreadLocalContextUtil.setTenant(tenant);
|
ThreadLocalContextUtil.setTenant(tenant);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void jobExecutionVetoed(JobExecutionContext context) {
|
public void jobExecutionVetoed(@SuppressWarnings("unused") final JobExecutionContext context) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException) {
|
public void jobWasExecuted(final JobExecutionContext context, final JobExecutionException jobException) {
|
||||||
Trigger trigger = context.getTrigger();
|
Trigger trigger = context.getTrigger();
|
||||||
TriggerKey key = trigger.getKey();
|
TriggerKey key = trigger.getKey();
|
||||||
String triggerKey = key.getName() + SchedularServiceConstants.TRIGGER_KEY_SEPERATOR + key.getGroup();
|
String triggerKey = key.getName() + SchedularServiceConstants.TRIGGER_KEY_SEPERATOR + key.getGroup();
|
||||||
@@ -98,7 +98,7 @@ public class SchedulerJobListener implements JobListener {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private Throwable getCauseFromException(Throwable exception) {
|
private Throwable getCauseFromException(final Throwable exception) {
|
||||||
if (stackTraceLevel <= SchedularServiceConstants.STACK_TRACE_LEVEL
|
if (stackTraceLevel <= SchedularServiceConstants.STACK_TRACE_LEVEL
|
||||||
&& exception.getCause() != null
|
&& exception.getCause() != null
|
||||||
&& (exception.getCause().toString().contains(SchedularServiceConstants.SCHEDULAR_EXCEPTION)
|
&& (exception.getCause().toString().contains(SchedularServiceConstants.SCHEDULAR_EXCEPTION)
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ final public class ClientData implements Comparable<ClientData> {
|
|||||||
// template
|
// template
|
||||||
private final Collection<OfficeData> officeOptions;
|
private final Collection<OfficeData> officeOptions;
|
||||||
private final Collection<StaffData> staffOptions;
|
private final Collection<StaffData> staffOptions;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private final Collection<CodeValueData> closureReasons;
|
private final Collection<CodeValueData> closureReasons;
|
||||||
|
|
||||||
public static ClientData template(final Long officeId, final LocalDate joinedDate, final Collection<OfficeData> officeOptions,
|
public static ClientData template(final Long officeId, final LocalDate joinedDate, final Collection<OfficeData> officeOptions,
|
||||||
|
|||||||
Reference in New Issue
Block a user