Class ValidValuesHandler<VALID_VALUE,VALID_VALUE_ASSIGNMENT,VALID_VALUE_ASSIGNMENT_DEF,VALID_VALUE_IMPLEMENTATION,VALID_VALUE_IMPLEMENTATION_DEF,VALID_VALUE_MAPPING,REFERENCE_VALUE_ASSIGNMENT,REFERENCE_VALUE_ASSIGNED_ITEM>
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler<VALID_VALUE>
-
- org.odpi.openmetadata.commonservices.generichandlers.ValidValuesHandler<VALID_VALUE,VALID_VALUE_ASSIGNMENT,VALID_VALUE_ASSIGNMENT_DEF,VALID_VALUE_IMPLEMENTATION,VALID_VALUE_IMPLEMENTATION_DEF,VALID_VALUE_MAPPING,REFERENCE_VALUE_ASSIGNMENT,REFERENCE_VALUE_ASSIGNED_ITEM>
-
public class ValidValuesHandler<VALID_VALUE,VALID_VALUE_ASSIGNMENT,VALID_VALUE_ASSIGNMENT_DEF,VALID_VALUE_IMPLEMENTATION,VALID_VALUE_IMPLEMENTATION_DEF,VALID_VALUE_MAPPING,REFERENCE_VALUE_ASSIGNMENT,REFERENCE_VALUE_ASSIGNED_ITEM> extends ReferenceableHandler<VALID_VALUE>
ValidValuesHandler provides the methods to create and maintain lists of valid value definitions grouped into a valid value set. Both valid value definitions and valid value sets have the same attributes and so inherit from ValidValue where all of the attributes are defined.A set is just grouping of valid values. Valid value definitions and set can be nested many times in other valid value sets.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones
-
-
Constructor Summary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignReferenceValueToItem(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String referenceableGUID, int confidence, String steward, String notes, Date effectiveFrom, Date effectiveTo, 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.voidassignValidValueToConsumer(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String consumerGUID, boolean strictRequirement, Date effectiveFrom, Date effectiveTo, String methodName)Link a valid value typically to a schema element or glossary term to show that it uses the valid values.voidattachValidValueToSet(String userId, String externalSourceGUID, String externalSourceName, String setGUID, String validValueGUID, Date effectiveFrom, Date effectiveTo, String methodName)Create a link between a valid value set or definition and a set.StringcreateValidValueDefinition(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, Date effectiveFrom, Date effectiveTo, String methodName)Create a new valid value definition.StringcreateValidValueSet(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, Date effectiveFrom, Date effectiveTo, String methodName)Create a new valid value set.voiddeleteValidValue(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String qualifiedName, String methodName)Remove the valid value form the repository.voiddetachValidValueFromSet(String userId, String externalSourceGUID, String externalSourceName, String setGUID, String validValueGUID, Date effectiveTime, String methodName)Remove the link between a valid value and a set it is a member of.List<VALID_VALUE>findValidValues(String userId, String searchString, String searchStringParameterName, int startFrom, int pageSize, Date effectiveTime, String methodName)Locate valid values that match the search string.List<REFERENCE_VALUE_ASSIGNED_ITEM>getReferenceValueAssignedItems(String userId, String validValueGUID, String validValueGUIDParameter, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName)Page through the list of referenceables that have this valid value as a reference value.List<REFERENCE_VALUE_ASSIGNMENT>getReferenceValueAssignments(String userId, String referenceableGUID, String referenceableGUIDParameterName, int startFrom, int pageSize, Date effectiveTime, String methodName)Page through the list of assigned reference values for a referenceable.List<VALID_VALUE>getSetsForValidValue(String userId, String validValueGUID, String validValueGUIDParameter, int startFrom, int pageSize, Date effectiveTime, String methodName)Page through the list of valid value sets that a valid value definition/set belongs to.VALID_VALUEgetValidValueByGUID(String userId, String validValueGUID, Date effectiveTime, String methodName)Retrieve a specific valid value from the repository.List<VALID_VALUE>getValidValueByName(String userId, String name, String nameParameterName, int startFrom, int pageSize, Date effectiveTime, String methodName)Retrieve a specific valid value from the repository.List<VALID_VALUE_MAPPING>getValidValueMappings(String userId, String validValueGUID, String validValueGUIDParameter, int startFrom, int pageSize, Date effectiveTime, String methodName)Page through the list of mappings for a valid value.List<VALID_VALUE_ASSIGNMENT>getValidValuesAssignmentConsumers(String userId, String validValueGUID, String validValueGUIDParameter, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName)Page through the list of consumers for a valid value.List<VALID_VALUE_ASSIGNMENT_DEF>getValidValuesAssignmentDefinition(String userId, String referenceableGUID, String referenceableGUIDParameter, int startFrom, int pageSize, Date effectiveTime, String methodName)Page through the list of valid values assigned to referenceable element.List<VALID_VALUE>getValidValueSetMembers(String userId, String validValueSetGUID, String validValueSetGUIDParameter, int startFrom, int pageSize, Date effectiveTime, String methodName)Page through the members of a valid value set.List<VALID_VALUE_IMPLEMENTATION>getValidValuesImplementationAssets(String userId, String validValueGUID, String validValueGUIDParameter, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName)Page through the list of implementations for a valid value.List<VALID_VALUE_IMPLEMENTATION_DEF>getValidValuesImplementationDefinitions(String userId, String assetGUID, String assetGUIDParameter, int startFrom, int pageSize, Date effectiveTime, String methodName)Page through the list of valid values defining the content of a reference data asset.voidlinkValidValueToImplementation(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String assetGUID, String symbolicName, String implementationValue, Map<String,String> additionalValues, Date effectiveFrom, Date effectiveTo, String methodName)Link a valid value to an asset that provides the implementation.voidmapValidValues(String userId, String externalSourceGUID, String externalSourceName, String validValue1GUID, String validValue2GUID, String associationDescription, int confidence, String steward, String notes, Date effectiveFrom, Date effectiveTo, String methodName)Link together 2 valid values from different sets that have equivalent values/meanings.voidunassignReferenceValueFromItem(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String referenceableGUID, Date effectiveTime, String methodName)Remove the reference value link between a valid value and a referenceable (item).voidunassignValidValueFromConsumer(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String consumerGUID, Date effectiveTime, String methodName)Remove the link between a valid value and a consumer.voidunlinkValidValueFromImplementation(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String assetGUID, Date effectiveTime, String methodName)Remove the link between a valid value and an implementing asset.voidunmapValidValues(String userId, String externalSourceGUID, String externalSourceName, String validValue1GUID, String validValue2GUID, Date effectiveTime, String methodName)Remove the reference value link between a valid value and a referenceable (item).voidupdateValidValue(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String qualifiedName, String displayName, String description, String usage, String scope, String preferredValue, boolean isDeprecated, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, Date effectiveFrom, Date effectiveTo, String methodName)Update the properties of the valid value.-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler
addOwner, addSecurityTags, addTemplateClassification, clearBusinessSignificant, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getCollectionMembers, getEntityByUniqueQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, linkElementsAsPeerDuplicates, removeOwner, removeResourceListMember, removeSecurityTags, removeSemanticAssignment, removeTemplateClassification, saveResourceListMember, saveSemanticAssignment, saveSemanticAssignment, setBusinessSignificant, setVendorProperties, unlinkElementsAsPeerDuplicates
-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
addAnchorsClassification, archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteAnchoredEntity, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteRelationship, entityMatchSearchCriteria, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, findEntities, getAllAttachmentLinks, getAnchorGUIDFromAnchorsClassification, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntitiesFromUser, getAttachedEntity, getAttachedEntity, getAttachedEntity, getAttachedEntityFromUser, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachmentLink, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEffectiveTime, getEffectiveTime, getEntitiesByIntValue, getEntitiesByType, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getTypeDefByName, getUniqueAttachmentLink, getUniqueAttachmentLink, isBeanIsolated, isEntityATypeOf, linkElementToElement, linkElementToElement, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, multiLinkElementToElement, regexSearchCriteria, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, validateUniqueProperty, verifyExternalSourceIdentity
-
-
-
-
Constructor Detail
-
ValidValuesHandler
public ValidValuesHandler(OpenMetadataAPIGenericConverter<VALID_VALUE> converter, Class<VALID_VALUE> beanClass, OpenMetadataAPIGenericConverter<VALID_VALUE_ASSIGNMENT> validValueAssignmentConverter, Class<VALID_VALUE_ASSIGNMENT> validValueAssignmentClass, OpenMetadataAPIGenericConverter<VALID_VALUE_ASSIGNMENT_DEF> validValueAssignmentDefConverter, Class<VALID_VALUE_ASSIGNMENT_DEF> validValueAssignmentDefClass, OpenMetadataAPIGenericConverter<VALID_VALUE_IMPLEMENTATION> validValueImplementationConverter, Class<VALID_VALUE_IMPLEMENTATION> validValueImplementationClass, OpenMetadataAPIGenericConverter<VALID_VALUE_IMPLEMENTATION_DEF> validValueImplementationDefConverter, Class<VALID_VALUE_IMPLEMENTATION_DEF> validValueImplementationDefClass, OpenMetadataAPIGenericConverter<VALID_VALUE_MAPPING> validValueMappingConverter, Class<VALID_VALUE_MAPPING> validValueMappingClass, OpenMetadataAPIGenericConverter<REFERENCE_VALUE_ASSIGNMENT> referenceValueAssignmentConverter, Class<REFERENCE_VALUE_ASSIGNMENT> referenceValueAssignmentClass, OpenMetadataAPIGenericConverter<REFERENCE_VALUE_ASSIGNED_ITEM> referenceValueAssignedItemConverter, Class<REFERENCE_VALUE_ASSIGNED_ITEM> referenceValueAssignedItemClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)
Construct the handler information needed to interact with the repository services- Parameters:
converter- specific converter for the VALID_VALUE bean classbeanClass- name of bean class that is represented by the generic class VALID_VALUEvalidValueAssignmentConverter- specific converter for the VALID_VALUE_ASSIGNMENT bean classvalidValueAssignmentClass- name of bean class that is represented by the generic class VALID_VALUE_ASSIGNMENTvalidValueAssignmentDefConverter- specific converter for the VALID_VALUE_ASSIGNMENT_DEF bean classvalidValueAssignmentDefClass- name of bean class that is represented by the generic class VALID_VALUE_ASSIGNMENT_DEFvalidValueImplementationConverter- specific converter for the VALID_VALUE_IMPLEMENTATION bean classvalidValueImplementationClass- name of bean class that is represented by the generic class VALID_VALUE_IMPLEMENTATIONvalidValueImplementationDefConverter- specific converter for the VALID_VALUE_IMPLEMENTATION_DEF bean classvalidValueImplementationDefClass- name of bean class that is represented by the generic class VALID_VALUE_IMPLEMENTATION_DEFvalidValueMappingConverter- specific converter for the VALID_VALUE_MAPPING bean classvalidValueMappingClass- name of bean class that is represented by the generic class VALID_VALUE_MAPPINGreferenceValueAssignmentConverter- specific converter for the REFERENCE_VALUE_ASSIGNMENT bean classreferenceValueAssignmentClass- name of bean class that is represented by the generic class REFERENCE_VALUE_ASSIGNMENTreferenceValueAssignedItemConverter- specific converter for the REFERENCE_VALUE_ASSIGNED_ITEM bean classreferenceValueAssignedItemClass- name of bean class that is represented by the generic class REFERENCE_VALUE_ASSIGNED_ITEMserviceName- 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 objectslocalServerUserId- userId for this serversecurityVerifier- open metadata security services verifiersupportedZones- list of zones that the access service is allowed to serve Asset instances from.defaultZones- list of zones that the access service should set in all new Asset instances.publishZones- list of zones that the access service sets up in published Asset instances.auditLog- destination for audit log events.
-
-
Method Detail
-
createValidValueSet
public String createValidValueSet(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, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, 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 user.externalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- 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.effectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Returns:
- unique identifier for the new set
- Throws:
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.
-
createValidValueDefinition
public String createValidValueDefinition(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, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new valid value definition.- Parameters:
userId- calling user.externalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- 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.effectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Returns:
- unique identifier for the new definition
- Throws:
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.
-
updateValidValue
public void updateValidValue(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String qualifiedName, String displayName, String description, String usage, String scope, String preferredValue, boolean isDeprecated, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, 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.externalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcevalidValueGUID- 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.effectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Throws:
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.
-
deleteValidValue
public void deleteValidValue(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String qualifiedName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the valid value form the repository. All links to it are deleted too.- Parameters:
userId- calling userexternalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcevalidValueGUID- 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 method- Throws:
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.
-
attachValidValueToSet
public void attachValidValueToSet(String userId, String externalSourceGUID, String externalSourceName, String setGUID, String validValueGUID, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, 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.externalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcesetGUID- unique identifier of the set.validValueGUID- unique identifier of the valid value to add to the set.effectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Throws:
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.
-
detachValidValueFromSet
public void detachValidValueFromSet(String userId, String externalSourceGUID, String externalSourceName, String setGUID, String validValueGUID, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the link between a valid value and a set it is a member of.- Parameters:
userId- calling userexternalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcesetGUID- owning setvalidValueGUID- unique identifier of the member to be removed.effectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Throws:
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.
-
linkValidValueToImplementation
public void linkValidValueToImplementation(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String assetGUID, String symbolicName, String implementationValue, Map<String,String> additionalValues, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link a valid value to an asset that provides the implementation. Typically this method is used to link a valid value set to a code table.- Parameters:
userId- calling user.externalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcevalidValueGUID- 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 nameeffectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Throws:
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.
-
unlinkValidValueFromImplementation
public void unlinkValidValueFromImplementation(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String assetGUID, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the link between a valid value and an implementing asset.- Parameters:
userId- calling user.externalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcevalidValueGUID- unique identifier of the valid value.assetGUID- unique identifier of the asset that used to implement the valid value.effectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Throws:
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.
-
assignValidValueToConsumer
public void assignValidValueToConsumer(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String consumerGUID, boolean strictRequirement, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link a valid value typically to a schema element or glossary term to show that it uses the valid values.- Parameters:
userId- calling user.externalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcevalidValueGUID- 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.effectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Throws:
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.
-
unassignValidValueFromConsumer
public void unassignValidValueFromConsumer(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String consumerGUID, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the link between a valid value and a consumer.- Parameters:
userId- calling user.externalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcevalidValueGUID- unique identifier of the valid value.consumerGUID- unique identifier of the element to remove the link from.effectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Throws:
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.
-
assignReferenceValueToItem
public void assignReferenceValueToItem(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String referenceableGUID, int confidence, String steward, String notes, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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.- Parameters:
userId- calling user.externalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcevalidValueGUID- 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 stewardeffectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Throws:
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.
-
unassignReferenceValueFromItem
public void unassignReferenceValueFromItem(String userId, String externalSourceGUID, String externalSourceName, String validValueGUID, String referenceableGUID, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the reference value link between a valid value and a referenceable (item).- Parameters:
userId- calling user.externalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcevalidValueGUID- unique identifier of the valid value.referenceableGUID- unique identifier of the element to remove the link from.effectiveTime- time that the retrieved elements must be effective formethodName- calling method- Throws:
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.
-
mapValidValues
public void mapValidValues(String userId, String externalSourceGUID, String externalSourceName, String validValue1GUID, String validValue2GUID, String associationDescription, int confidence, String steward, String notes, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link together 2 valid values from different sets that have equivalent values/meanings.- Parameters:
userId- calling user.externalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcevalidValue1GUID- 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 stewardeffectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Throws:
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.
-
unmapValidValues
public void unmapValidValues(String userId, String externalSourceGUID, String externalSourceName, String validValue1GUID, String validValue2GUID, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the reference value link between a valid value and a referenceable (item).- Parameters:
userId- calling user.externalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcevalidValue1GUID- unique identifier of the valid value.validValue2GUID- unique identifier of the other valid value element to remove the link from.effectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Throws:
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.
-
getValidValueByGUID
public VALID_VALUE getValidValueByGUID(String userId, String validValueGUID, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve a specific valid value from the repository.- Parameters:
userId- calling uservalidValueGUID- unique identifier of the valid value.effectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName- calling method- Returns:
- Valid value bean
- Throws:
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.
-
getValidValueByName
public List<VALID_VALUE> getValidValueByName(String userId, String name, String nameParameterName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, 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 username- name to search for - this must be an exact match on the display name or qualified namenameParameterName- property that provided the namestartFrom- starting element (used in paging through large result sets)pageSize- maximum number of results to returneffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- Valid value beans
- Throws:
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.
-
findValidValues
public List<VALID_VALUE> findValidValues(String userId, String searchString, String searchStringParameterName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Locate valid values that match the search string. It considers the names, description, scope, usage and preferred value.- Parameters:
userId- calling usersearchString- string value to look for - may contain RegEx characters.searchStringParameterName- name of parameter providing search stringstartFrom- paging starting pointpageSize- maximum number of return values.effectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- list of valid value beans
- Throws:
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.
-
getValidValueSetMembers
public List<VALID_VALUE> getValidValueSetMembers(String userId, String validValueSetGUID, String validValueSetGUIDParameter, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Page through the members of a valid value set.- Parameters:
userId- calling uservalidValueSetGUID- unique identifier of the valid value setvalidValueSetGUIDParameter- name of parameter providing the validValueSetGUIDstartFrom- paging starting pointpageSize- maximum number of return values.effectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- list of valid value beans
- Throws:
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.
-
getSetsForValidValue
public List<VALID_VALUE> getSetsForValidValue(String userId, String validValueGUID, String validValueGUIDParameter, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Page through the list of valid value sets that a valid value definition/set belongs to.- Parameters:
userId- calling uservalidValueGUID- unique identifier of valid value to queryvalidValueGUIDParameter- parameter name providing the validValueGUIDstartFrom- paging starting pointpageSize- maximum number of return values.effectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- list of valid value beans
- Throws:
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.
-
getValidValuesAssignmentConsumers
public List<VALID_VALUE_ASSIGNMENT> getValidValuesAssignmentConsumers(String userId, String validValueGUID, String validValueGUIDParameter, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Page through the list of consumers for a valid value.- Parameters:
userId- calling uservalidValueGUID- unique identifier of valid value to queryvalidValueGUIDParameter- parameter name for validValueGUIDserviceSupportedZones- list of zones that define which assets can be retrieved.startFrom- paging starting pointpageSize- maximum number of return values.effectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- list of valid value consumer beans
- Throws:
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.
-
getValidValuesAssignmentDefinition
public List<VALID_VALUE_ASSIGNMENT_DEF> getValidValuesAssignmentDefinition(String userId, String referenceableGUID, String referenceableGUIDParameter, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Page through the list of valid values assigned to referenceable element.- Parameters:
userId- calling userreferenceableGUID- unique identifier of anchoring referenceablereferenceableGUIDParameter- name of parameter for referenceableGUIDstartFrom- paging starting pointpageSize- maximum number of return values.effectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- list of valid value consumer beans
- Throws:
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.
-
getValidValuesImplementationAssets
public List<VALID_VALUE_IMPLEMENTATION> getValidValuesImplementationAssets(String userId, String validValueGUID, String validValueGUIDParameter, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Page through the list of implementations for a valid value.- Parameters:
userId- calling uservalidValueGUID- unique identifier of valid value to queryvalidValueGUIDParameter- parameter supplying the validValueGUID valueserviceSupportedZones- list of zones that define which assets can be retrieved.startFrom- paging starting pointpageSize- maximum number of return values.effectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- list of valid value beans
- Throws:
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.
-
getValidValuesImplementationDefinitions
public List<VALID_VALUE_IMPLEMENTATION_DEF> getValidValuesImplementationDefinitions(String userId, String assetGUID, String assetGUIDParameter, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Page through the list of valid values defining the content of a reference data asset. This is always called from the assetHandler after it has checked that the asset is in the right zone.- Parameters:
userId- calling userassetGUID- unique identifier of asset to queryassetGUIDParameter- parameter providing the assetGUID valuestartFrom- paging starting pointpageSize- maximum number of return values.effectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- list of valid value beans
- Throws:
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.
-
getValidValueMappings
public List<VALID_VALUE_MAPPING> getValidValueMappings(String userId, String validValueGUID, String validValueGUIDParameter, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Page through the list of mappings for a valid value. These are other valid values from different valid value sets that are equivalent in some way. The association description covers the type of association.- Parameters:
userId- calling uservalidValueGUID- unique identifier of valid value to queryvalidValueGUIDParameter- name of parameter supplying the validValueGUIDstartFrom- paging starting pointpageSize- maximum number of return values.effectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- list of mappings to other valid value beans
- Throws:
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.
-
getReferenceValueAssignedItems
public List<REFERENCE_VALUE_ASSIGNED_ITEM> getReferenceValueAssignedItems(String userId, String validValueGUID, String validValueGUIDParameter, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Page through the list of referenceables that have this valid value as a reference value.- Parameters:
userId- calling uservalidValueGUID- unique identifier of valid value to queryvalidValueGUIDParameter- name of parameter that provides the validValueGUID valueserviceSupportedZones- list of zones that define which assets can be retrievedstartFrom- paging starting pointpageSize- maximum number of return valueseffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- list of referenceable beans
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to make this requestPropertyServerException- the repository is not available or not working properly
-
getReferenceValueAssignments
public List<REFERENCE_VALUE_ASSIGNMENT> getReferenceValueAssignments(String userId, String referenceableGUID, String referenceableGUIDParameterName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Page through the list of assigned reference values for a referenceable.- Parameters:
userId- calling userreferenceableGUID- unique identifier of assigned itemreferenceableGUIDParameterName- name of parameter for referenceableGUIDstartFrom- paging starting pointpageSize- maximum number of return values.effectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- list of valid value beans
- Throws:
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.
-
-