mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
Added tagById validation if node is a tag
This commit is contained in:
@@ -196,6 +196,11 @@ public class TagsImpl implements Tags
|
|||||||
{
|
{
|
||||||
NodeRef tagNodeRef = nodes.validateNode(storeRef, tagId);
|
NodeRef tagNodeRef = nodes.validateNode(storeRef, tagId);
|
||||||
if(tagNodeRef == null)
|
if(tagNodeRef == null)
|
||||||
|
{
|
||||||
|
throw new EntityNotFoundException(tagId);
|
||||||
|
}
|
||||||
|
String tag = taggingService.getTagName(tagNodeRef);
|
||||||
|
if(!taggingService.isTag(storeRef,tag))
|
||||||
{
|
{
|
||||||
throw new EntityNotFoundException(tagId);
|
throw new EntityNotFoundException(tagId);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user