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
This commit is contained in:
Tom Page
2015-04-15 14:13:47 +00:00
parent 87c922dda3
commit 2a29b5a125
2 changed files with 23 additions and 0 deletions

View File

@@ -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<ClassificationReason> 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<ClassificationReason> classificationReasons, NodeRef document);
}

View File

@@ -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.<ClassificationReason>emptyList() :
Collections.unmodifiableList(configuredReasons);
}
@Override
public void addClassificationToDocument(ClassificationLevel classificationLevel, String classificationAuthority,
Set<ClassificationReason> classificationReasons, NodeRef document)
{
// TODO
}
}