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:
Neil McErlean
2015-07-14 11:13:06 +00:00
parent 345cb84a77
commit 71565ff47a
2 changed files with 3 additions and 1 deletions

View File

@@ -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.

View File

@@ -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);