@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/access-services/asset-owner/users/{userId}")
public class ValidValuesResource
extends Object
| Constructor and Description |
|---|
ValidValuesResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
VoidResponse |
assignValidValueToConsumer(String serverName,
String userId,
String validValueGUID,
String consumerGUID,
BooleanRequestBody requestBody)
Link a valid value typically to a schema element or glossary term to show that it uses
the valid values.
|
VoidResponse |
attachValidValueToSet(String serverName,
String userId,
String setGUID,
String validValueGUID,
NullRequestBody requestBody)
Create a link between a valid value set or definition and a set.
|
VoidResponse |
classifyAssetAsReferenceData(String serverName,
String userId,
String assetGUID,
NullRequestBody requestBody)
Add the ReferenceData classification to an asset.
|
GUIDResponse |
createValidValueDefinition(String serverName,
String userId,
String setGUID,
ValidValuesRequestBody requestBody)
Create a new valid value definition.
|
GUIDResponse |
createValidValueSet(String serverName,
String userId,
ValidValuesRequestBody requestBody)
Create a new valid value set.
|
VoidResponse |
declassifyAssetAsReferenceData(String serverName,
String userId,
String assetGUID,
NullRequestBody requestBody)
Remove the ReferenceData classification form an Asset.
|
VoidResponse |
deleteValidValue(String serverName,
String userId,
String validValueGUID,
String qualifiedName)
Remove the valid value form the repository.
|
VoidResponse |
detachValidValueFromSet(String serverName,
String userId,
String setGUID,
String validValueGUID,
NullRequestBody requestBody)
Remove the link between a valid value and a set it is a member of.
|
ValidValuesResponse |
findValidValues(String serverName,
String userId,
int startFrom,
int pageSize,
String searchString)
Locate valid values that match the search string.
|
ValidValuesResponse |
getSetsForValidValue(String serverName,
String userId,
String validValueGUID,
int startFrom,
int pageSize)
Page through the list of valid value sets that a valid value definition/set belongs to.
|
ValidValueResponse |
getValidValueByGUID(String serverName,
String userId,
String validValueGUID)
Retrieve a specific valid value from the repository.
|
ValidValuesResponse |
getValidValueByName(String serverName,
String userId,
String validValueName)
Retrieve a specific valid value from the repository.
|
ValidValueConsumersResponse |
getValidValuesConsumers(String serverName,
String userId,
String validValueGUID,
int startFrom,
int pageSize)
Page through the list of consumers for a valid value.
|
ValidValuesResponse |
getValidValueSetMembers(String serverName,
String userId,
String validValueSetGUID,
int startFrom,
int pageSize)
Page through the members of a valid value set.
|
AssetsResponse |
getValidValuesImplementations(String serverName,
String userId,
String validValueGUID,
int startFrom,
int pageSize)
Pag through the list of implementations for a valid value.
|
VoidResponse |
linkValidValueToImplementation(String serverName,
String userId,
String validValueGUID,
String assetGUID,
NullRequestBody requestBody)
Link a valid value to an asset that provides the implementation.
|
VoidResponse |
unassignValidValueFromConsumer(String serverName,
String userId,
String validValueGUID,
String consumerGUID,
NullRequestBody requestBody)
Remove the link between a valid value and a consumer.
|
VoidResponse |
unlinkValidValueFromImplementation(String serverName,
String userId,
String validValueGUID,
String assetGUID,
NullRequestBody requestBody)
Remove the link between a valid value and an implementing asset.
|
VoidResponse |
updateValidValue(String serverName,
String userId,
String validValueGUID,
ValidValuesRequestBody requestBody)
Update the properties of the valid value.
|
@PostMapping(path="/valid-values/new-set") public GUIDResponse createValidValueSet(@PathVariable String serverName, @PathVariable String userId, @RequestBody ValidValuesRequestBody requestBody)
serverName - name of calling serveruserId - calling user.requestBody - parameters for the new object.@PostMapping(path="/valid-values/new-definition") public GUIDResponse createValidValueDefinition(@PathVariable String serverName, @PathVariable String userId, @PathVariable String setGUID, @RequestBody ValidValuesRequestBody requestBody)
serverName - name of calling serveruserId - calling user.setGUID - unique identifier of the set to attach this to.requestBody - parameters for the new object.@PostMapping(path="/valid-values/{validValueGUID}/update")
public VoidResponse updateValidValue(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String validValueGUID,
@RequestBody
ValidValuesRequestBody requestBody)
serverName - name of calling serveruserId - calling user.validValueGUID - unique identifier of the valid value.requestBody - parameters to update.@PostMapping(path="/valid-values/{validValueGUID}/delete")
public VoidResponse deleteValidValue(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String validValueGUID,
@RequestBody
String qualifiedName)
serverName - name of calling serveruserId - calling uservalidValueGUID - unique identifier of the value to deletequalifiedName - unique name of the value to delete. This is used to verify that
the correct valid value is being deleted.@PostMapping(path="/valid-values/sets/{setGUID}/members/{validValueGUID}")
public VoidResponse attachValidValueToSet(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String setGUID,
@PathVariable
String validValueGUID,
@RequestBody
NullRequestBody requestBody)
serverName - name of calling serveruserId - calling user.setGUID - unique identifier of the set.validValueGUID - unique identifier of the valid value to add to the set.requestBody - null request body supplied to satisfy REST protocol@PostMapping(path="/valid-values/sets/{setGUID}/members/{validValueGUID}/delete")
public VoidResponse detachValidValueFromSet(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String setGUID,
@PathVariable
String validValueGUID,
@RequestBody
NullRequestBody requestBody)
serverName - name of calling serveruserId - calling usersetGUID - owning setvalidValueGUID - unique identifier of the member to be removed.requestBody - null request body supplied to satisfy REST protocol@PostMapping(path="/valid-values/{validValueGUID}/implementations/{assetGUID}")
public VoidResponse linkValidValueToImplementation(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String validValueGUID,
@PathVariable
String assetGUID,
@RequestBody
NullRequestBody requestBody)
serverName - name of calling serveruserId - calling user.validValueGUID - unique identifier of the valid value.assetGUID - unique identifier of the asset that implements the valid value.requestBody - null request body supplied to satisfy REST protocol@PostMapping(path="/assets/{assetGUID}/classify-as-reference-data")
public VoidResponse classifyAssetAsReferenceData(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
NullRequestBody requestBody)
serverName - name of calling serveruserId - calling user.assetGUID - unique identifier of the asset that contains reference data.requestBody - null request body supplied to satisfy REST protocol@PostMapping(path="/valid-values/{validValueGUID}/implementations/{assetGUID}/delete")
public VoidResponse unlinkValidValueFromImplementation(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String validValueGUID,
@PathVariable
String assetGUID,
@RequestBody
NullRequestBody requestBody)
serverName - name of calling serveruserId - calling user.validValueGUID - unique identifier of the valid value.assetGUID - unique identifier of the asset that used to implement the valid value.requestBody - null request body supplied to satisfy REST protocol@PostMapping(path="/assets/{assetGUID}/declassify-as-reference-data")
public VoidResponse declassifyAssetAsReferenceData(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
NullRequestBody requestBody)
serverName - name of calling serveruserId - calling user.assetGUID - unique identifier of asset.requestBody - null request body supplied to satisfy REST protocol@PostMapping(path="/valid-values/{validValueGUID}/consumers/{consumerGUID}")
public VoidResponse assignValidValueToConsumer(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String validValueGUID,
@PathVariable
String consumerGUID,
@RequestBody
BooleanRequestBody requestBody)
serverName - name of calling serveruserId - calling user.validValueGUID - unique identifier of the valid value.consumerGUID - unique identifier of the element to link to.requestBody - boolean request body supplied to pass the strictRequirement flag@PostMapping(path="/valid-values/{validValueGUID}/consumers/{consumerGUID}/delete")
public VoidResponse unassignValidValueFromConsumer(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String validValueGUID,
@PathVariable
String consumerGUID,
@RequestBody
NullRequestBody requestBody)
serverName - name of calling serveruserId - calling user.validValueGUID - unique identifier of the valid value.consumerGUID - unique identifier of the element to remove the link from.requestBody - null request body supplied to satisfy REST protocol@GetMapping(path="/valid-values/{validValueGUID}")
public ValidValueResponse getValidValueByGUID(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String validValueGUID)
serverName - name of calling serveruserId - calling uservalidValueGUID - unique identifier of the valid value.@PostMapping(path="/valid-values/by-name") public ValidValuesResponse getValidValueByName(@PathVariable String serverName, @PathVariable String userId, @RequestBody String validValueName)
serverName - name of calling serveruserId - calling uservalidValueName - qualified name of the valid value.@PostMapping(path="/valid-values/by-search-string") public ValidValuesResponse findValidValues(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody String searchString)
serverName - name of calling serveruserId - calling userstartFrom - paging starting pointpageSize - maximum number of return values.searchString - string value to look for - may contain RegEx characters.@GetMapping(path="/valid-values/sets/{validValueSetGUID}/members")
public ValidValuesResponse getValidValueSetMembers(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String validValueSetGUID,
@RequestParam
int startFrom,
@RequestParam
int pageSize)
serverName - name of calling serveruserId - calling user.validValueSetGUID - unique identifier of the valid value set.startFrom - paging starting pointpageSize - maximum number of return values.@GetMapping(path="/valid-values/{validValueGUID}/set-membership")
public ValidValuesResponse getSetsForValidValue(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String validValueGUID,
@RequestParam
int startFrom,
@RequestParam
int pageSize)
serverName - name of calling serveruserId - calling user.validValueGUID - unique identifier of valid value to querystartFrom - paging starting pointpageSize - maximum number of return values.@GetMapping(path="/valid-values/{validValueGUID}/consumers")
public ValidValueConsumersResponse getValidValuesConsumers(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String validValueGUID,
@RequestParam
int startFrom,
@RequestParam
int pageSize)
serverName - name of calling serveruserId - calling user.validValueGUID - unique identifier of valid value to querystartFrom - paging starting pointpageSize - maximum number of return values.@GetMapping(path="/valid-values/{validValueGUID}/implementations")
public AssetsResponse getValidValuesImplementations(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String validValueGUID,
@RequestParam
int startFrom,
@RequestParam
int pageSize)
serverName - name of calling serveruserId - calling user.validValueGUID - unique identifier of valid value to querystartFrom - paging starting pointpageSize - maximum number of return values.Copyright © 2018–2020 ODPi. All rights reserved.