mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user