@Service @Transactional(value="herdTransactionManager") public class TagServiceImpl extends Object implements TagService, SearchableService
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION_FIELD |
static String |
DISPLAY_NAME_FIELD |
static String |
HAS_CHILDREN_FIELD |
static String |
PARENT_TAG_KEY_FIELD |
static String |
SEARCH_SCORE_MULTIPLIER_FIELD |
| Constructor and Description |
|---|
TagServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Tag |
createTag(TagCreateRequest request)
Creates a new tag.
|
Tag |
deleteTag(TagKey tagKey)
Deletes an existing tag.
|
Tag |
getTag(TagKey tagKey)
Retrieves an existing tag.
|
TagListResponse |
getTags(String tagTypeCode,
String tagCode)
Retrieves all associated tags for the specified tag type code.
|
Set<String> |
getValidSearchResponseFields()
Returns valid search response fields.
|
TagSearchResponse |
searchTags(TagSearchRequest request,
Set<String> fields)
Retrieves all tags existing in the system per specified search filters and keys.
|
void |
updateSearchIndexDocumentTag(SearchIndexUpdateDto searchIndexUpdateDto)
Updates the search index document representation of the tag.
|
Tag |
updateTag(TagKey tagKey,
TagUpdateRequest tagUpdateRequest)
Updates an existing tag.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateSearchResponseFieldspublic static final String DESCRIPTION_FIELD
public static final String DISPLAY_NAME_FIELD
public static final String HAS_CHILDREN_FIELD
public static final String PARENT_TAG_KEY_FIELD
public static final String SEARCH_SCORE_MULTIPLIER_FIELD
public Tag createTag(TagCreateRequest request)
TagServicecreateTag in interface TagServicerequest - the tag create request.public Tag deleteTag(TagKey tagKey)
TagServicedeleteTag in interface TagServicetagKey - the tag's key.public Tag getTag(TagKey tagKey)
TagServicegetTag in interface TagServicetagKey - the tag's key.public TagListResponse getTags(String tagTypeCode, String tagCode)
TagServicegetTags in interface TagServicetagTypeCode - the tag type's code.tagCode - the tag code.public Set<String> getValidSearchResponseFields()
SearchableServicegetValidSearchResponseFields in interface SearchableServicepublic TagSearchResponse searchTags(TagSearchRequest request, Set<String> fields)
TagServicesearchTags in interface TagServicerequest - the tag search request. The request can only accept at most one search filter and a single search keyfields - the field options for the tag type search responsepublic void updateSearchIndexDocumentTag(SearchIndexUpdateDto searchIndexUpdateDto)
TagServiceupdateSearchIndexDocumentTag in interface TagServicesearchIndexUpdateDto - the SearchIndexUpdateDto objectpublic Tag updateTag(TagKey tagKey, TagUpdateRequest tagUpdateRequest)
TagServiceupdateTag in interface TagServicetagKey - the tag's key.tagUpdateRequest - the tag update request.Copyright © 2021. All rights reserved.