From 2a29b5a1253c86bd08c12adfc400c3ba758b9784 Mon Sep 17 00:00:00 2001 From: Tom Page Date: Wed, 15 Apr 2015 14:13:47 +0000 Subject: [PATCH] RM-2045 Update ClassificationService interface. This should allow Tuna to progress RM-2047. +review RM git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@101932 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../classification/ClassificationService.java | 14 ++++++++++++++ .../classification/ClassificationServiceImpl.java | 9 +++++++++ 2 files changed, 23 insertions(+) diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationService.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationService.java index 8d26d3572e..bf5988b802 100644 --- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationService.java +++ b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationService.java @@ -19,6 +19,9 @@ package org.alfresco.module.org_alfresco_module_rm.classification; import java.util.List; +import java.util.Set; + +import org.alfresco.service.cmr.repository.NodeRef; /** * The Classification Service supports the 'Classified Records' feature, whereby Alfresco @@ -43,4 +46,15 @@ public interface ClassificationService * @return classification reasons in the order that they are defined. */ List getClassificationReasons(); + + /** + * Classify a document. + * + * @param classificationLevel The security clearance needed to access the document. + * @param classificationAuthority The name of the authority responsible for the classification of this document. + * @param classificationReasons A non-empty set of reasons for classifying the document in this way. + * @param document The node to classify. + */ + void addClassificationToDocument(ClassificationLevel classificationLevel, String classificationAuthority, + Set classificationReasons, NodeRef document); } diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationServiceImpl.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationServiceImpl.java index b4b4e9eb22..00d97a0ac2 100644 --- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationServiceImpl.java +++ b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationServiceImpl.java @@ -21,11 +21,13 @@ package org.alfresco.module.org_alfresco_module_rm.classification; import java.io.Serializable; import java.util.Collections; import java.util.List; +import java.util.Set; import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationServiceException.MissingConfiguration; import org.alfresco.module.org_alfresco_module_rm.util.ServiceBaseImpl; import org.alfresco.repo.security.authentication.AuthenticationUtil; import org.alfresco.service.cmr.attributes.AttributeService; +import org.alfresco.service.cmr.repository.NodeRef; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -200,4 +202,11 @@ public class ClassificationServiceImpl extends ServiceBaseImpl return configuredReasons == null ? Collections.emptyList() : Collections.unmodifiableList(configuredReasons); } + + @Override + public void addClassificationToDocument(ClassificationLevel classificationLevel, String classificationAuthority, + Set classificationReasons, NodeRef document) + { + // TODO + } }