WIP edit disposition capability

This commit is contained in:
Ross Gale
2018-04-30 11:52:47 +01:00
parent 7420c2d728
commit cd43975345
6 changed files with 23 additions and 3 deletions

View File

@@ -70,7 +70,12 @@
"eventType" : "rmEventType.simple",
"eventName" : "case_complete",
"eventDisplayLabel" : "rmevent.case_complete"
}
},
{
"eventType": "rmEventType.simple",
"eventName": "declassification_review",
"eventDisplayLabel": "rmevent.declassification_review"
}
]
}

View File

@@ -19,4 +19,5 @@ rmevent.obsolete=Obsolete
rmevent.all_allowances_granted_are_terminated=All Allowances Granted are Terminated
rmevent.WGI_action_complete=WGI Action Complete
rmevent.separation=Separation
rmevent.case_complete=Case Complete
rmevent.case_complete=Case Complete
rmevent.declassification_review=Declassification Review

View File

@@ -455,7 +455,7 @@ public class JSONConversionComponent extends org.alfresco.repo.jscript.app.JS
// Set the actions array
setActions(rmNodeValues, nodeRef);
//((HashMap)rmNodeValues.get("properties")).put("declassificationEvent",nodeService.getProperties(nodeRef))
return rmNodeValues;
}

View File

@@ -99,6 +99,7 @@ public interface RecordsManagementModel extends RecordsManagementCustomModel
QName PROP_DISPOSITION_PERIOD_PROPERTY = QName.createQName(RM_URI, "dispositionPeriodProperty");
QName PROP_DISPOSITION_EVENT = QName.createQName(RM_URI, "dispositionEvent");
QName PROP_DISPOSITION_EVENT_COMBINATION = QName.createQName(RM_URI, "dispositionEventCombination");
QName PROP_DISPOSITION_EVALUATOR_COMBINATION = QName.createQName(RM_URI, "dispositionEvaluatorCombination");
QName PROP_DISPOSITION_LOCATION = QName.createQName(RM_URI, "dispositionLocation");
QName PROP_DISPOSITION_ACTION_GHOST_ON_DESTROY = QName.createQName(RM_URI, "dispositionActionGhostOnDestroy");
@@ -239,6 +240,7 @@ public interface RecordsManagementModel extends RecordsManagementCustomModel
QName PROP_RS_DISPOSITION_ACTION_AS_OF = QName.createQName(RM_URI, "recordSearchDispositionActionAsOf");
QName PROP_RS_DISPOSITION_EVENTS_ELIGIBLE = QName.createQName(RM_URI, "recordSearchDispositionEventsEligible");
QName PROP_RS_DISPOSITION_EVENTS = QName.createQName(RM_URI, "recordSearchDispositionEvents");
QName PROP_DISPOSITION_EVENTS = QName.createQName(RM_URI, "dispositionEvents");
QName PROP_RS_VITAL_RECORD_REVIEW_PERIOD = QName.createQName(RM_URI, "recordSearchVitalRecordReviewPeriod");
QName PROP_RS_VITAL_RECORD_REVIEW_PERIOD_EXPRESSION = QName.createQName(RM_URI, "recordSearchVitalRecordReviewPeriodExpression");
QName PROP_RS_DISPOSITION_PERIOD = QName.createQName(RM_URI, "recordSearchDispositionPeriod");

View File

@@ -133,6 +133,12 @@ public class DispositionActionDefinitionPost extends DispositionAbstractBase
json.getBoolean("eligibleOnFirstCompleteEvent") ? "or" : "and");
}
// if (json.has("evaluatorCombination"))
// {
// props.put(RecordsManagementModel.PROP_DISPOSITION_EVALUATOR_COMBINATION,
// json.getBoolean("evaluatorCombination") ? "and" : "or");
// }
if (json.has("location"))
{
props.put(RecordsManagementModel.PROP_DISPOSITION_LOCATION,

View File

@@ -132,6 +132,12 @@ public class DispositionActionDefinitionPut extends DispositionAbstractBase
json.getBoolean("eligibleOnFirstCompleteEvent") ? "or" : "and");
}
// if (json.has("evaluatorCombination"))
// {
// props.put(RecordsManagementModel.PROP_DISPOSITION_EVALUATOR_COMBINATION,
// json.getBoolean("evaluatorCombination") ? "and" : "or");
// }
if (json.has("location"))
{
props.put(RecordsManagementModel.PROP_DISPOSITION_LOCATION,