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 |
assignReferenceValueToItem(String userId,
String validValueGUID,
String referenceableGUID,
int confidence,
String steward,
String notes,
String methodName)
Link a valid value as a reference value to a referencable to act as a tag/classification to help with locating and
grouping the referenceable.
|
void |
assignValidValueToConsumer(String userId,
String validValueGUID,
String consumerGUID,
boolean strictRequirement,
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.
|
String |
createExternalValidValueDefinition(String userId,
String externalSourceGUID,
String externalSourceName,
String setGUID,
String qualifiedName,
String displayName,
String description,
String usage,
String scope,
String preferredValue,
boolean isDeprecated,
Map<String,String> additionalProperties,
Map<String,Object> extendedProperties,
String methodName)
Create a new valid value definition that is owned/managed by an external tool.
|
String |
createExternalValidValueSet(String userId,
String externalSourceGUID,
String externalSourceName,
String qualifiedName,
String displayName,
String description,
String usage,
String scope,
boolean isDeprecated,
Map<String,String> additionalProperties,
Map<String,Object> extendedProperties,
String methodName)
Create a new valid value set that is owned/managed by an external tool.
|
String |
createValidValueDefinition(String userId,
String setGUID,
String qualifiedName,
String displayName,
String description,
String usage,
String scope,
String preferredValue,
boolean isDeprecated,
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,
boolean isDeprecated,
Map<String,String> additionalProperties,
Map<String,Object> extendedProperties,
String methodName)
Create a new valid value set.
|
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<ReferenceValueAssignedItem> |
getReferenceValueAssignedItems(String userId,
String validValueGUID,
List<String> supportedZones,
int startFrom,
int pageSize,
String methodName)
Page through the list of referenceables that have this valid value as a reference value.
|
List<ReferenceValueAssignment> |
getReferenceValueAssignments(String userId,
String referenceableGUID,
int startFrom,
int pageSize,
String methodName)
Page through the list of assigned reference values for a referenceable.
|
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<ValidValueMapping> |
getValidValueMappings(String userId,
String validValueGUID,
int startFrom,
int pageSize,
String methodName)
Page through the list of mappings for a valid value.
|
List<ValidValuesAssignmentConsumer> |
getValidValuesAssignmentConsumers(String userId,
String validValueGUID,
List<String> supportedZones,
int startFrom,
int pageSize,
String methodName)
Page through the list of consumers for a valid value.
|
List<ValidValuesAssignmentDefinition> |
getValidValuesAssignmentDefinition(String userId,
String referenceableGUID,
int startFrom,
int pageSize,
String methodName)
Page through the list of valid values assigned to referenceable element.
|
List<ValidValue> |
getValidValueSetMembers(String userId,
String validValueSetGUID,
int startFrom,
int pageSize,
String methodName)
Page through the members of a valid value set.
|
List<ValidValueImplementationAsset> |
getValidValuesImplementationAssets(String userId,
String validValueGUID,
List<String> supportedZones,
int startFrom,
int pageSize,
String methodName)
Page through the list of implementations for a valid value.
|
void |
linkValidValueToImplementation(String userId,
String validValueGUID,
String assetGUID,
String symbolicName,
String implementationValue,
Map<String,String> additionalValues,
String methodName)
Link a valid value to an asset that provides the implementation.
|
void |
mapValidValues(String userId,
String validValue1GUID,
String validValue2GUID,
String associationDescription,
int confidence,
String steward,
String notes,
String methodName)
Link together 2 valid values from different sets that have equivalent values/meanings.
|
void |
setAssetHandler(AssetHandler assetHandler)
Set up the asset handler.
|
void |
unassignReferenceValueFromItem(String userId,
String validValueGUID,
String referenceableGUID,
String methodName)
Remove the reference value link between a valid value and a referenceable (item).
|
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 |
unmapValidValues(String userId,
String validValue1GUID,
String validValue2GUID,
String methodName)
Remove the reference value link between a valid value and a referenceable (item).
|
void |
updateValidValue(String userId,
String validValueGUID,
String qualifiedName,
String displayName,
String description,
String usage,
String scope,
String preferredValue,
boolean isDeprecated,
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 void setAssetHandler(AssetHandler assetHandler)
assetHandler - handler for retrieving assetspublic String createValidValueSet(String userId, String qualifiedName, String displayName, String description, String usage, String scope, boolean isDeprecated, 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.isDeprecated - is the valid value deprecatedadditionalProperties - 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, boolean isDeprecated, 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.isDeprecated - is the valid value deprecatedadditionalProperties - 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 String createExternalValidValueSet(String userId, String externalSourceGUID, String externalSourceName, String qualifiedName, String displayName, String description, String usage, String scope, boolean isDeprecated, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.externalSourceGUID - guid of the software server capability entity that represented the external sourceexternalSourceName - name of the software server capability entity that represented the external sourcequalifiedName - 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.isDeprecated - is the valid value deprecatedadditionalProperties - 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 createExternalValidValueDefinition(String userId, String externalSourceGUID, String externalSourceName, String setGUID, String qualifiedName, String displayName, String description, String usage, String scope, String preferredValue, boolean isDeprecated, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.externalSourceGUID - guid of the software server capability entity that represented the external sourceexternalSourceName - name of the software server capability entity that represented the external sourcesetGUID - 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.isDeprecated - is the valid value deprecatedadditionalProperties - 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, boolean isDeprecated, 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.isDeprecated - is the valid value deprecatedadditionalProperties - 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 symbolicName, String implementationValue, Map<String,String> additionalValues, 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.symbolicName - lookup name for valid valueimplementationValue - value used in implementationadditionalValues - additional values stored under the symbolic namemethodName - 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 assignValidValueToConsumer(String userId, String validValueGUID, String consumerGUID, boolean strictRequirement, 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.strictRequirement - the valid values defines the only values that are permitted.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 void assignReferenceValueToItem(String userId, String validValueGUID, String referenceableGUID, int confidence, String steward, String notes, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.validValueGUID - unique identifier of the valid value.referenceableGUID - unique identifier of the element to link to.confidence - how confident is the steward that this mapping is correct (0-100).steward - identifier of stewardnotes - additional notes from the stewardmethodName - 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 unassignReferenceValueFromItem(String userId, String validValueGUID, String referenceableGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.validValueGUID - unique identifier of the valid value.referenceableGUID - 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 void mapValidValues(String userId, String validValue1GUID, String validValue2GUID, String associationDescription, int confidence, String steward, String notes, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.validValue1GUID - unique identifier of the valid value.validValue2GUID - unique identifier of the other valid value to link to.associationDescription - how are the valid values related?confidence - how confident is the steward that this mapping is correct (0-100).steward - identifier of stewardnotes - additional notes from the stewardmethodName - 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 unmapValidValues(String userId, String validValue1GUID, String validValue2GUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.validValue1GUID - unique identifier of the valid value.validValue2GUID - unique identifier of the other valid value 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 uservalidValueSetGUID - 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 uservalidValueGUID - 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<ValidValuesAssignmentConsumer> getValidValuesAssignmentConsumers(String userId, String validValueGUID, List<String> supportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling uservalidValueGUID - unique identifier of valid value to querysupportedZones - list of zones that define which assets can be retrieved.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<ValidValuesAssignmentDefinition> getValidValuesAssignmentDefinition(String userId, String referenceableGUID, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userreferenceableGUID - unique identifier of anchoring referenceablestartFrom - 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<ValidValueImplementationAsset> getValidValuesImplementationAssets(String userId, String validValueGUID, List<String> supportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling uservalidValueGUID - unique identifier of valid value to querysupportedZones - list of zones that define which assets can be retrieved.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<ValidValueMapping> getValidValueMappings(String userId, String validValueGUID, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling uservalidValueGUID - 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<ReferenceValueAssignedItem> getReferenceValueAssignedItems(String userId, String validValueGUID, List<String> supportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling uservalidValueGUID - unique identifier of valid value to querysupportedZones - list of zones that define which assets can be retrieved.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<ReferenceValueAssignment> getReferenceValueAssignments(String userId, String referenceableGUID, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userreferenceableGUID - unique identifier of assigned itemstartFrom - 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–2020 ODPi. All rights reserved.