Interface ValidValuesExchangeInterface
public interface ValidValuesExchangeInterface
The ValidValuesExchangeInterface supports the exchanges of valid values and reference data.
-
Method Summary
Modifier and TypeMethodDescriptionvoidattachValidValueToSet(String userId, String assetManagerGUID, String assetManagerName, String setGUID, String validValueGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Create a link between a valid value set or definition and a set.createValidValueDefinition(String userId, String setGUID, String assetManagerGUID, String assetManagerName, ExternalIdentifierProperties externalIdentifierProperties, ValidValueProperties validValueProperties) Create a new valid value definition.createValidValueSet(String userId, String assetManagerGUID, String assetManagerName, ExternalIdentifierProperties externalIdentifierProperties, ValidValueProperties validValueProperties) Create a new valid value set.voiddetachValidValueFromSet(String userId, String assetManagerGUID, String assetManagerName, String setGUID, String validValueGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Remove the link between a valid value and a set it is a member of.findValidValues(String userId, String assetManagerGUID, String assetManagerName, String searchString, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Locate valid values that match the search string.getSetsForValidValue(String userId, String assetManagerGUID, String assetManagerName, String validValueGUID, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Page through the list of valid value sets that a valid value definition/set belongs to.getValidValueByGUID(String userId, String assetManagerGUID, String assetManagerName, String validValueGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Retrieve a specific valid value from the repository.getValidValueByName(String userId, String assetManagerGUID, String assetManagerName, String validValueName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Retrieve a specific valid value from the repository.getValidValueSetMembers(String userId, String assetManagerGUID, String assetManagerName, String validValueSetGUID, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Page through the members of a valid value set.voidremoveValidValue(String userId, String assetManagerGUID, String assetManagerName, String validValueGUID, String validValueExternalIdentifier, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Remove the valid value form the repository.voidupdateValidValue(String userId, String assetManagerGUID, String assetManagerName, String validValueGUID, String validValueExternalIdentifier, boolean isMergeUpdate, ValidValueProperties validValueProperties, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Update the properties of the valid value.
-
Method Details
-
createValidValueSet
String createValidValueSet(String userId, String assetManagerGUID, String assetManagerName, ExternalIdentifierProperties externalIdentifierProperties, ValidValueProperties validValueProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new valid value set. This just creates the Set itself. Members are added either as they are created, or they can be attached to a set after they are created.- Parameters:
userId- calling userassetManagerGUID- unique identifier of software capability representing the callerassetManagerName- unique name of software capability representing the callerexternalIdentifierProperties- optional properties used to define an external identifiervalidValueProperties- properties to store- Returns:
- unique identifier for the new set
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
createValidValueDefinition
String createValidValueDefinition(String userId, String setGUID, String assetManagerGUID, String assetManagerName, ExternalIdentifierProperties externalIdentifierProperties, ValidValueProperties validValueProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new valid value definition.- Parameters:
userId- calling user.setGUID- unique identifier of the set to attach this to.assetManagerGUID- unique identifier of software capability representing the callerassetManagerName- unique name of software capability representing the callerexternalIdentifierProperties- optional properties used to define an external identifiervalidValueProperties- properties to store- Returns:
- unique identifier for the new definition
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
updateValidValue
void updateValidValue(String userId, String assetManagerGUID, String assetManagerName, String validValueGUID, String validValueExternalIdentifier, boolean isMergeUpdate, ValidValueProperties validValueProperties, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the properties of the valid value. All properties are updated. If only changing some if the properties, retrieve the current values from the repository and pass existing values back on this call if they are not to change.- Parameters:
userId- calling user.assetManagerGUID- unique identifier of software capability representing the callerassetManagerName- unique name of software capability representing the callervalidValueGUID- unique identifier of the valid value.validValueExternalIdentifier- unique identifier of the valid value in the external asset managerisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?validValueProperties- properties to storeeffectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
removeValidValue
void removeValidValue(String userId, String assetManagerGUID, String assetManagerName, String validValueGUID, String validValueExternalIdentifier, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the valid value form the repository. All links to it are deleted too.- Parameters:
userId- calling userassetManagerGUID- unique identifier of software capability representing the callerassetManagerName- unique name of software capability representing the callervalidValueGUID- unique identifier of the valid value.validValueExternalIdentifier- unique identifier of the valid value in the external asset managereffectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
attachValidValueToSet
void attachValidValueToSet(String userId, String assetManagerGUID, String assetManagerName, String setGUID, String validValueGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a link between a valid value set or definition and a set. This means the valid value is a member of the set.- Parameters:
userId- calling user.assetManagerGUID- unique identifier of software capability representing the callerassetManagerName- unique name of software capability representing the callersetGUID- unique identifier of the set.validValueGUID- unique identifier of the valid value to add to the set.effectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
detachValidValueFromSet
void detachValidValueFromSet(String userId, String assetManagerGUID, String assetManagerName, String setGUID, String validValueGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the link between a valid value and a set it is a member of.- Parameters:
userId- calling userassetManagerGUID- unique identifier of software capability representing the callerassetManagerName- unique name of software capability representing the callersetGUID- owning setvalidValueGUID- unique identifier of the member to be removed.effectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
getValidValueByGUID
ValidValueElement getValidValueByGUID(String userId, String assetManagerGUID, String assetManagerName, String validValueGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve a specific valid value from the repository.- Parameters:
userId- calling userassetManagerGUID- unique identifier of software capability representing the callerassetManagerName- unique name of software capability representing the callervalidValueGUID- unique identifier of the valid value.effectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- Valid value bean
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
getValidValueByName
List<ValidValueElement> getValidValueByName(String userId, String assetManagerGUID, String assetManagerName, String validValueName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve a specific valid value from the repository. Duplicates may be returned if multiple valid values have been assigned the same qualified name.- Parameters:
userId- calling userassetManagerGUID- unique identifier of software capability representing the callerassetManagerName- unique name of software capability representing the callervalidValueName- qualified name of the valid value.startFrom- starting element (used in paging through large result sets)pageSize- maximum number of results to returneffectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- Valid value beans
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
findValidValues
List<ValidValueElement> findValidValues(String userId, String assetManagerGUID, String assetManagerName, String searchString, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Locate valid values that match the search string. It considers the names, description, scope, usage and preferred value.- Parameters:
userId- calling userassetManagerGUID- unique identifier of software capability representing the callerassetManagerName- unique name of software capability representing the callersearchString- string value to look for - may contain RegEx characters.startFrom- paging starting pointpageSize- maximum number of return values.effectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- list of valid value beans
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
getValidValueSetMembers
List<ValidValueElement> getValidValueSetMembers(String userId, String assetManagerGUID, String assetManagerName, String validValueSetGUID, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Page through the members of a valid value set.- Parameters:
userId- calling user.assetManagerGUID- unique identifier of software capability representing the callerassetManagerName- unique name of software capability representing the callervalidValueSetGUID- unique identifier of the valid value set.startFrom- paging starting pointpageSize- maximum number of return values.effectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- list of valid value beans
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
getSetsForValidValue
List<ValidValueElement> getSetsForValidValue(String userId, String assetManagerGUID, String assetManagerName, String validValueGUID, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Page through the list of valid value sets that a valid value definition/set belongs to.- Parameters:
userId- calling user.assetManagerGUID- unique identifier of software capability representing the callerassetManagerName- unique name of software capability representing the callervalidValueGUID- unique identifier of valid value to querystartFrom- paging starting pointpageSize- maximum number of return values.effectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- list of valid value beans
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-