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 + } }