public interface OMRSRepositoryValidator
| Modifier and Type | Method and Description |
|---|---|
int |
countMatchingHeaderPropertyValues(InstanceProperties matchProperties,
InstanceAuditHeader instanceHeader,
InstanceProperties instanceProperties)
Count the number of matching property values that an instance has.
|
int |
countMatchingPropertyValues(InstanceProperties matchProperties,
InstanceProperties instanceProperties)
Count the number of matching property values that an instance has.
|
String |
getStringFromPropertyValue(InstancePropertyValue instancePropertyValue)
Return the string form of a property value.
|
String |
getStringValuesFromInstancePropertiesAsArray(InstanceProperties instanceProperties)
Return the string form of the instance properties.
|
String |
getStringValuesFromInstancePropertiesAsMap(InstanceProperties instanceProperties)
Return the string form of the instance properties.
|
String |
getStringValuesFromInstancePropertiesAsStruct(InstanceProperties instanceProperties)
Return the string form of the instance properties.
|
AttributeTypeDef |
getValidAttributeTypeDefFromIds(String sourceName,
String guidParameterName,
String nameParameterName,
String guid,
String name,
String methodName)
Validate that an AttributeTypeDef's identifiers are not null and are recognized
and return the type.
|
TypeDef |
getValidTypeDefFromIds(String sourceName,
String guidParameterName,
String nameParameterName,
String guid,
String name,
String methodName)
Validate that a TypeDef's identifiers are not null and return the type.
|
boolean |
isActiveType(String sourceName,
String typeGUID,
String typeName)
Return boolean indicating whether the TypeDef/AttributeTypeDef is in use in the repository.
|
boolean |
isActiveTypeId(String sourceName,
String typeGUID)
Return boolean indicating whether the TypeDef/AttributeTypeDef is in use in the repository.
|
boolean |
isATypeOf(String sourceName,
InstanceAuditHeader instance,
String typeName,
String localMethodName)
Returns a boolean indicating that the instance is of the supplied type.
|
boolean |
isKnownType(String sourceName,
String typeGUID,
String typeName)
Return boolean indicating whether the TypeDef/AttributeTypeDef is in use in the repository.
|
boolean |
isKnownTypeId(String sourceName,
String typeGUID)
Return boolean indicating whether the TypeDef/AttributeTypeDef is in use in the repository.
|
boolean |
isOpenType(String sourceName,
String typeGUID,
String typeName)
Return boolean indicating whether the TypeDef is one of the open metadata types.
|
boolean |
isOpenTypeId(String sourceName,
String typeGUID)
Return boolean indicating whether the TypeDef is one of the open metadata types.
|
void |
validateActiveType(String sourceName,
String typeParameterName,
TypeDefSummary typeDefSummary,
TypeDefCategory category,
String methodName)
Validate that the supplied type is a valid active type.
|
void |
validateAsOfTime(String sourceName,
String parameterName,
Date asOfTime,
String methodName)
Validate that the asOfTime parameter is not for the future.
|
void |
validateAsOfTimeNotNull(String sourceName,
String parameterName,
Date asOfTime,
String methodName)
Validate that the asOfTime parameter is not null or for the future.
|
void |
validateAtMostOneEntityResult(List<EntityDetail> findResults,
String typeName,
String serviceName,
String methodName)
Validate that either zero or one entities were returned from a find request.
|
void |
validateAtMostOneRelationshipResult(List<Relationship> findResults,
String typeName,
String serviceName,
String methodName)
Validate that either zero or one relationships were returned from a find request.
|
void |
validateAttributeTypeDef(String sourceName,
String parameterName,
AttributeTypeDef attributeTypeDef,
String methodName)
Validate the content of a new AttributeTypeDef.
|
void |
validateAttributeTypeDefCategory(String sourceName,
String nameParameterName,
AttributeTypeDefCategory category,
String methodName)
Validate that a AttributeTypeDef's category is not null.
|
void |
validateAttributeTypeDefIds(String sourceName,
String guidParameterName,
String nameParameterName,
String guid,
String name,
String methodName)
Validate that an AttributeTypeDef's identifiers are not null.
|
void |
validateClassification(String sourceName,
String classificationParameterName,
String classificationName,
String entityTypeName,
String methodName)
Validate that a classification is valid for the entity.
|
void |
validateClassificationList(String sourceName,
String parameterName,
List<Classification> classifications,
String entityTypeName,
String methodName)
Validate that a classification is valid for the entity.
|
TypeDef |
validateClassificationName(String sourceName,
String parameterName,
String classificationName,
String methodName)
Validate that a classification name is not null.
|
void |
validateClassificationProperties(String sourceName,
String classificationName,
String propertiesParameterName,
InstanceProperties classificationProperties,
String methodName)
Validate that a classification is valid for the entity.
|
void |
validateEnterpriseAttributeTypeDefs(String sourceName,
List<AttributeTypeDef> attributeTypeDefs,
String methodName)
Return a boolean flag indicating whether the list of TypeDefs passed are compatible with the
all known typedefs.
|
void |
validateEnterpriseTypeDefs(String sourceName,
List<TypeDef> typeDefs,
String methodName)
Return a boolean flag indicating whether the list of TypeDefs passed are compatible with the
all known typedefs.
|
void |
validateEntityCanBeRehomed(String sourceName,
String metadataCollectionId,
InstanceHeader instance,
String methodName)
Verify that an entity instance can be rehomed by the metadataCollection.
|
void |
validateEntityCanBeUpdated(String sourceName,
String metadataCollectionId,
InstanceHeader instance,
String methodName)
Verify that an entity instance can be updated by the metadataCollection.
|
void |
validateEntityFromStore(String sourceName,
String guid,
EntityDetail entity,
String methodName)
Verify that an entity has been successfully retrieved from the repository and has valid contents.
|
void |
validateEntityFromStore(String sourceName,
String guid,
EntitySummary entity,
String methodName)
Verify that an entity has been successfully retrieved from the repository and has valid contents.
|
void |
validateEntityIsDeleted(String sourceName,
InstanceHeader instance,
String methodName)
Verify the status of an entity to check it has been deleted.
|
void |
validateEntityIsNotDeleted(String sourceName,
InstanceHeader instance,
String methodName)
Verify the status of an entity to check it has not been deleted.
|
void |
validateEntityProxy(String sourceName,
String localMetadataCollectionId,
String proxyParameterName,
EntityProxy entityProxy,
String methodName)
Validates an entity proxy.
|
void |
validateExternalId(String sourceName,
String standard,
String organization,
String identifier,
String methodName)
Validate that the type's name is not null.
|
void |
validateGUID(String sourceName,
String guidParameterName,
String guid,
String methodName)
Validate that an entity's identifier is not null.
|
void |
validateHomeMetadataGUID(String sourceName,
InstanceHeader instance,
String methodName)
Validate that a home metadata collection identifier in an instance is not null.
|
void |
validateHomeMetadataGUID(String sourceName,
String guidParameterName,
String guid,
String methodName)
Validate that a home metadata collection identifier is not null.
|
void |
validateInstanceStatus(String sourceName,
String instanceStatusParameterName,
InstanceStatus instanceStatus,
TypeDef typeDef,
String methodName)
Validates an instance status where null is permissible.
|
void |
validateInstanceStatusForDelete(String sourceName,
InstanceHeader instance,
String methodName)
Verify that an instance is not already deleted since the repository is processing a delete request
and it does not want to look stupid.
|
void |
validateInstanceType(String sourceName,
InstanceHeader instance)
Verify that the instance retrieved from the repository has a valid instance type.
|
void |
validateInstanceType(String sourceName,
InstanceHeader instance,
String typeGUIDParameterName,
String typeNameParameterName,
String expectedTypeGUID,
String expectedTypeName)
Verify that the instance retrieved from the repository has a valid instance type that matches the
expected type.
|
void |
validateInstanceTypeGUID(String sourceName,
String guidParameterName,
String guid,
String methodName)
Validate that if a type's identifier is passed then it is valid.
|
void |
validateKnownTypeDef(String sourceName,
String parameterName,
TypeDef typeDef,
String methodName)
Validate the content of a new TypeDef is known.
|
void |
validateMatchCriteria(String sourceName,
String matchCriteriaParameterName,
String matchPropertiesParameterName,
MatchCriteria matchCriteria,
InstanceProperties matchProperties,
String methodName)
Validate that a metadata instance match criteria and set of properties are either both null or
both not null.
|
void |
validateMatchCriteria(String sourceName,
String parameterName,
TypeDefProperties matchCriteria,
String methodName)
Validate that a TypeDef match criteria set of properties is not null.
|
void |
validateNewPropertiesForType(String sourceName,
String parameterName,
TypeDef typeDef,
InstanceProperties properties,
String methodName)
Validate that the properties for a metadata instance match its TypeDef
|
void |
validateNewStatus(String sourceName,
String instanceStatusParameterName,
InstanceStatus instanceStatus,
TypeDef typeDef,
String methodName)
Validates an instance status where null is not allowed.
|
void |
validateOptionalTypeGUID(String sourceName,
String guidParameterName,
String guid,
String methodName)
Validate that type's identifier is not null.
|
void |
validatePageSize(String sourceName,
String parameterName,
int pageSize,
String methodName)
Validate that a page size parameter is not negative.
|
void |
validatePropertiesForType(String sourceName,
String parameterName,
TypeDef typeDef,
InstanceProperties properties,
String methodName)
Validate that the properties for a metadata instance match its TypeDef.
|
void |
validatePropertiesForType(String sourceName,
String parameterName,
TypeDefSummary typeDefSummary,
InstanceProperties properties,
String methodName)
Validate that the properties for a metadata instance match its TypeDef
|
void |
validateReferenceInstanceHeader(String sourceName,
String localMetadataCollectionId,
String instanceParameterName,
InstanceHeader instance,
String methodName)
Validates that an instance has the correct header for it to be a reference copy.
|
void |
validateRelationshipCanBeRehomed(String sourceName,
String metadataCollectionId,
InstanceHeader instance,
String methodName)
Verify that a relationship instance can be rehomed by the metadataCollection.
|
void |
validateRelationshipCanBeUpdated(String sourceName,
String metadataCollectionId,
InstanceHeader instance,
String methodName)
Verify that a relationship instance can be updated by the metadataCollection.
|
void |
validateRelationshipEnds(String sourceName,
EntityProxy entityOneProxy,
EntityProxy entityTwoProxy,
TypeDef typeDef,
String methodName)
Validate that the types of the two ends of a relationship match the relationship's TypeDef.
|
void |
validateRelationshipFromStore(String sourceName,
String guid,
Relationship relationship,
String methodName)
Verify that a relationship has been successfully retrieved from the repository and has valid contents.
|
void |
validateRelationshipIsDeleted(String sourceName,
InstanceHeader instance,
String methodName)
Verify the status of a relationship to check it has been deleted.
|
void |
validateRelationshipIsNotDeleted(String sourceName,
InstanceHeader instance,
String methodName)
Verify the status of a relationship to check it has not been deleted.
|
void |
validateSearchCriteria(String sourceName,
String parameterName,
String searchCriteria,
String methodName)
Validate that a search criteria is not null.
|
void |
validateTypeDef(String sourceName,
String parameterName,
TypeDef typeDef,
String methodName)
Validate the content of a new TypeDef is valid.
|
void |
validateTypeDefCategory(String sourceName,
String nameParameterName,
TypeDefCategory category,
String methodName)
Validate that a TypeDef's category is not null.
|
void |
validateTypeDefForInstance(String sourceName,
String parameterName,
TypeDef typeDef,
String methodName)
Validate the content of a TypeDef associated with a metadata instance.
|
void |
validateTypeDefGallery(String sourceName,
String parameterName,
TypeDefGallery gallery,
String methodName)
Validate that type's name is not null.
|
void |
validateTypeDefIds(String sourceName,
String guidParameterName,
String nameParameterName,
String guid,
String name,
String methodName)
Validate that a TypeDef's identifiers are not null.
|
TypeDef |
validateTypeDefPatch(String sourceName,
TypeDefPatch patch,
String methodName)
Verify that a TypeDefPatch is not null.
|
void |
validateTypeForInstanceDelete(String sourceName,
String typeDefGUID,
String typeDefName,
InstanceHeader instance,
String methodName)
Validate that the supplied TypeDef GUID and name matches the type associated with a metadata instance.
|
void |
validateTypeGUID(String sourceName,
String guidParameterName,
String guid,
String methodName)
Validate that type's identifier is not null.
|
void |
validateTypeName(String sourceName,
String nameParameterName,
String name,
String methodName)
Validate that type's name is not null.
|
void |
validateUnknownAttributeTypeDef(String sourceName,
String parameterName,
AttributeTypeDef attributeTypeDef,
String methodName)
Validate the content of a new TypeDef is known.
|
void |
validateUnknownTypeDef(String sourceName,
String parameterName,
TypeDef typeDef,
String methodName)
Validate the content of a new TypeDef is known.
|
void |
validateUserId(String sourceName,
String userId,
String methodName)
Validate that the supplied user Id is not null.
|
boolean |
validAttributeTypeDef(String sourceName,
AttributeTypeDef attributeTypeDef)
Return boolean indicating whether the supplied AttributeTypeDef is valid or not.
|
boolean |
validAttributeTypeDefId(String sourceName,
String attributeTypeDefGUID,
String attributeTypeDefName,
AttributeTypeDefCategory category)
Return boolean indicating whether the AttributeTypeDef identifiers are from a single known type or not.
|
boolean |
validAttributeTypeDefId(String sourceName,
String attributeTypeDefGUID,
String attributeTypeDefName,
String attributeTypeDefVersion,
AttributeTypeDefCategory category)
Return boolean indicating whether the TypeDef identifiers are from a single known type or not.
|
boolean |
validEntity(String sourceName,
EntityDetail entity)
Test that the supplied entity is valid.
|
boolean |
validEntity(String sourceName,
EntityProxy entity)
Test that the supplied entity is valid.
|
boolean |
validEntity(String sourceName,
EntitySummary entity)
Test that the supplied entity is valid.
|
boolean |
validInstanceId(String sourceName,
String typeDefGUID,
String typeDefName,
TypeDefCategory category,
String instanceGUID)
Verify that the identifiers for an instance are correct.
|
boolean |
validRelationship(String sourceName,
Relationship relationship)
Test that the supplied relationship is valid.
|
boolean |
validTypeDef(String sourceName,
TypeDef typeDef)
Return boolean indicating whether the supplied TypeDef is valid or not.
|
boolean |
validTypeDefId(String sourceName,
String typeDefGUID,
String typeDefName,
String typeDefVersion,
TypeDefCategory category)
Return boolean indicating whether the TypeDef identifiers are from a single known type or not.
|
boolean |
validTypeDefId(String sourceName,
String typeDefGUID,
String typeDefName,
TypeDefCategory category)
Return boolean indicating whether the TypeDef identifiers are from a single known type or not.
|
boolean |
validTypeDefSummary(String sourceName,
TypeDefSummary typeDefSummary)
Return boolean indicating whether the supplied TypeDefSummary is valid or not.
|
boolean |
validTypeId(String sourceName,
String typeGUID,
String typeName)
Return boolean indicating whether the TypeDef identifiers are from a single known type or not.
|
boolean |
verifyEntityIsClassified(List<String> requiredClassifications,
EntitySummary entity)
Return a boolean indicating whether the supplied entity is classified with one or more of the supplied
classifications.
|
boolean |
verifyInstanceHasRightStatus(List<InstanceStatus> validStatuses,
InstanceHeader instance)
Verify that the supplied instance is in one of the supplied statuses.
|
boolean |
verifyInstancePropertiesMatchPropertyValue(String sourceName,
InstanceProperties properties,
String searchPropertyValue,
String methodName)
Search for property values matching the supplied property value
|
boolean |
verifyInstancePropertiesMatchSearchCriteria(String sourceName,
InstanceProperties properties,
String searchCriteria,
String methodName)
Search for property values matching the search criteria (a regular expression)
|
boolean |
verifyInstanceType(String sourceName,
String instanceTypeGUID,
InstanceHeader instance)
Verify whether the instance passed to this method is of the type indicated by the type guid.
|
boolean |
verifyMatchingInstancePropertyValues(InstanceProperties matchProperties,
InstanceAuditHeader instanceHeader,
InstanceProperties instanceProperties,
MatchCriteria matchCriteria)
Determine if the instance properties match the match criteria.
|
void validateEnterpriseTypeDefs(String sourceName, List<TypeDef> typeDefs, String methodName) throws RepositoryErrorException
sourceName - source of the request (used for logging)typeDefs - list of TypeDefs.methodName - calling methodRepositoryErrorException - a conflicting or invalid TypeDef has been returnedvoid validateEnterpriseAttributeTypeDefs(String sourceName, List<AttributeTypeDef> attributeTypeDefs, String methodName) throws RepositoryErrorException
sourceName - source of the request (used for logging)attributeTypeDefs - list of AttributeTypeDefs.methodName - calling methodRepositoryErrorException - a conflicting or invalid AttributeTypeDef has been returnedboolean isActiveType(String sourceName, String typeGUID, String typeName)
sourceName - source of the request (used for logging)typeGUID - unique identifier of the typetypeName - unique name of the typeboolean isActiveTypeId(String sourceName, String typeGUID)
sourceName - source of the request (used for logging)typeGUID - unique identifier of the typeboolean isOpenType(String sourceName, String typeGUID, String typeName)
sourceName - source of the request (used for logging)typeGUID - unique identifier of the typetypeName - unique name of the typeboolean isOpenTypeId(String sourceName, String typeGUID)
sourceName - source of the request (used for logging)typeGUID - unique identifier of the typeboolean isKnownType(String sourceName, String typeGUID, String typeName)
sourceName - source of the request (used for logging)typeGUID - unique identifier of the typetypeName - unique name of the typeboolean isKnownTypeId(String sourceName, String typeGUID)
sourceName - source of the request (used for logging)typeGUID - unique identifier of the typeboolean validTypeId(String sourceName, String typeGUID, String typeName)
sourceName - source of the request (used for logging)typeGUID - unique identifier of the TypeDeftypeName - unique name of the TypeDefboolean validTypeDefId(String sourceName, String typeDefGUID, String typeDefName, TypeDefCategory category)
sourceName - source of the request (used for logging)typeDefGUID - unique identifier of the TypeDeftypeDefName - unique name of the TypeDefcategory - category for the TypeDefboolean validAttributeTypeDefId(String sourceName, String attributeTypeDefGUID, String attributeTypeDefName, AttributeTypeDefCategory category)
sourceName - source of the request (used for logging)attributeTypeDefGUID - unique identifier of the AttributeTypeDefattributeTypeDefName - unique name of the AttributeTypeDefcategory - category for the AttributeTypeDefboolean validTypeDefId(String sourceName, String typeDefGUID, String typeDefName, String typeDefVersion, TypeDefCategory category)
sourceName - source of the request (used for logging)typeDefGUID - unique identifier of the TypeDeftypeDefName - unique name of the TypeDeftypeDefVersion - version of the typecategory - category for the TypeDefboolean validAttributeTypeDefId(String sourceName, String attributeTypeDefGUID, String attributeTypeDefName, String attributeTypeDefVersion, AttributeTypeDefCategory category)
sourceName - source of the request (used for logging)attributeTypeDefGUID - unique identifier of the TypeDefattributeTypeDefName - unique name of the TypeDefattributeTypeDefVersion - version of the typecategory - category for the TypeDefboolean validTypeDef(String sourceName, TypeDef typeDef)
sourceName - source of the TypeDef (used for logging)typeDef - TypeDef to testboolean validAttributeTypeDef(String sourceName, AttributeTypeDef attributeTypeDef)
sourceName - source of the request (used for logging)attributeTypeDef - TypeDef to testboolean validTypeDefSummary(String sourceName, TypeDefSummary typeDefSummary)
sourceName - source of the request (used for logging)typeDefSummary - TypeDefSummary to test.boolean validEntity(String sourceName, EntitySummary entity)
sourceName - source of the request (used for logging)entity - entity to testboolean validEntity(String sourceName, EntityProxy entity)
sourceName - source of the request (used for logging)entity - entity to testboolean validEntity(String sourceName, EntityDetail entity)
sourceName - source of the request (used for logging)entity - entity to testboolean validRelationship(String sourceName, Relationship relationship)
sourceName - source of the request (used for logging)relationship - relationship to testboolean validInstanceId(String sourceName, String typeDefGUID, String typeDefName, TypeDefCategory category, String instanceGUID)
sourceName - source of the request (used for logging)typeDefGUID - unique identifier for the type.typeDefName - unique name for the type.category - expected category of the instance.instanceGUID - unique identifier for the instance.void validateUserId(String sourceName, String userId, String methodName) throws InvalidParameterException
sourceName - name of source of request.userId - userId passed on call to this metadata collection.methodName - name of method requesting the validation.InvalidParameterException - the userId is invalidvoid validateTypeDefIds(String sourceName, String guidParameterName, String nameParameterName, String guid, String name, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)guidParameterName - name of the parameter that passed the guid.nameParameterName - name of the parameter that passed the name.guid - unique identifier for a type or an instance passed on the requestname - name of TypeDef.methodName - method receiving the callInvalidParameterException - no guid providedTypeDef getValidTypeDefFromIds(String sourceName, String guidParameterName, String nameParameterName, String guid, String name, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)guidParameterName - name of the parameter that passed the guid.nameParameterName - name of the parameter that passed the name.guid - unique identifier for a type or an instance passed on the requestname - name of TypeDef.methodName - method receiving the callInvalidParameterException - no guid providedvoid validateAttributeTypeDefIds(String sourceName, String guidParameterName, String nameParameterName, String guid, String name, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)guidParameterName - name of the parameter that passed the guid.nameParameterName - name of the parameter that passed the name.guid - unique identifier for a type or an instance passed on the requestname - name of TypeDef.methodName - method receiving the callInvalidParameterException - no guid, or name providedAttributeTypeDef getValidAttributeTypeDefFromIds(String sourceName, String guidParameterName, String nameParameterName, String guid, String name, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)guidParameterName - name of the parameter that passed the guid.nameParameterName - name of the parameter that passed the name.guid - unique identifier for a type or an instance passed on the requestname - name of TypeDef.methodName - method receiving the callInvalidParameterException - no guid, or name providedvoid validateTypeGUID(String sourceName, String guidParameterName, String guid, String methodName) throws InvalidParameterException, TypeErrorException
sourceName - source of the request (used for logging)guidParameterName - name of the parameter that passed the guid.guid - unique identifier for a type or an instance passed on the requestmethodName - method receiving the callInvalidParameterException - no guid providedTypeErrorException - guid is not for a recognized typevoid validateOptionalTypeGUID(String sourceName, String guidParameterName, String guid, String methodName) throws TypeErrorException
sourceName - source of the request (used for logging)guidParameterName - name of the parameter that passed the guid.guid - unique identifier for a type or an instance passed on the requestmethodName - method receiving the callTypeErrorException - unknown type guidTypeDef validateTypeDefPatch(String sourceName, TypeDefPatch patch, String methodName) throws InvalidParameterException, TypeDefNotKnownException, PatchErrorException
sourceName - source of the request (used for logging)patch - patch to testmethodName - calling methodInvalidParameterException - the patch is nullTypeDefNotKnownException - the type is not knownPatchErrorException - the patch is invalidvoid validateInstanceTypeGUID(String sourceName, String guidParameterName, String guid, String methodName) throws TypeErrorException
sourceName - source of the request (used for logging)guidParameterName - name of the parameter that passed the guid.guid - unique identifier for a type or an instance passed on the requestmethodName - method receiving the callTypeErrorException - invalid type providedvoid validateTypeName(String sourceName, String nameParameterName, String name, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)nameParameterName - name of the parameter that passed the name.name - unique identifier for a type or an instance passed on the requestmethodName - method receiving the callInvalidParameterException - no name providedvoid validateTypeDefCategory(String sourceName, String nameParameterName, TypeDefCategory category, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)nameParameterName - name of the parameter that passed the name.category - category of TypeDefmethodName - method receiving the callInvalidParameterException - no name providedvoid validateAttributeTypeDefCategory(String sourceName, String nameParameterName, AttributeTypeDefCategory category, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)nameParameterName - name of the parameter that passed the name.category - category of TypeDefmethodName - method receiving the callInvalidParameterException - no name providedvoid validateTypeDef(String sourceName, String parameterName, TypeDef typeDef, String methodName) throws InvalidParameterException, InvalidTypeDefException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the typeDef.typeDef - unique identifier for a type or an instance passed on the requestmethodName - method receiving the callInvalidParameterException - no typeDef providedInvalidTypeDefException - invalid typeDef providedvoid validateActiveType(String sourceName, String typeParameterName, TypeDefSummary typeDefSummary, TypeDefCategory category, String methodName) throws TypeErrorException, InvalidParameterException
sourceName - source of the request (used for logging)typeParameterName - the name of the parameter that passed the typetypeDefSummary - the type to testcategory - the expected category of the typemethodName - the name of the method that supplied the typeInvalidParameterException - the type is null or contains invalid valuesTypeErrorException - the type is not activevoid validateKnownTypeDef(String sourceName, String parameterName, TypeDef typeDef, String methodName) throws TypeDefNotKnownException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the typeDef.typeDef - unique identifier for a type or an instance passed on the requestmethodName - method receiving the callTypeDefNotKnownException - no recognized typeDef providedvoid validateUnknownTypeDef(String sourceName, String parameterName, TypeDef typeDef, String methodName) throws TypeDefKnownException, TypeDefConflictException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the typeDef.typeDef - unique identifier for a type or an instance passed on the requestmethodName - method receiving the callTypeDefKnownException - the TypeDef is already definedTypeDefConflictException - the TypeDef is already defined but differentlyvoid validateUnknownAttributeTypeDef(String sourceName, String parameterName, AttributeTypeDef attributeTypeDef, String methodName) throws TypeDefKnownException, TypeDefConflictException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the typeDef.attributeTypeDef - unique identifier for an attribute type or an instance passed on the requestmethodName - method receiving the callTypeDefKnownException - the TypeDef is already definedTypeDefConflictException - the TypeDef is already defined but differentlyvoid validateTypeDefForInstance(String sourceName, String parameterName, TypeDef typeDef, String methodName) throws TypeErrorException, RepositoryErrorException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the typeDef.typeDef - unique identifier for a type or an instance passed on the requestmethodName - method receiving the callTypeErrorException - no typeDef providedRepositoryErrorException - the TypeDef from the repository is in error.void validateTypeForInstanceDelete(String sourceName, String typeDefGUID, String typeDefName, InstanceHeader instance, String methodName) throws InvalidParameterException, RepositoryErrorException
sourceName - source of the request (used for logging)typeDefGUID - the supplied typeDef GUID.typeDefName - the supplied typeDef name.instance - instance retrieved from the store with the supplied instance guidmethodName - method making this callInvalidParameterException - incompatibility detected between the TypeDef and the instance's typeRepositoryErrorException - the instance from the repository is in error.void validateAttributeTypeDef(String sourceName, String parameterName, AttributeTypeDef attributeTypeDef, String methodName) throws InvalidParameterException, InvalidTypeDefException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the attributeTypeDef.attributeTypeDef - unique identifier for a type or an instance passed on the requestmethodName - method receiving the callInvalidParameterException - no attributeTypeDef providedInvalidTypeDefException - bad attributeTypeDef providedvoid validateTypeDefGallery(String sourceName, String parameterName, TypeDefGallery gallery, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the name.gallery - typeDef gallerymethodName - method receiving the callInvalidParameterException - no name providedvoid validateExternalId(String sourceName, String standard, String organization, String identifier, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)standard - name of the standard null means any.organization - name of the organization null means any.identifier - identifier of the element in the standard null means any.methodName - method receiving the callInvalidParameterException - no name providedvoid validateGUID(String sourceName, String guidParameterName, String guid, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)guidParameterName - name of the parameter that passed the guid.guid - unique identifier for a type or an instance passed on the requestmethodName - method receiving the callInvalidParameterException - no guid providedvoid validateHomeMetadataGUID(String sourceName, String guidParameterName, String guid, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)guidParameterName - name of the parameter that passed the guid.guid - unique identifier for a type or an instance passed on the requestmethodName - method receiving the callInvalidParameterException - no guid providedvoid validateHomeMetadataGUID(String sourceName, InstanceHeader instance, String methodName) throws RepositoryErrorException
sourceName - source of the request (used for logging)instance - instance to test.methodName - method receiving the callRepositoryErrorException - no guid providedvoid validateAsOfTime(String sourceName, String parameterName, Date asOfTime, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the guid.asOfTime - unique name for a classification typemethodName - method receiving the callInvalidParameterException - asOfTime is for the futurevoid validateAsOfTimeNotNull(String sourceName, String parameterName, Date asOfTime, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the guid.asOfTime - unique name for a classification typemethodName - method receiving the callInvalidParameterException - asOfTime is for the futurevoid validatePageSize(String sourceName, String parameterName, int pageSize, String methodName) throws PagingErrorException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the guid.pageSize - number of elements to return on a requestmethodName - method receiving the callPagingErrorException - pageSize is negativeTypeDef validateClassificationName(String sourceName, String parameterName, String classificationName, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the guid.classificationName - unique name for a classification typemethodName - method receiving the callInvalidParameterException - classification name is null or invalidvoid validateClassificationProperties(String sourceName, String classificationName, String propertiesParameterName, InstanceProperties classificationProperties, String methodName) throws PropertyErrorException
sourceName - source of the request (used for logging)classificationName - unique name for a classification typepropertiesParameterName - name of the parameter that passed the properties.classificationProperties - properties to testmethodName - method receiving the callPropertyErrorException - classification name is nullvoid validateClassification(String sourceName, String classificationParameterName, String classificationName, String entityTypeName, String methodName) throws InvalidParameterException, ClassificationErrorException
sourceName - source of the request (used for logging)classificationParameterName - name of the parameter that passed the guid.classificationName - unique name for a classification typeentityTypeName - name of entity typemethodName - method receiving the callInvalidParameterException - classification name is nullClassificationErrorException - the classification is invalid for this entityvoid validateClassificationList(String sourceName, String parameterName, List<Classification> classifications, String entityTypeName, String methodName) throws InvalidParameterException, ClassificationErrorException, PropertyErrorException, TypeErrorException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the guid.classifications - list of classificationsentityTypeName - name of entity typemethodName - method receiving the callInvalidParameterException - classification name is nullClassificationErrorException - the classification is invalid for this entityPropertyErrorException - the classification's properties are invalid for its typeTypeErrorException - the classification's type is invalidvoid validateMatchCriteria(String sourceName, String parameterName, TypeDefProperties matchCriteria, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the match criteria.matchCriteria - match criteria propertiesmethodName - method receiving the callInvalidParameterException - no guid providedvoid validateMatchCriteria(String sourceName, String matchCriteriaParameterName, String matchPropertiesParameterName, MatchCriteria matchCriteria, InstanceProperties matchProperties, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)matchCriteriaParameterName - name of the parameter that passed the match criteria.matchPropertiesParameterName - name of the parameter that passed the match criteria.matchCriteria - match criteria enummatchProperties - match propertiesmethodName - method receiving the callInvalidParameterException - no guid providedvoid validateSearchCriteria(String sourceName, String parameterName, String searchCriteria, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)parameterName - name of the parameter that passed the search criteria.searchCriteria - match criteria propertiesmethodName - method receiving the callInvalidParameterException - no guid providedvoid validatePropertiesForType(String sourceName, String parameterName, TypeDef typeDef, InstanceProperties properties, String methodName) throws PropertyErrorException
sourceName - source of the request (used for logging)parameterName - name of the properties parameter.typeDef - type information to validate against.properties - proposed properties for instance.methodName - method receiving the call.PropertyErrorException - invalid propertyvoid validatePropertiesForType(String sourceName, String parameterName, TypeDefSummary typeDefSummary, InstanceProperties properties, String methodName) throws PropertyErrorException, TypeErrorException
sourceName - source of the request (used for logging)parameterName - name of the properties parameter.typeDefSummary - type information to validate against.properties - proposed propertiesmethodName - method receiving the callTypeErrorException - no typeDef providedPropertyErrorException - invalid propertyvoid validateNewPropertiesForType(String sourceName, String parameterName, TypeDef typeDef, InstanceProperties properties, String methodName) throws PropertyErrorException
sourceName - source of the request (used for logging)parameterName - name of the properties parameter.typeDef - type information to validate against.properties - proposed propertiesmethodName - method receiving the callPropertyErrorException - invalid propertyboolean verifyInstanceType(String sourceName, String instanceTypeGUID, InstanceHeader instance)
sourceName - name of caller.instanceTypeGUID - unique identifier of the type (or null).instance - instance to test.void validateEntityFromStore(String sourceName, String guid, EntitySummary entity, String methodName) throws RepositoryErrorException, EntityNotKnownException
sourceName - source of the request (used for logging)guid - unique identifier used to retrieve the entityentity - the retrieved entity (or null)methodName - method receiving the callEntityNotKnownException - No entity foundRepositoryErrorException - logic error in the repository corrupted instancevoid validateEntityFromStore(String sourceName, String guid, EntityDetail entity, String methodName) throws RepositoryErrorException, EntityNotKnownException
sourceName - source of the request (used for logging)guid - unique identifier used to retrieve the entityentity - the retrieved entity (or null)methodName - method receiving the callEntityNotKnownException - No entity foundRepositoryErrorException - logic error in the repository corrupted instancevoid validateRelationshipFromStore(String sourceName, String guid, Relationship relationship, String methodName) throws RepositoryErrorException, RelationshipNotKnownException
sourceName - source of the request (used for logging)guid - unique identifier used to retrieve the entityrelationship - the retrieved relationship (or null)methodName - method receiving the callRelationshipNotKnownException - No relationship foundRepositoryErrorException - logic error in the repository corrupted instancevoid validateInstanceType(String sourceName, InstanceHeader instance) throws RepositoryErrorException
sourceName - source of the request (used for logging)instance - the retrieved instanceRepositoryErrorException - logic error in the repository corrupted instancevoid validateInstanceType(String sourceName, InstanceHeader instance, String typeGUIDParameterName, String typeNameParameterName, String expectedTypeGUID, String expectedTypeName) throws RepositoryErrorException, TypeErrorException, InvalidParameterException
sourceName - source of the request (used for logging)instance - the retrieved instancetypeGUIDParameterName - name of parameter for TypeDefGUIDtypeNameParameterName - name of parameter for TypeDefNameexpectedTypeGUID - expected GUID of InstanceTypeexpectedTypeName - expected name of InstanceTypeRepositoryErrorException - logic error in the repository corrupted instanceTypeErrorException - problem with typeInvalidParameterException - invalid parameterboolean verifyInstanceHasRightStatus(List<InstanceStatus> validStatuses, InstanceHeader instance)
validStatuses - list of statuses the instance should be in any one of theminstance - instance to testvoid validateInstanceStatus(String sourceName, String instanceStatusParameterName, InstanceStatus instanceStatus, TypeDef typeDef, String methodName) throws StatusNotSupportedException
sourceName - source of the request (used for logging)instanceStatusParameterName - name of the initial status parameterinstanceStatus - initial status valuetypeDef - type of the instancemethodName - method calledStatusNotSupportedException - the initial status is invalid for this typevoid validateNewStatus(String sourceName, String instanceStatusParameterName, InstanceStatus instanceStatus, TypeDef typeDef, String methodName) throws StatusNotSupportedException, InvalidParameterException
sourceName - source of the request (used for logging)instanceStatusParameterName - name of the initial status parameterinstanceStatus - initial status valuetypeDef - type of the instancemethodName - method calledStatusNotSupportedException - the initial status is invalid for this typeInvalidParameterException - invalid parametervoid validateInstanceStatusForDelete(String sourceName, InstanceHeader instance, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)instance - instance about to be deletedmethodName - name of method calledInvalidParameterException - the instance is already deletedvoid validateEntityIsNotDeleted(String sourceName, InstanceHeader instance, String methodName) throws EntityNotKnownException
sourceName - source of the request (used for logging)instance - instance to validatemethodName - name of calling methodEntityNotKnownException - the entity is in deleted statusvoid validateEntityIsDeleted(String sourceName, InstanceHeader instance, String methodName) throws EntityNotDeletedException
sourceName - source of the request (used for logging)instance - instance to validatemethodName - name of calling methodEntityNotDeletedException - the entity is not in deleted statusvoid validateEntityCanBeUpdated(String sourceName, String metadataCollectionId, InstanceHeader instance, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)metadataCollectionId - unique identifier for the metadata collectioninstance - instance to validatemethodName - name of calling methodInvalidParameterException - the entity is in deleted statusvoid validateEntityCanBeRehomed(String sourceName, String metadataCollectionId, InstanceHeader instance, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)metadataCollectionId - unique identifier for the metadata collectioninstance - instance to validatemethodName - name of calling methodInvalidParameterException - the entity is in deleted statusvoid validateRelationshipIsNotDeleted(String sourceName, InstanceHeader instance, String methodName) throws RelationshipNotKnownException
sourceName - source of the request (used for logging)instance - instance to testmethodName - name of calling methodRelationshipNotKnownException - the relationship is in deleted statusvoid validateRelationshipIsDeleted(String sourceName, InstanceHeader instance, String methodName) throws RelationshipNotDeletedException
sourceName - source of the request (used for logging)instance - instance to testmethodName - name of calling methodRelationshipNotDeletedException - the relationship is not in deleted statusvoid validateRelationshipCanBeUpdated(String sourceName, String metadataCollectionId, InstanceHeader instance, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)metadataCollectionId - unique identifier for the metadata collectioninstance - instance to validatemethodName - name of calling methodInvalidParameterException - the entity is in deleted statusvoid validateRelationshipCanBeRehomed(String sourceName, String metadataCollectionId, InstanceHeader instance, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)metadataCollectionId - unique identifier for the metadata collectioninstance - instance to validatemethodName - name of calling methodInvalidParameterException - the entity is in deleted statusvoid validateRelationshipEnds(String sourceName, EntityProxy entityOneProxy, EntityProxy entityTwoProxy, TypeDef typeDef, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)entityOneProxy - content of end oneentityTwoProxy - content of end twotypeDef - typeDef for the relationshipmethodName - name of the method making the requestInvalidParameterException - types do not alignboolean verifyEntityIsClassified(List<String> requiredClassifications, EntitySummary entity)
requiredClassifications - list of required classification null means that there are no specific
classification requirements and so results in a true response.entity - entity to test.int countMatchingPropertyValues(InstanceProperties matchProperties, InstanceProperties instanceProperties) throws InvalidParameterException
matchProperties - the properties to match.instanceProperties - the properties from the instance.InvalidParameterException - invalid search criteriaint countMatchingHeaderPropertyValues(InstanceProperties matchProperties, InstanceAuditHeader instanceHeader, InstanceProperties instanceProperties) throws InvalidParameterException
matchProperties - the properties to match.instanceHeader - the header properties from the instance.instanceProperties - the effectivity dates.InvalidParameterException - invalid search criteriaboolean verifyMatchingInstancePropertyValues(InstanceProperties matchProperties, InstanceAuditHeader instanceHeader, InstanceProperties instanceProperties, MatchCriteria matchCriteria) throws InvalidParameterException
matchProperties - the properties to match.instanceHeader - the header of the instance.instanceProperties - the properties from the instance.matchCriteria - rule on how the match should occur.InvalidParameterException - invalid search criteriavoid validateReferenceInstanceHeader(String sourceName, String localMetadataCollectionId, String instanceParameterName, InstanceHeader instance, String methodName) throws InvalidParameterException, RepositoryErrorException
sourceName - source of the request (used for logging)localMetadataCollectionId - the unique identifier for the local repository' metadata collection.instanceParameterName - the name of the parameter that provided the instance.instance - the instance to testmethodName - the name of the method that supplied the instance.RepositoryErrorException - problem with repositoryInvalidParameterException - the instance is null or linked to local metadata repositoryvoid validateEntityProxy(String sourceName, String localMetadataCollectionId, String proxyParameterName, EntityProxy entityProxy, String methodName) throws InvalidParameterException
sourceName - source of the request (used for logging)localMetadataCollectionId - unique identifier for this repository's metadata collectionproxyParameterName - name of the parameter used to provide the parameterentityProxy - proxy to addmethodName - name of the method that adds the proxyInvalidParameterException - the entity proxy is null or for an entity homed in this repositoryboolean verifyInstancePropertiesMatchSearchCriteria(String sourceName, InstanceProperties properties, String searchCriteria, String methodName) throws RepositoryErrorException
sourceName - source of the request (used for logging)properties - list of properties associated with the in instancesearchCriteria - regular expression for testing the property valuesmethodName - name of the method requiring the search.RepositoryErrorException - the properties are not properly set up in the instanceboolean verifyInstancePropertiesMatchPropertyValue(String sourceName, InstanceProperties properties, String searchPropertyValue, String methodName) throws RepositoryErrorException
sourceName - source of the request (used for logging)properties - list of properties associated with the in instancesearchPropertyValue - property value as a stringmethodName - name of the method requiring the search.RepositoryErrorException - the properties are not properly set up in the instanceString getStringFromPropertyValue(InstancePropertyValue instancePropertyValue)
instancePropertyValue - value to extract the string fromString getStringValuesFromInstancePropertiesAsArray(InstanceProperties instanceProperties)
instanceProperties - value to extract the string fromString getStringValuesFromInstancePropertiesAsMap(InstanceProperties instanceProperties)
instanceProperties - value to extract the string fromString getStringValuesFromInstancePropertiesAsStruct(InstanceProperties instanceProperties)
instanceProperties - value to extract the string fromboolean isATypeOf(String sourceName, InstanceAuditHeader instance, String typeName, String localMethodName)
sourceName - source of the request (used for logging)instance - instance to testtypeName - name of the typelocalMethodName - local method that deleted the errorvoid validateAtMostOneEntityResult(List<EntityDetail> findResults, String typeName, String serviceName, String methodName) throws RepositoryErrorException
findResults - list of entities returned from the search.typeName - name of the type of entities requested.serviceName - service that requested the entities.methodName - calling method.RepositoryErrorException - results are not as expectedvoid validateAtMostOneRelationshipResult(List<Relationship> findResults, String typeName, String serviceName, String methodName) throws RepositoryErrorException
findResults - list of relationships returned from the search.typeName - name of the type of relationships requested.serviceName - service that requested the relationships.methodName - calling method.RepositoryErrorException - results are not as expectedCopyright © 2018–2020 ODPi. All rights reserved.