Addressed review comments

This commit is contained in:
suneet.gupta
2023-03-11 00:57:24 +05:30
parent 9d05e56915
commit 886989e290

View File

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