@RestController
@RequestMapping(value="/rest",
produces={"application/xml","application/json"})
public class AttributeValueListRestController
extends HerdBaseController
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_VALUE_LIST_URI_PREFIX |
| Constructor and Description |
|---|
AttributeValueListRestController() |
| Modifier and Type | Method and Description |
|---|---|
AttributeValueList |
createAttributeValueList(AttributeValueListCreateRequest request)
Creates a new attribute value list.
|
AttributeValueList |
deleteAttributeValueList(String namespace,
String attributeValueListName)
Deletes an existing attribute value list.
|
AttributeValueList |
getAttributeValueList(String namespace,
String attributeValueListName)
Gets an existing attribute value list.
|
AttributeValueListKeys |
getAttributeValueLists()
Gets a list of keys for all attribute value lists registered in the system that user has access to.
|
addPagingHttpHeaders, validateNoDuplicateQueryStringParamspublic static final String ATTRIBUTE_VALUE_LIST_URI_PREFIX
@RequestMapping(value="/attributeValueLists",
method=POST,
consumes={"application/xml","application/json"})
@Secured(value="FN_ATTRIBUTE_VALUE_LISTS_POST")
public AttributeValueList createAttributeValueList(@RequestBody
AttributeValueListCreateRequest request)
Requires WRITE permission on namespace
request - the information needed to create an attribute value list@RequestMapping(value="/attributeValueLists/namespaces/{namespace}/attributeValueListNames/{attributeValueListName}",
method=DELETE)
@Secured(value="FN_ATTRIBUTE_VALUE_LISTS_DELETE")
public AttributeValueList deleteAttributeValueList(@PathVariable(value="namespace")
String namespace,
@PathVariable(value="attributeValueListName")
String attributeValueListName)
Requires WRITE permission on namespace
namespace - the namespace of the attribute value listattributeValueListName - the name of the attribute value list@RequestMapping(value="/attributeValueLists/namespaces/{namespace}/attributeValueListNames/{attributeValueListName}",
method=GET)
@Secured(value="FN_ATTRIBUTE_VALUE_LISTS_GET")
public AttributeValueList getAttributeValueList(@PathVariable(value="namespace")
String namespace,
@PathVariable(value="attributeValueListName")
String attributeValueListName)
Requires READ permission on namespace
namespace - the namespace of the attribute value listattributeValueListName - the name of the attribute value list@RequestMapping(value="/attributeValueLists",
method=GET)
@Secured(value="FN_ATTRIBUTE_VALUE_LISTS_GET_ALL")
public AttributeValueListKeys getAttributeValueLists()
Requires READ permission on namespace
Copyright © 2021. All rights reserved.