public class ValidValuesHandler extends Object
| Constructor and Description |
|---|
ValidValuesHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
LastAttachmentHandler lastAttachmentHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
assignValidValueToConsumer(String userId,
String validValueGUID,
String consumerGUID,
String methodName)
Link a valid value typically to a schema element or glossary term to show that it uses
the valid values.
|
void |
attachValidValueToSet(String userId,
String setGUID,
String validValueGUID,
String methodName)
Create a link between a valid value set or definition and a set.
|
void |
classifyAssetAsReferenceData(String userId,
String assetGUID,
String methodName)
Add the ReferenceData classification to an asset.
|
String |
createValidValueDefinition(String userId,
String setGUID,
String qualifiedName,
String displayName,
String description,
String usage,
String scope,
String preferredValue,
Map<String,String> additionalProperties,
Map<String,Object> extendedProperties,
String methodName)
Create a new valid value definition.
|
String |
createValidValueSet(String userId,
String qualifiedName,
String displayName,
String description,
String usage,
String scope,
Map<String,String> additionalProperties,
Map<String,Object> extendedProperties,
String methodName)
Create a new valid value set.
|
void |
declassifyAssetAsReferenceData(String userId,
String assetGUID,
String methodName)
Remove the ReferenceData classification form an Asset.
|
void |
deleteValidValue(String userId,
String validValueGUID,
String qualifiedName,
String methodName)
Remove the valid value form the repository.
|
void |
detachValidValueFromSet(String userId,
String setGUID,
String validValueGUID,
String methodName)
Remove the link between a valid value and a set it is a member of.
|
List<ValidValue> |
findValidValues(String userId,
String searchString,
int startFrom,
int pageSize,
String methodName)
Locate valid values that match the search string.
|
List<ValidValue> |
getSetsForValidValue(String userId,
String validValueGUID,
int startFrom,
int pageSize,
String methodName)
Page through the list of valid value sets that a valid value definition/set belongs to.
|
ValidValue |
getValidValueByGUID(String userId,
String validValueGUID,
String methodName)
Retrieve a specific valid value from the repository.
|
List<ValidValue> |
getValidValueByName(String userId,
String validValueName,
String methodName)
Retrieve a specific valid value from the repository.
|
List<ValidValueConsumer> |
getValidValuesConsumers(String userId,
String validValueGUID,
int startFrom,
int pageSize,
String methodName)
Page through the list of consumers for a valid value.
|
List<ValidValue> |
getValidValueSetMembers(String userId,
String validValueSetGUID,
int startFrom,
int pageSize,
String methodName)
Page through the members of a valid value set.
|
List<Asset> |
getValidValuesImplementations(String userId,
String validValueGUID,
int startFrom,
int pageSize,
String methodName)
Pag through the list of implementations for a valid value.
|
void |
linkValidValueToImplementation(String userId,
String validValueGUID,
String assetGUID,
String methodName)
Link a valid value to an asset that provides the implementation.
|
void |
unassignValidValueFromConsumer(String userId,
String validValueGUID,
String consumerGUID,
String methodName)
Remove the link between a valid value and a consumer.
|
void |
unlinkValidValueFromImplementation(String userId,
String validValueGUID,
String assetGUID,
String methodName)
Remove the link between a valid value and an implementing asset.
|
void |
updateValidValue(String userId,
String validValueGUID,
String qualifiedName,
String displayName,
String description,
String usage,
String scope,
String preferredValue,
Map<String,String> additionalProperties,
Map<String,Object> extendedProperties,
String methodName)
Update the properties of the valid value.
|
public ValidValuesHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, LastAttachmentHandler lastAttachmentHandler)
serviceName - name of this serviceserverName - name of the local serverinvalidParameterHandler - handler for managing parameter errorsrepositoryHandler - manages calls to the repository servicesrepositoryHelper - provides utilities for manipulating the repository services objectslastAttachmentHandler - handler for recording last attachmentpublic String createValidValueSet(String userId, String qualifiedName, String displayName, String description, String usage, String scope, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.qualifiedName - unique name.displayName - displayable descriptive name.description - further information.usage - how/when should this set be used.scope - what is the scope of this set's values.additionalProperties - additional properties for this set.extendedProperties - properties that need to be populated into a subtype.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public String createValidValueDefinition(String userId, String setGUID, String qualifiedName, String displayName, String description, String usage, String scope, String preferredValue, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.setGUID - unique identifier of the set to attach this to.qualifiedName - unique name.displayName - displayable descriptive name.description - further information.usage - how/when should this value be used.scope - what is the scope of the values.preferredValue - the value that should be used in an implementation if possible.additionalProperties - additional properties for this definition.extendedProperties - properties that need to be populated into a subtype.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public void updateValidValue(String userId, String validValueGUID, String qualifiedName, String displayName, String description, String usage, String scope, String preferredValue, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.validValueGUID - unique identifier of the valid value.qualifiedName - unique name.displayName - displayable descriptive name.description - further information.usage - how/when should this value be used.scope - what is the scope of the values.preferredValue - the value that should be used in an implementation if possible.additionalProperties - additional properties for this valid value.extendedProperties - properties that need to be populated into a subtype.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public void deleteValidValue(String userId, String validValueGUID, String qualifiedName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - 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.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public void attachValidValueToSet(String userId, String setGUID, String validValueGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.setGUID - unique identifier of the set.validValueGUID - unique identifier of the valid value to add to the set.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public void detachValidValueFromSet(String userId, String setGUID, String validValueGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usersetGUID - owning setvalidValueGUID - unique identifier of the member to be removed.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public void linkValidValueToImplementation(String userId, String validValueGUID, String assetGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.validValueGUID - unique identifier of the valid value.assetGUID - unique identifier of the asset that implements the valid value.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public void classifyAssetAsReferenceData(String userId, String assetGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.assetGUID - unique identifier of the asset that contains reference data.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public void unlinkValidValueFromImplementation(String userId, String validValueGUID, String assetGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.validValueGUID - unique identifier of the valid value.assetGUID - unique identifier of the asset that used to implement the valid value.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public void declassifyAssetAsReferenceData(String userId, String assetGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.assetGUID - unique identifier of asset.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public void assignValidValueToConsumer(String userId, String validValueGUID, String consumerGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.validValueGUID - unique identifier of the valid value.consumerGUID - unique identifier of the element to link to.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public void unassignValidValueFromConsumer(String userId, String validValueGUID, String consumerGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.validValueGUID - unique identifier of the valid value.consumerGUID - unique identifier of the element to remove the link from.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public ValidValue getValidValueByGUID(String userId, String validValueGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling uservalidValueGUID - unique identifier of the valid value.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public List<ValidValue> getValidValueByName(String userId, String validValueName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling uservalidValueName - qualified name of the valid value.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public List<ValidValue> findValidValues(String userId, String searchString, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usersearchString - string value to look for - may contain RegEx characters.startFrom - paging starting pointpageSize - maximum number of return values.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public List<ValidValue> getValidValueSetMembers(String userId, String validValueSetGUID, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.validValueSetGUID - unique identifier of the valid value set.startFrom - paging starting pointpageSize - maximum number of return values.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public List<ValidValue> getSetsForValidValue(String userId, String validValueGUID, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.validValueGUID - unique identifier of valid value to querystartFrom - paging starting pointpageSize - maximum number of return values.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public List<ValidValueConsumer> getValidValuesConsumers(String userId, String validValueGUID, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.validValueGUID - unique identifier of valid value to querystartFrom - paging starting pointpageSize - maximum number of return values.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public List<Asset> getValidValuesImplementations(String userId, String validValueGUID, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.validValueGUID - unique identifier of valid value to querystartFrom - paging starting pointpageSize - maximum number of return values.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.Copyright © 2018–2019 ODPi. All rights reserved.