mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Part of RM-2343. Ensure that blank or whitespace-only values for the 'Classified By' field are not accepted.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@108246 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -50,6 +50,8 @@ public interface ContentClassificationService
|
||||
* @param classificationReasonIds A non-empty set of ids of reasons for classifying the content in this way.
|
||||
* @param content The node to classify.
|
||||
* @throws LevelIdNotFound If the supplied level id is not found.
|
||||
* @thorws IllegalArgumentException If the supplied {@code classifiedBy} is {@code null},
|
||||
* the empty string or a string consisting only of whitespace.
|
||||
* @throws ReasonIdNotFound If any of the supplied reason ids are not found.
|
||||
* @throws InvalidNodeRefException If the node could not be found.
|
||||
* @throws InvalidNode If the supplied node is not a content node.
|
||||
|
@@ -89,7 +89,7 @@ public class ContentClassificationServiceImpl extends ServiceBaseImpl implements
|
||||
Set<String> classificationReasonIds, final NodeRef content)
|
||||
{
|
||||
checkNotBlank("classificationLevelId", classificationLevelId);
|
||||
mandatory("classifiedBy", classifiedBy);
|
||||
checkNotBlank("classifiedBy", classifiedBy);
|
||||
mandatory("classificationReasonIds", classificationReasonIds);
|
||||
mandatory("content", content);
|
||||
|
||||
|
Reference in New Issue
Block a user