mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-2401, RM-2400, RM-2409 Store classification schedule properties.
Update Java API to store the classification schedule properties. Fix the classification aspect behaviour to check newly classified documents. Add an application context test that the downgrade instructions are mandatory when the downgrade date is set. +review RM git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@109015 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -115,11 +115,18 @@ public class ContentClassificationServiceImplUnitTest implements ClassifiedConte
|
||||
propertiesCaptor.capture());
|
||||
// Check the properties that were received.
|
||||
Map<QName, Serializable> properties = propertiesCaptor.getValue();
|
||||
HashSet<QName> expectedPropertyKeys = Sets.newHashSet(ClassifiedContentModel.PROP_INITIAL_CLASSIFICATION,
|
||||
ClassifiedContentModel.PROP_CURRENT_CLASSIFICATION,
|
||||
ClassifiedContentModel.PROP_CLASSIFICATION_AGENCY,
|
||||
ClassifiedContentModel.PROP_CLASSIFIED_BY,
|
||||
ClassifiedContentModel.PROP_CLASSIFICATION_REASONS);
|
||||
HashSet<QName> expectedPropertyKeys = Sets.newHashSet(
|
||||
PROP_INITIAL_CLASSIFICATION,
|
||||
PROP_CURRENT_CLASSIFICATION,
|
||||
PROP_CLASSIFICATION_AGENCY,
|
||||
PROP_CLASSIFIED_BY,
|
||||
PROP_CLASSIFICATION_REASONS,
|
||||
PROP_DOWNGRADE_DATE,
|
||||
PROP_DOWNGRADE_EVENT,
|
||||
PROP_DOWNGRADE_INSTRUCTIONS,
|
||||
PROP_DECLASSIFICATION_DATE,
|
||||
PROP_DECLASSIFICATION_EVENT,
|
||||
PROP_DECLASSIFICATION_EXEMPTIONS);
|
||||
assertEquals("Aspect created with unexpected set of keys.", expectedPropertyKeys, properties.keySet());
|
||||
assertEquals("Unexpected initial classification.", level.getId(), properties.get(ClassifiedContentModel.PROP_INITIAL_CLASSIFICATION));
|
||||
assertEquals("Unexpected current classification.", level.getId(), properties.get(ClassifiedContentModel.PROP_CURRENT_CLASSIFICATION));
|
||||
|
Reference in New Issue
Block a user