@RestController
@RequestMapping(value="/rest",
produces={"application/xml","application/json"})
public class TagTypeRestController
extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_TYPES_URI_PREFIX |
| Constructor and Description |
|---|
TagTypeRestController() |
| Modifier and Type | Method and Description |
|---|---|
TagType |
createTagType(TagTypeCreateRequest request)
Creates a new tag type.
|
TagType |
deleteTagType(String tagTypeCode)
Deletes an existing tag type by tag type code.
|
TagType |
getTagType(String tagTypeCode)
Gets an existing tag type by tag type code.
|
TagTypeKeys |
getTagTypes()
Gets a list of tag type keys for all tag types defined in the system.
|
TagTypeSearchResponse |
searchTagTypes(TagTypeSearchRequest request,
Set<String> fields)
Retrieves all tag types existing in the system.
|
TagType |
updateTagType(String tagTypeCode,
TagTypeUpdateRequest request)
Updates an existing tag type.
|
public static final String TAG_TYPES_URI_PREFIX
@RequestMapping(value="/tagTypes",
method=POST,
consumes={"application/xml","application/json"})
@Secured(value="FN_TAG_TYPES_POST")
public TagType createTagType(@RequestBody
TagTypeCreateRequest request)
request - the information needed to create the tag type@RequestMapping(value="/tagTypes/{tagTypeCode}",
method=DELETE)
@Secured(value="FN_TAG_TYPES_DELETE")
public TagType deleteTagType(@PathVariable(value="tagTypeCode")
String tagTypeCode)
tagTypeCode - the tag type code@RequestMapping(value="/tagTypes/{tagTypeCode}",
method=GET)
@Secured(value="FN_TAG_TYPES_GET")
public TagType getTagType(@PathVariable(value="tagTypeCode")
String tagTypeCode)
tagTypeCode - the tag type code@RequestMapping(value="/tagTypes",
method=GET)
@Secured(value="FN_TAG_TYPES_ALL_GET")
public TagTypeKeys getTagTypes()
@RequestMapping(value="/tagTypes/search",
method=POST,
consumes={"application/xml","application/json"})
@Secured(value="FN_TAG_TYPES_SEARCH_POST")
public TagTypeSearchResponse searchTagTypes(@RequestBody
TagTypeSearchRequest request,
@RequestParam(value="fields",required=false,defaultValue="")
Set<String> fields)
request - the tag type search request. The request does not take any search keys or filtersfields - the field options for the tag type search response. The valid field options are: displayName, tagTypeOrder and description@RequestMapping(value="/tagTypes/{tagTypeCode}",
method=PUT,
consumes={"application/xml","application/json"})
@Secured(value="FN_TAG_TYPES_PUT")
public TagType updateTagType(@PathVariable(value="tagTypeCode")
String tagTypeCode,
@RequestBody
TagTypeUpdateRequest request)
tagTypeCode - the tag type coderequest - the information needed to update the tag typeCopyright © 2021. All rights reserved.