public class ValidValuesManager extends Object implements ManageValidValues
| Constructor and Description |
|---|
ValidValuesManager(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
ValidValuesManager(String serverName,
String serverPlatformURLRoot,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request and an audit log.
|
ValidValuesManager(String serverName,
String serverPlatformURLRoot,
DigitalArchitectureRESTClient restClient,
int maxPageSize,
AuditLog auditLog)
Create a new client that is going to be used in an OMAG Server (view service or integration service typically).
|
ValidValuesManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
ValidValuesManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assignReferenceValueToItem(String userId,
String validValueGUID,
String referenceableGUID,
int confidence,
String steward,
String notes)
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)
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)
Create a link between a valid value set or definition and a set.
|
void |
classifyAssetAsReferenceData(String userId,
String assetGUID)
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,
String typeName,
Map<String,Object> extendedProperties)
Create a new valid value definition.
|
String |
createValidValueSet(String userId,
String qualifiedName,
String displayName,
String description,
String usage,
String scope,
Map<String,String> additionalProperties,
String typeName,
Map<String,Object> extendedProperties)
Create a new valid value set.
|
void |
declassifyAssetAsReferenceData(String userId,
String assetGUID)
Remove the ReferenceData classification form an Asset.
|
void |
deleteValidValue(String userId,
String validValueGUID,
String qualifiedName)
Remove the valid value form the repository.
|
void |
detachValidValueFromSet(String userId,
String setGUID,
String validValueGUID)
Remove the link between a valid value and a set it is a member of.
|
List<ValidValueElement> |
findValidValues(String userId,
String searchString,
int startFrom,
int pageSize)
Locate valid values that match the search string.
|
List<ReferenceValueAssignmentItemElement> |
getReferenceValueAssignedItems(String userId,
String validValueGUID,
int startFrom,
int pageSize)
Page through the list of referenceables that have this valid value as a reference value.
|
List<ReferenceValueAssignmentDefinitionElement> |
getReferenceValueAssignments(String userId,
String referenceableGUID,
int startFrom,
int pageSize)
Page through the list of assigned reference values for a referenceable.
|
List<ValidValueElement> |
getSetsForValidValue(String userId,
String validValueGUID,
int startFrom,
int pageSize)
Page through the list of valid value sets that a valid value definition/set belongs to.
|
ValidValueElement |
getValidValueByGUID(String userId,
String validValueGUID)
Retrieve a specific valid value from the repository.
|
List<ValidValueElement> |
getValidValueByName(String userId,
String validValueName,
int startFrom,
int pageSize)
Retrieve a specific valid value from the repository.
|
List<ValidValueMappingElement> |
getValidValueMappings(String userId,
String validValueGUID,
int startFrom,
int pageSize)
Page through the list of mappings for a valid value.
|
List<ValidValueAssignmentConsumerElement> |
getValidValuesAssignmentConsumers(String userId,
String validValueGUID,
int startFrom,
int pageSize)
Page through the list of consumers for a valid value.
|
List<ValidValueAssignmentDefinitionElement> |
getValidValuesAssignmentDefinition(String userId,
String referenceableGUID,
int startFrom,
int pageSize)
Page through the list of valid values assigned to referenceable element.
|
List<ValidValueElement> |
getValidValueSetMembers(String userId,
String validValueSetGUID,
int startFrom,
int pageSize)
Page through the members of a valid value set.
|
List<ValidValueImplAssetElement> |
getValidValuesImplementationAssets(String userId,
String validValueGUID,
int startFrom,
int pageSize)
Page through the list of implementations for a valid value.
|
List<ValidValueImplDefinitionElement> |
getValidValuesImplementationDefinitions(String userId,
String assetGUID,
int startFrom,
int pageSize)
Page through the list of valid values defining the content of a reference data asset.
|
List<ValidValuesMappingElement> |
getValidValuesMappings(String userId,
String validValueGUID,
int startFrom,
int pageSize)
Page through the list of mapping relationships associated with a valid value.
|
void |
linkValidValueToImplementation(String userId,
String validValueGUID,
String assetGUID,
String symbolicName,
String implementationValue,
Map<String,String> additionalValues)
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)
Link together 2 valid values from different sets that have equivalent values/meanings.
|
void |
unassignReferenceValueFromItem(String userId,
String validValueGUID,
String referenceableGUID)
Remove the reference value link between a valid value and a referenceable (item).
|
void |
unassignValidValueFromConsumer(String userId,
String validValueGUID,
String consumerGUID)
Remove the link between a valid value and a consumer.
|
void |
unlinkValidValueFromImplementation(String userId,
String validValueGUID,
String assetGUID)
Remove the link between a valid value and an implementing asset.
|
void |
unmapValidValues(String userId,
String validValue1GUID,
String validValue2GUID)
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,
String typeName,
Map<String,Object> extendedProperties)
Update the properties of the valid value.
|
public ValidValuesManager(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public ValidValuesManager(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public ValidValuesManager(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public ValidValuesManager(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public ValidValuesManager(String serverName, String serverPlatformURLRoot, DigitalArchitectureRESTClient restClient, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversrestClient - client that issues the REST API callsmaxPageSize - maximum number of results supported by this serverauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public String createValidValueSet(String userId, String qualifiedName, String displayName, String description, String usage, String scope, Map<String,String> additionalProperties, String typeName, Map<String,Object> extendedProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createValidValueSet in interface ManageValidValuesuserId - 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.typeName - name of subtype of the definition (or null to use the standard open type)extendedProperties - properties that need to be populated into a subtype (or null for the standard open type).InvalidParameterException - 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, String typeName, Map<String,Object> extendedProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createValidValueDefinition in interface ManageValidValuesuserId - 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.preferredValue - the value that should be used in an implementation if possible.additionalProperties - additional properties for this definition.typeName - name of subtype of the definition (or null to use the standard open type)extendedProperties - properties that need to be populated into a subtype (or null for the standard open type).InvalidParameterException - 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, String typeName, Map<String,Object> extendedProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateValidValue in interface ManageValidValuesuserId - 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 this value deprecated?additionalProperties - additional properties for this valid value.typeName - name of subtype of the definition (or null to use the standard open type)extendedProperties - properties that need to be populated into a subtype.InvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
deleteValidValue in interface ManageValidValuesuserId - 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.InvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
attachValidValueToSet in interface ManageValidValuesuserId - calling user.setGUID - unique identifier of the set.validValueGUID - unique identifier of the valid value to add to the set.InvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
detachValidValueFromSet in interface ManageValidValuesuserId - calling usersetGUID - owning setvalidValueGUID - unique identifier of the member to be removed.InvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
linkValidValueToImplementation in interface ManageValidValuesuserId - 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 nameInvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
classifyAssetAsReferenceData in interface ManageValidValuesuserId - calling user.assetGUID - unique identifier of the asset that contains reference data.InvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
unlinkValidValueFromImplementation in interface ManageValidValuesuserId - calling user.validValueGUID - unique identifier of the valid value.assetGUID - unique identifier of the asset that used to implement the valid value.InvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
declassifyAssetAsReferenceData in interface ManageValidValuesuserId - calling user.assetGUID - unique identifier of asset.InvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
assignValidValueToConsumer in interface ManageValidValuesuserId - 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.InvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
unassignValidValueFromConsumer in interface ManageValidValuesuserId - calling user.validValueGUID - unique identifier of the valid value.consumerGUID - unique identifier of the element to remove the link from.InvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
assignReferenceValueToItem in interface ManageValidValuesuserId - 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 stewardInvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
unassignReferenceValueFromItem in interface ManageValidValuesuserId - calling user.validValueGUID - unique identifier of the valid value.referenceableGUID - unique identifier of the element to remove the link from.InvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
mapValidValues in interface ManageValidValuesuserId - 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 stewardInvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
unmapValidValues in interface ManageValidValuesuserId - calling user.validValue1GUID - unique identifier of the valid value.validValue2GUID - unique identifier of the other valid value element to remove the link from.InvalidParameterException - 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 ValidValueElement getValidValueByGUID(String userId, String validValueGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getValidValueByGUID in interface ManageValidValuesuserId - calling uservalidValueGUID - unique identifier of the valid value.InvalidParameterException - 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<ValidValueElement> getValidValueByName(String userId, String validValueName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getValidValueByName in interface ManageValidValuesuserId - calling uservalidValueName - qualified name of the valid value.startFrom - paging starting pointpageSize - maximum number of return values.InvalidParameterException - 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<ValidValueElement> findValidValues(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findValidValues in interface ManageValidValuesuserId - calling usersearchString - string value to look for - may contain RegEx characters.startFrom - paging starting pointpageSize - maximum number of return values.InvalidParameterException - 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<ValidValueElement> getValidValueSetMembers(String userId, String validValueSetGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getValidValueSetMembers in interface ManageValidValuesuserId - calling user.validValueSetGUID - unique identifier of the valid value set.startFrom - paging starting pointpageSize - maximum number of return values.InvalidParameterException - 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<ValidValueElement> getSetsForValidValue(String userId, String validValueGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getSetsForValidValue in interface ManageValidValuesuserId - calling user.validValueGUID - unique identifier of valid value to querystartFrom - paging starting pointpageSize - maximum number of return values.InvalidParameterException - 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<ValidValueAssignmentConsumerElement> getValidValuesAssignmentConsumers(String userId, String validValueGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getValidValuesAssignmentConsumers in interface ManageValidValuesuserId - calling user.validValueGUID - unique identifier of valid value to querystartFrom - paging starting pointpageSize - maximum number of return values.InvalidParameterException - 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<ValidValueAssignmentDefinitionElement> getValidValuesAssignmentDefinition(String userId, String referenceableGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getValidValuesAssignmentDefinition in interface ManageValidValuesuserId - calling userreferenceableGUID - unique identifier of anchoring referenceablestartFrom - paging starting pointpageSize - maximum number of return values.InvalidParameterException - 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<ValidValueImplAssetElement> getValidValuesImplementationAssets(String userId, String validValueGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getValidValuesImplementationAssets in interface ManageValidValuesuserId - calling user.validValueGUID - unique identifier of valid value to querystartFrom - paging starting pointpageSize - maximum number of return values.InvalidParameterException - 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<ValidValueImplDefinitionElement> getValidValuesImplementationDefinitions(String userId, String assetGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getValidValuesImplementationDefinitions in interface ManageValidValuesuserId - calling userassetGUID - unique identifier of asset to querystartFrom - paging starting pointpageSize - maximum number of return values.InvalidParameterException - 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<ValidValueMappingElement> getValidValueMappings(String userId, String validValueGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getValidValueMappings in interface ManageValidValuesuserId - calling uservalidValueGUID - unique identifier of valid value to querystartFrom - paging starting pointpageSize - maximum number of return values.InvalidParameterException - 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<ValidValuesMappingElement> getValidValuesMappings(String userId, String validValueGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getValidValuesMappings in interface ManageValidValuesuserId - calling uservalidValueGUID - unique identifier of valid value to querystartFrom - paging starting pointpageSize - maximum number of return values.InvalidParameterException - 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<ReferenceValueAssignmentItemElement> getReferenceValueAssignedItems(String userId, String validValueGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getReferenceValueAssignedItems in interface ManageValidValuesuserId - calling uservalidValueGUID - unique identifier of valid value to querystartFrom - paging starting pointpageSize - maximum number of return values.InvalidParameterException - 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<ReferenceValueAssignmentDefinitionElement> getReferenceValueAssignments(String userId, String referenceableGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getReferenceValueAssignments in interface ManageValidValuesuserId - calling userreferenceableGUID - unique identifier of assigned itemstartFrom - paging starting pointpageSize - maximum number of return values.InvalidParameterException - 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.