mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-6320 Code review changes.
This commit is contained in:
@@ -1132,11 +1132,11 @@
|
|||||||
<tokenised>false</tokenised>
|
<tokenised>false</tokenised>
|
||||||
</index>
|
</index>
|
||||||
</property>
|
</property>
|
||||||
<property name="rma:recordSearchDeclassificationReviewCompletedAt">
|
<property name="rma:declassificationReviewCompletedAt">
|
||||||
<type>d:date</type>
|
<type>d:date</type>
|
||||||
<protected>true</protected>
|
<protected>true</protected>
|
||||||
</property>
|
</property>
|
||||||
<property name="rma:recordSearchDeclassificationReviewCompletedBy">
|
<property name="rma:declassificationReviewCompletedBy">
|
||||||
<type>d:text</type>
|
<type>d:text</type>
|
||||||
<protected>true</protected>
|
<protected>true</protected>
|
||||||
<index enabled="true">
|
<index enabled="true">
|
||||||
|
@@ -330,6 +330,7 @@ public class DispositionActionImpl implements DispositionAction,
|
|||||||
props.put(PROP_EVENT_EXECUTION_COMPLETED_BY, completedByValue);
|
props.put(PROP_EVENT_EXECUTION_COMPLETED_BY, completedByValue);
|
||||||
services.getNodeService().setProperties(eventNodeRef, props);
|
services.getNodeService().setProperties(eventNodeRef, props);
|
||||||
|
|
||||||
|
// check a specific event from rmEventConfigBootstrap.json
|
||||||
if (eventName.equals("declassification_review"))
|
if (eventName.equals("declassification_review"))
|
||||||
{
|
{
|
||||||
setDeclassificationReview(eventNodeRef, completedAtValue, completedByValue);
|
setDeclassificationReview(eventNodeRef, completedAtValue, completedByValue);
|
||||||
@@ -537,11 +538,7 @@ public class DispositionActionImpl implements DispositionAction,
|
|||||||
{
|
{
|
||||||
NodeRef nextDispositionActionNodeRef = services.getNodeService().getPrimaryParent(eventNodeRef).getParentRef();
|
NodeRef nextDispositionActionNodeRef = services.getNodeService().getPrimaryParent(eventNodeRef).getParentRef();
|
||||||
NodeRef nodeRef = services.getNodeService().getPrimaryParent(nextDispositionActionNodeRef).getParentRef();
|
NodeRef nodeRef = services.getNodeService().getPrimaryParent(nextDispositionActionNodeRef).getParentRef();
|
||||||
|
setPropsOnContent(nodeRef, completedAtValue, completedByValue);
|
||||||
Map<QName, Serializable> nodeProps = services.getNodeService().getProperties(nodeRef);
|
|
||||||
nodeProps.put(PROP_RS_DECLASSIFICATION_REVIEW_COMPLETED_AT, completedAtValue);
|
|
||||||
nodeProps.put(PROP_RS_DECLASSIFICATION_REVIEW_COMPLETED_BY, completedByValue);
|
|
||||||
services.getNodeService().setProperties(nodeRef, nodeProps);
|
|
||||||
|
|
||||||
// check if the node is a record folder then set the declassification review on the records also
|
// check if the node is a record folder then set the declassification review on the records also
|
||||||
if (services.getNodeService().getType(nodeRef).equals(RecordsManagementModel.TYPE_RECORD_FOLDER))
|
if (services.getNodeService().getType(nodeRef).equals(RecordsManagementModel.TYPE_RECORD_FOLDER))
|
||||||
@@ -551,11 +548,16 @@ public class DispositionActionImpl implements DispositionAction,
|
|||||||
for (ChildAssociationRef child : records)
|
for (ChildAssociationRef child : records)
|
||||||
{
|
{
|
||||||
NodeRef recordNodeRef = child.getChildRef();
|
NodeRef recordNodeRef = child.getChildRef();
|
||||||
Map<QName, Serializable> recordProps = services.getNodeService().getProperties(recordNodeRef);
|
setPropsOnContent(recordNodeRef, completedAtValue, completedByValue);
|
||||||
recordProps.put(PROP_RS_DECLASSIFICATION_REVIEW_COMPLETED_AT, completedAtValue);
|
|
||||||
recordProps.put(PROP_RS_DECLASSIFICATION_REVIEW_COMPLETED_BY, completedByValue);
|
|
||||||
services.getNodeService().setProperties(recordNodeRef, recordProps);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void setPropsOnContent(NodeRef nodeRef, Date completedAtValue, String completedByValue)
|
||||||
|
{
|
||||||
|
Map<QName, Serializable> nodeProps = services.getNodeService().getProperties(nodeRef);
|
||||||
|
nodeProps.put(PROP_RS_DECLASSIFICATION_REVIEW_COMPLETED_AT, completedAtValue);
|
||||||
|
nodeProps.put(PROP_RS_DECLASSIFICATION_REVIEW_COMPLETED_BY, completedByValue);
|
||||||
|
services.getNodeService().setProperties(nodeRef, nodeProps);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -247,8 +247,8 @@ public interface RecordsManagementModel extends RecordsManagementCustomModel
|
|||||||
QName PROP_RS_HAS_DISPOITION_SCHEDULE = QName.createQName(RM_URI, "recordSearchHasDispositionSchedule");
|
QName PROP_RS_HAS_DISPOITION_SCHEDULE = QName.createQName(RM_URI, "recordSearchHasDispositionSchedule");
|
||||||
QName PROP_RS_DISPOITION_INSTRUCTIONS = QName.createQName(RM_URI, "recordSearchDispositionInstructions");
|
QName PROP_RS_DISPOITION_INSTRUCTIONS = QName.createQName(RM_URI, "recordSearchDispositionInstructions");
|
||||||
QName PROP_RS_DISPOITION_AUTHORITY = QName.createQName(RM_URI, "recordSearchDispositionAuthority");
|
QName PROP_RS_DISPOITION_AUTHORITY = QName.createQName(RM_URI, "recordSearchDispositionAuthority");
|
||||||
QName PROP_RS_DECLASSIFICATION_REVIEW_COMPLETED_AT = QName.createQName(RM_URI, "recordSearchDeclassificationReviewCompletedAt");
|
QName PROP_RS_DECLASSIFICATION_REVIEW_COMPLETED_AT = QName.createQName(RM_URI, "declassificationReviewCompletedAt");
|
||||||
QName PROP_RS_DECLASSIFICATION_REVIEW_COMPLETED_BY = QName.createQName(RM_URI, "recordSearchDeclassificationReviewCompletedBy");
|
QName PROP_RS_DECLASSIFICATION_REVIEW_COMPLETED_BY = QName.createQName(RM_URI, "declassificationReviewCompletedBy");
|
||||||
/** @depreacted as of 2.2, because disposable items can now be in multiple holds */
|
/** @depreacted as of 2.2, because disposable items can now be in multiple holds */
|
||||||
@Deprecated
|
@Deprecated
|
||||||
QName PROP_RS_HOLD_REASON = QName.createQName(RM_URI, "recordSearchHoldReason");
|
QName PROP_RS_HOLD_REASON = QName.createQName(RM_URI, "recordSearchHoldReason");
|
||||||
|
Reference in New Issue
Block a user