mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Make the cache objects used by the Action Tracking Service immutable
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22382 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -38,12 +38,18 @@ public class ExecutionDetails implements Serializable {
|
||||
* we don't need to also hold a 2nd copy of it
|
||||
*/
|
||||
private transient ExecutionSummary executionSummary;
|
||||
private NodeRef persistedActionRef;
|
||||
private String runningOn;
|
||||
private Date startedAt;
|
||||
private boolean cancelRequested;
|
||||
|
||||
public ExecutionDetails() {}
|
||||
private final NodeRef persistedActionRef;
|
||||
private final String runningOn;
|
||||
private final Date startedAt;
|
||||
private final boolean cancelRequested;
|
||||
|
||||
public ExecutionDetails() {
|
||||
persistedActionRef = null;
|
||||
runningOn = null;
|
||||
startedAt = null;
|
||||
cancelRequested = false;
|
||||
}
|
||||
|
||||
public ExecutionDetails(ExecutionSummary executionSummary,
|
||||
NodeRef persistedActionRef, String runningOn, Date startedAt,
|
||||
@@ -109,7 +115,4 @@ public class ExecutionDetails implements Serializable {
|
||||
public boolean isCancelRequested() {
|
||||
return cancelRequested;
|
||||
}
|
||||
public void requestCancel() {
|
||||
cancelRequested = true;
|
||||
}
|
||||
}
|
@@ -28,12 +28,12 @@ package org.alfresco.service.cmr.action;
|
||||
* @author Nick Burch
|
||||
*/
|
||||
public class ExecutionSummary {
|
||||
private String actionType;
|
||||
private String actionId;
|
||||
private int executionInstance;
|
||||
private final String actionType;
|
||||
private final String actionId;
|
||||
private final int executionInstance;
|
||||
|
||||
public ExecutionSummary(String actionType, String actionId,
|
||||
int executionInstance) {
|
||||
public ExecutionSummary(final String actionType, final String actionId,
|
||||
final int executionInstance) {
|
||||
this.actionType = actionType;
|
||||
this.actionId = actionId;
|
||||
this.executionInstance = executionInstance;
|
||||
|
Reference in New Issue
Block a user