mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
Addressed review comments
This commit is contained in:
@@ -197,12 +197,12 @@ public class TagsImpl implements Tags
|
||||
{
|
||||
NodeRef tagNodeRef = nodes.validateNode(tagId);
|
||||
return validateTag(tagNodeRef.getStoreRef(), tagId);
|
||||
}
|
||||
}
|
||||
|
||||
public NodeRef validateTag(StoreRef storeRef, String tagId)
|
||||
{
|
||||
NodeRef tagNodeRef = nodes.validateNode(storeRef,tagId);
|
||||
if ( tagNodeRef == null || nodeService.hasAspect(tagNodeRef, ContentModel.ASPECT_TAGGABLE))
|
||||
if (tagNodeRef == null || nodeService.hasAspect(tagNodeRef, ContentModel.ASPECT_TAGGABLE))
|
||||
{
|
||||
throw new EntityNotFoundException(tagId);
|
||||
}
|
||||
|
Reference in New Issue
Block a user