@Component public class TagDaoHelper extends Object
| Constructor and Description |
|---|
TagDaoHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertDisplayNameDoesNotExistForTag(String tagCode,
String displayName)
Ensures that a tag entity does not exist for a specified tag type code and display name.
|
List<TagEntity> |
getTagChildrenEntities(TagEntity parentTagEntity)
Create a list of tag entities along with all its children tags down the hierarchy up to maximum allowed tag nesting level.
|
TagEntity |
getTagEntity(TagKey tagKey)
Gets a tag entity and ensure it exists.
|
void |
validateParentTagEntity(TagEntity tagEntity,
TagEntity parentTagEntity)
Validate the update tag request parent tag key.
|
void |
validateParentTagType(String tagTypeCode,
String parentTagTypeCode)
Validates parent tag type's code against the tag type's code.
|
public void assertDisplayNameDoesNotExistForTag(String tagCode, String displayName)
tagCode - the specified tag type code.displayName - the specified display name.public List<TagEntity> getTagChildrenEntities(TagEntity parentTagEntity)
parentTagEntity - the parent tag entitypublic TagEntity getTagEntity(TagKey tagKey) throws ObjectNotFoundException
tagKey - the tag key (case insensitive)ObjectNotFoundException - if the tag entity doesn't existpublic void validateParentTagEntity(TagEntity tagEntity, TagEntity parentTagEntity)
tagEntity - the tag entity being updatedparentTagEntity - the tag update requestCopyright © 2021. All rights reserved.