mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-2448 (Extend classified document properties view)
RM-2449 (Extend classified record properties view) +review RM-137 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@109185 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -78,6 +78,7 @@ public class RecordsManagementNodeFormFilter extends RecordsManagementFormFilter
|
|||||||
protected static final String TRANSIENT_CURRENT_CLASSIFICATION = "clfCurrentClassification";
|
protected static final String TRANSIENT_CURRENT_CLASSIFICATION = "clfCurrentClassification";
|
||||||
protected static final String TRANSIENT_INITIAL_CLASSIFICATION = "clfInitialClassification";
|
protected static final String TRANSIENT_INITIAL_CLASSIFICATION = "clfInitialClassification";
|
||||||
protected static final String TRANSIENT_CLASSIFICATION_REASON_LABELS = "clfClassificationReasonLabels";
|
protected static final String TRANSIENT_CLASSIFICATION_REASON_LABELS = "clfClassificationReasonLabels";
|
||||||
|
protected static final String TRANSIENT_DECLASSIFICATION_EXEMPTIONS = "clfDeclassificationExemptions";
|
||||||
|
|
||||||
/** Disposition service */
|
/** Disposition service */
|
||||||
private DispositionService dispositionService;
|
private DispositionService dispositionService;
|
||||||
@@ -232,6 +233,21 @@ public class RecordsManagementNodeFormFilter extends RecordsManagementFormFilter
|
|||||||
}
|
}
|
||||||
addTransientPropertyField(form, TRANSIENT_CLASSIFICATION_REASON_LABELS, DataTypeDefinition.TEXT, classificationReasonLabels);
|
addTransientPropertyField(form, TRANSIENT_CLASSIFICATION_REASON_LABELS, DataTypeDefinition.TEXT, classificationReasonLabels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
List<String> declassificationExemptions = (List<String>) nodeService.getProperty(nodeRef, ClassifiedContentModel.PROP_DECLASSIFICATION_EXEMPTIONS);
|
||||||
|
if (declassificationExemptions != null && !declassificationExemptions.isEmpty())
|
||||||
|
{
|
||||||
|
List<String> declassificationExemptionLabels = new ArrayList<>();
|
||||||
|
int size = declassificationExemptions.size();
|
||||||
|
for (int i = 0; i < size; i++)
|
||||||
|
{
|
||||||
|
String id = declassificationExemptions.get(i);
|
||||||
|
String displayLabel = getClassificationSchemeService().getExemptionCategoryById(id).getDisplayLabel();
|
||||||
|
declassificationExemptionLabels.add(id + ": " + displayLabel + (i < size - 1 ? "|": ""));
|
||||||
|
}
|
||||||
|
addTransientPropertyField(form, TRANSIENT_DECLASSIFICATION_EXEMPTIONS, DataTypeDefinition.TEXT, declassificationExemptionLabels);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user