public abstract class OMRSMetadataCollectionBase extends OMRSMetadataCollection
OMRSMetadataInstanceStore is the common interface for working with the contents of a metadata repository. Within a metadata collection are the type definitions (TypeDefs) and metadata instances (Entities and Relationships). OMRSMetadataCollectionBase provides empty implementation of the the abstract methods of OMRSMetadataInstanceStore. The methods on OMRSMetadataInstanceStore are in the following major groups:
auditLog, metadataCollectionId, metadataCollectionName, parentConnector, repositoryHelper, repositoryName, repositoryValidator| Constructor and Description |
|---|
OMRSMetadataCollectionBase(OMRSRepositoryConnector parentConnector,
String repositoryName,
OMRSRepositoryHelper repositoryHelper,
OMRSRepositoryValidator repositoryValidator,
String metadataCollectionId)
Constructor ensures the metadata collection is linked to its connector and knows its metadata collection Id.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeTypeDef(String userId,
AttributeTypeDef newAttributeTypeDef)
Create a definition of a new AttributeTypeDef.
|
EntityDetail |
addEntity(String userId,
String entityTypeGUID,
InstanceProperties initialProperties,
List<Classification> initialClassifications,
InstanceStatus initialStatus)
Create a new entity and put it in the requested state.
|
protected TypeDef |
addEntityParameterValidation(String userId,
String entityTypeGUID,
InstanceProperties initialProperties,
List<Classification> initialClassifications,
InstanceStatus initialStatus)
Deprecated.
|
protected TypeDef |
addEntityParameterValidation(String userId,
String entityTypeGUID,
InstanceProperties initialProperties,
List<Classification> initialClassifications,
InstanceStatus initialStatus,
String methodName)
Validate that the parameters passed to addEntity are valid.
|
void |
addEntityProxy(String userId,
EntityProxy entityProxy)
Create an entity proxy in the metadata collection.
|
protected void |
addEntityProxyParameterValidation(String userId,
EntityProxy entityProxy)
Validate the parameters for addEntityProxy.
|
EntityDetail |
addExternalEntity(String userId,
String entityTypeGUID,
String externalSourceGUID,
String externalSourceName,
InstanceProperties initialProperties,
List<Classification> initialClassifications,
InstanceStatus initialStatus)
Save a new entity that is sourced from an external technology.
|
protected TypeDef |
addExternalEntityParameterValidation(String userId,
String entityTypeGUID,
String externalSourceGUID,
InstanceProperties initialProperties,
List<Classification> initialClassifications,
InstanceStatus initialStatus,
String methodName)
Validate parameters needed to save a new entity that is sourced from an external technology.
|
Relationship |
addExternalRelationship(String userId,
String relationshipTypeGUID,
String externalSourceGUID,
String externalSourceName,
InstanceProperties initialProperties,
String entityOneGUID,
String entityTwoGUID,
InstanceStatus initialStatus)
Save a new relationship that is sourced from an external technology.
|
protected TypeDef |
addExternalRelationshipParameterValidation(String userId,
String relationshipTypeGUID,
String externalSourceGUID,
InstanceProperties initialProperties,
String entityOneGUID,
String entityTwoGUID,
InstanceStatus initialStatus,
String methodName)
Validate the parameters needed to save a new relationship that is sourced from an external technology.
|
Relationship |
addRelationship(String userId,
String relationshipTypeGUID,
InstanceProperties initialProperties,
String entityOneGUID,
String entityTwoGUID,
InstanceStatus initialStatus)
Add a new relationship between two entities to the metadata collection.
|
protected TypeDef |
addRelationshipParameterValidation(String userId,
String relationshipTypeGUID,
InstanceProperties initialProperties,
String entityOneGUID,
String entityTwoGUID,
InstanceStatus initialStatus)
Deprecated.
|
protected TypeDef |
addRelationshipParameterValidation(String userId,
String relationshipTypeGUID,
InstanceProperties initialProperties,
String entityOneGUID,
String entityTwoGUID,
InstanceStatus initialStatus,
String methodName)
Validate the parameters for adding a new relationship between two entities to the metadata collection.
|
void |
addTypeDef(String userId,
TypeDef newTypeDef)
Create a definition of a new TypeDef.
|
void |
addTypeDefGallery(String userId,
TypeDefGallery newTypes)
Create a collection of related types.
|
protected void |
attributeTypeDefCategoryParameterValidation(String userId,
AttributeTypeDefCategory category,
String categoryParameterName,
String methodName)
Validate the properties of a request that accesses types by category.
|
protected void |
attributeTypeDefParameterValidation(String userId,
AttributeTypeDef attributeTypeDef,
String typeDefParameterName,
String methodName)
Validate that a supplied attributeTypeDef is valid.
|
EntityDetail |
classifyEntity(String userId,
String entityGUID,
String classificationName,
InstanceProperties classificationProperties)
Add the requested classification to a specific entity.
|
protected TypeDef |
classifyEntityParameterValidation(String userId,
String entityGUID,
String classificationName,
InstanceProperties classificationProperties)
Deprecated.
|
protected TypeDef |
classifyEntityParameterValidation(String userId,
String entityGUID,
String classificationName,
InstanceProperties classificationProperties,
String methodName)
Validate the parameters passed to classifyEntity.
|
EntityDetail |
declassifyEntity(String userId,
String entityGUID,
String classificationName)
Remove a specific classification from an entity.
|
protected void |
declassifyEntityParameterValidation(String userId,
String entityGUID,
String classificationName)
Deprecated.
|
protected void |
declassifyEntityParameterValidation(String userId,
String entityGUID,
String classificationName,
String methodName)
Validate the parameters passed to declassifyEntity.
|
void |
deleteAttributeTypeDef(String userId,
String obsoleteTypeDefGUID,
String obsoleteTypeDefName)
Delete an AttributeTypeDef.
|
EntityDetail |
deleteEntity(String userId,
String typeDefGUID,
String typeDefName,
String obsoleteEntityGUID)
Delete an entity.
|
void |
deleteEntityReferenceCopy(String userId,
EntityDetail entity)
Remove a reference copy of the the entity from the local repository.
|
Relationship |
deleteRelationship(String userId,
String typeDefGUID,
String typeDefName,
String obsoleteRelationshipGUID)
Delete a specific relationship.
|
void |
deleteRelationshipReferenceCopy(String userId,
Relationship relationship)
Remove the reference copy of the relationship from the local repository.
|
void |
deleteTypeDef(String userId,
String obsoleteTypeDefGUID,
String obsoleteTypeDefName)
Delete the TypeDef.
|
protected List<AttributeTypeDef> |
filterAttributeTypeDefsByCategory(List<AttributeTypeDef> allTypes,
AttributeTypeDefCategory category)
Returns all of the types for a specific category.
|
AttributeTypeDef |
filterAttributeTypeDefsByGUID(List<AttributeTypeDef> allTypes,
String guid)
Return the AttributeTypeDef that matches the guid.
|
AttributeTypeDef |
filterAttributeTypeDefsByName(List<AttributeTypeDef> allTypes,
String name)
Return the TypeDef that matches the name.
|
protected List<TypeDef> |
filterTypeDefsByCategory(List<TypeDef> allTypes,
TypeDefCategory category)
Returns all of the types for a specific category.
|
TypeDef |
filterTypeDefsByGUID(List<TypeDef> allTypes,
String guid)
Return the TypeDef that matches the guid.
|
TypeDef |
filterTypeDefsByName(List<TypeDef> allTypes,
String name)
Return the TypeDef that matches the name.
|
protected List<TypeDef> |
filterTypeDefsByProperty(List<TypeDef> allTypes,
TypeDefProperties matchCriteria)
Return the TypeDefs that have the properties matching the supplied match criteria.
|
List<TypeDef> |
filterTypeDefsBySearchCriteria(List<TypeDef> allTypes,
String searchCriteria)
Return the TypeDefs that match the search criteria.
|
List<TypeDef> |
filterTypesByExternalID(List<TypeDef> allTypes,
String standard,
String organization,
String identifier)
Match the supplied external standard identifiers against the active types for this repository.
|
TypeDefGallery |
filterTypesByWildCardName(List<TypeDef> allTypeDefs,
List<AttributeTypeDef> allAttributeTypeDefs,
String typeDefName)
Return the types identified by the name supplied by the caller.
|
List<AttributeTypeDef> |
findAttributeTypeDefsByCategory(String userId,
AttributeTypeDefCategory category)
Returns all of the AttributeTypeDefs for a specific category.
|
List<EntityDetail> |
findEntities(String userId,
String entityTypeGUID,
List<String> entitySubtypeGUIDs,
SearchProperties matchProperties,
int fromEntityElement,
List<InstanceStatus> limitResultsByStatus,
SearchClassifications matchClassifications,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Return a list of entities that match the supplied criteria.
|
List<EntityDetail> |
findEntitiesByClassification(String userId,
String entityTypeGUID,
String classificationName,
InstanceProperties matchClassificationProperties,
MatchCriteria matchCriteria,
int fromEntityElement,
List<InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Return a list of entities that have the requested type of classifications attached.
|
protected void |
findEntitiesByClassificationParameterValidation(String userId,
String entityTypeGUID,
String classificationName,
InstanceProperties matchClassificationProperties,
MatchCriteria matchCriteria,
int fromEntityElement,
List<InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Validate the parameters for findEntitiesByClassification.
|
List<EntityDetail> |
findEntitiesByProperty(String userId,
String entityTypeGUID,
InstanceProperties matchProperties,
MatchCriteria matchCriteria,
int fromEntityElement,
List<InstanceStatus> limitResultsByStatus,
List<String> limitResultsByClassification,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Return a list of entities that match the supplied properties according to the match criteria.
|
protected void |
findEntitiesByPropertyParameterValidation(String userId,
String entityTypeGUID,
InstanceProperties matchProperties,
MatchCriteria matchCriteria,
int fromEntityElement,
List<InstanceStatus> limitResultsByStatus,
List<String> limitResultsByClassification,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Validate the parameters for findEntitiesByProperty.
|
List<EntityDetail> |
findEntitiesByPropertyValue(String userId,
String entityTypeGUID,
String searchCriteria,
int fromEntityElement,
List<InstanceStatus> limitResultsByStatus,
List<String> limitResultsByClassification,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Return a list of entities whose string based property values match the search criteria.
|
protected void |
findEntitiesByPropertyValueParameterValidation(String userId,
String entityTypeGUID,
String searchCriteria,
int fromEntityElement,
List<InstanceStatus> limitResultsByStatus,
List<String> limitResultsByClassification,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Validate parameters passed to findEntitiesByPropertyValue.
|
protected void |
findEntitiesParameterValidation(String userId,
String entityTypeGUID,
List<String> entitySubtypeGUIDs,
SearchProperties matchProperties,
int fromEntityElement,
List<InstanceStatus> limitResultsByStatus,
SearchClassifications matchClassifications,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Validate the parameters for findEntities.
|
List<Relationship> |
findRelationships(String userId,
String relationshipTypeGUID,
List<String> relationshipSubtypeGUIDs,
SearchProperties matchProperties,
int fromRelationshipElement,
List<InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Return a list of relationships that match the requested conditions.
|
List<Relationship> |
findRelationshipsByProperty(String userId,
String relationshipTypeGUID,
InstanceProperties matchProperties,
MatchCriteria matchCriteria,
int fromRelationshipElement,
List<InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Return a list of relationships that match the requested properties by the matching criteria.
|
protected void |
findRelationshipsByPropertyParameterValidation(String userId,
String relationshipTypeGUID,
InstanceProperties matchProperties,
MatchCriteria matchCriteria,
int fromRelationshipElement,
List<InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Validate the parameters passed to findRelationshipsByProperty.
|
List<Relationship> |
findRelationshipsByPropertyValue(String userId,
String relationshipTypeGUID,
String searchCriteria,
int fromRelationshipElement,
List<InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Return a list of relationships whose string based property values match the search criteria.
|
protected void |
findRelationshipsByPropertyValueParameterValidation(String userId,
String relationshipTypeGUID,
String searchCriteria,
int fromRelationshipElement,
List<InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Validate the parameters passed to findRelationshipsByPropertyName.
|
protected void |
findRelationshipsParameterValidation(String userId,
String relationshipTypeGUID,
List<String> relationshipSubtypeGUIDs,
SearchProperties matchProperties,
int fromRelationshipElement,
List<InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Validate the parameters passed to findRelationships.
|
List<TypeDef> |
findTypeDefsByCategory(String userId,
TypeDefCategory category)
Returns all of the TypeDefs for a specific category.
|
List<TypeDef> |
findTypeDefsByProperty(String userId,
TypeDefProperties matchCriteria)
Return the TypeDefs that have the properties matching the supplied match criteria.
|
List<TypeDef> |
findTypesByExternalID(String userId,
String standard,
String organization,
String identifier)
Return the types that are linked to the elements from the specified standard.
|
TypeDefGallery |
findTypesByName(String userId,
String name)
Returns a list of type definitions that have the specified name.
|
TypeDefGallery |
getAllTypes(String userId)
Returns the list of different types of metadata organized into two groups.
|
AttributeTypeDef |
getAttributeTypeDefByGUID(String userId,
String guid)
Return the AttributeTypeDef identified by the GUID.
|
AttributeTypeDef |
getAttributeTypeDefByName(String userId,
String name)
Return the AttributeTypeDef identified by the unique name.
|
EntityDetail |
getEntityDetail(String userId,
String guid)
Return the header, classifications and properties of a specific entity.
|
EntityDetail |
getEntityDetail(String userId,
String guid,
Date asOfTime)
Return a historical version of an entity.
|
InstanceGraph |
getEntityNeighborhood(String userId,
String entityGUID,
List<String> entityTypeGUIDs,
List<String> relationshipTypeGUIDs,
List<InstanceStatus> limitResultsByStatus,
List<String> limitResultsByClassification,
Date asOfTime,
int level)
Return the entities and relationships that radiate out from the supplied entity GUID.
|
protected void |
getEntityNeighborhoodParameterValidation(String userId,
String entityGUID,
List<String> entityTypeGUIDs,
List<String> relationshipTypeGUIDs,
List<InstanceStatus> limitResultsByStatus,
List<String> limitResultsByClassification,
Date asOfTime,
int level)
Return the entities and relationships that radiate out from the supplied entity GUID.
|
protected EntityProxy |
getEntityProxy(String userId,
String entityGUID,
String methodName)
Retrieve an entity proxy
|
EntitySummary |
getEntitySummary(String userId,
String guid)
Return the header and classifications for a specific entity.
|
protected void |
getInstanceParameterValidation(String userId,
String guid,
Date asOfTime,
String methodName)
Validate the parameters for a retrieve of a historical version of an instance.
|
protected void |
getInstanceParameterValidation(String userId,
String guid,
String methodName)
Validate the parameters for a retrieve of an instance.
|
InstanceGraph |
getLinkingEntities(String userId,
String startEntityGUID,
String endEntityGUID,
List<InstanceStatus> limitResultsByStatus,
Date asOfTime)
Return all of the relationships and intermediate entities that connect the startEntity with the endEntity.
|
protected void |
getLinkingEntitiesParameterValidation(String userId,
String startEntityGUID,
String endEntityGUID,
List<InstanceStatus> limitResultsByStatus,
Date asOfTime)
Validate the parameters passed to getLinkingEntities.
|
String |
getMetadataCollectionId(String userId)
Returns the identifier of the metadata repository.
|
List<EntityDetail> |
getRelatedEntities(String userId,
String startEntityGUID,
List<String> entityTypeGUIDs,
int fromEntityElement,
List<InstanceStatus> limitResultsByStatus,
List<String> limitResultsByClassification,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Return the list of entities that are of the types listed in entityTypeGUIDs and are connected, either directly or
indirectly to the entity identified by startEntityGUID.
|
protected void |
getRelatedEntitiesParameterValidation(String userId,
String startEntityGUID,
List<String> entityTypeGUIDs,
int fromEntityElement,
List<InstanceStatus> limitResultsByStatus,
List<String> limitResultsByClassification,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Validate the parameters passed to the getRelatedEntities.
|
Relationship |
getRelationship(String userId,
String guid)
Return a requested relationship.
|
Relationship |
getRelationship(String userId,
String guid,
Date asOfTime)
Return a historical version of a relationship.
|
List<Relationship> |
getRelationshipsForEntity(String userId,
String entityGUID,
String relationshipTypeGUID,
int fromRelationshipElement,
List<InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Return the relationships for a specific entity.
|
protected void |
getRelationshipsForEntityParameterValidation(String userId,
String entityGUID,
String relationshipTypeGUID,
int fromRelationshipElement,
List<InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize)
Validate the parameters for getRelationshipsForEntity.
|
TypeDef |
getTypeDefByGUID(String userId,
String guid)
Return the TypeDef identified by the GUID.
|
TypeDef |
getTypeDefByName(String userId,
String name)
Return the TypeDef identified by the unique name.
|
protected TypeDef |
getTypeDefForInstance(InstanceHeader header,
String methodName)
Extract the typeDef for an instance
|
EntityDetail |
isEntityKnown(String userId,
String guid)
Returns the entity if the entity is stored in the metadata collection, otherwise null.
|
Relationship |
isRelationshipKnown(String userId,
String guid)
Returns a boolean indicating if the relationship is stored in the metadata collection.
|
protected AttributeTypeDef |
manageAttributeTypeDefParameterValidation(String userId,
String guidParameterName,
String nameParameterName,
String attributeTypeDefGUID,
String attributeTypeDefName,
String methodName)
Validate the type information for a management change to an attributeTypeDef.
|
protected void |
manageInstanceParameterValidation(String userId,
String instanceGUID,
String methodName)
Deprecated.
|
protected void |
manageInstanceParameterValidation(String userId,
String instanceGUID,
String instanceGUIDParameterName,
String methodName)
Validate the parameters for calls that manage an existing instance.
|
protected void |
manageInstanceParameterValidation(String userId,
String typeDefGUID,
String typeDefName,
String instanceGUID,
String instanceGUIDParameterName,
String methodName)
Validate the parameters passed to a delete or purge instance method.
|
protected void |
manageReferenceInstanceParameterValidation(String userId,
String typeDefGUID,
String typeDefName,
String instanceGUID,
String instanceGUIDParameterName,
String homeMetadataCollectionId,
String homeParameterName,
String methodName)
Validate the parameters passed to a reference instance method.
|
protected TypeDef |
manageTypeDefParameterValidation(String userId,
String guidParameterName,
String nameParameterName,
String typeDefGUID,
String typeDefName,
String methodName)
Validate the type information for a management change to a type.
|
protected void |
newAttributeTypeDefParameterValidation(String userId,
AttributeTypeDef attributeTypeDef,
String typeDefParameterName,
String methodName)
Validate that a supplied attributeTypeDef is valid and unknown.
|
protected void |
newTypeDefParameterValidation(String userId,
TypeDef typeDef,
String typeDefParameterName,
String methodName)
Validate that a supplied typeDef is valid and unknown.
|
void |
purgeEntity(String userId,
String typeDefGUID,
String typeDefName,
String deletedEntityGUID)
Permanently removes a deleted entity from the metadata collection.
|
void |
purgeEntityReferenceCopy(String userId,
EntityDetail entity)
Remove a reference copy of the the entity from the local repository.
|
void |
purgeEntityReferenceCopy(String userId,
String entityGUID,
String typeDefGUID,
String typeDefName,
String homeMetadataCollectionId)
Remove a reference copy of the the entity from the local repository.
|
void |
purgeRelationship(String userId,
String typeDefGUID,
String typeDefName,
String deletedRelationshipGUID)
Permanently delete the relationship from the repository.
|
void |
purgeRelationshipReferenceCopy(String userId,
Relationship relationship)
Remove the reference copy of the relationship from the local repository.
|
void |
purgeRelationshipReferenceCopy(String userId,
String relationshipGUID,
String typeDefGUID,
String typeDefName,
String homeMetadataCollectionId)
Remove the reference copy of the relationship from the local repository.
|
protected void |
referenceInstanceParameterValidation(String userId,
InstanceHeader instanceHeader,
String instanceParameterName,
String methodName)
Validate the header instance passed to a delete or purge instance method.
|
void |
refreshEntityReferenceCopy(String userId,
String entityGUID,
String typeDefGUID,
String typeDefName,
String homeMetadataCollectionId)
The local repository has requested that the repository that hosts the home metadata collection for the
specified entity sends out the details of this entity so the local repository can create a reference copy.
|
void |
refreshRelationshipReferenceCopy(String userId,
String relationshipGUID,
String typeDefGUID,
String typeDefName,
String homeMetadataCollectionId)
The local server has requested that the repository that hosts the home metadata collection for the
specified relationship sends out the details of this relationship so the local repository can create a
reference copy.
|
EntityDetail |
reHomeEntity(String userId,
String entityGUID,
String typeDefGUID,
String typeDefName,
String homeMetadataCollectionId,
String newHomeMetadataCollectionId,
String newHomeMetadataCollectionName)
Change the home of an existing entity.
|
protected void |
reHomeInstanceParameterValidation(String userId,
String instanceGUID,
String instanceParameterName,
String typeDefGUID,
String typeDefName,
String homeMetadataCollectionId,
String newHomeMetadataCollectionId,
String methodName)
Validate that the parameters passed to a reHome request are valid.
|
Relationship |
reHomeRelationship(String userId,
String relationshipGUID,
String typeDefGUID,
String typeDefName,
String homeMetadataCollectionId,
String newHomeMetadataCollectionId,
String newHomeMetadataCollectionName)
Change the home of an existing relationship.
|
AttributeTypeDef |
reIdentifyAttributeTypeDef(String userId,
String originalAttributeTypeDefGUID,
String originalAttributeTypeDefName,
String newAttributeTypeDefGUID,
String newAttributeTypeDefName)
Change the guid or name of an existing TypeDef to a new value.
|
EntityDetail |
reIdentifyEntity(String userId,
String typeDefGUID,
String typeDefName,
String entityGUID,
String newEntityGUID)
Change the guid of an existing entity to a new value.
|
protected void |
reIdentifyInstanceParameterValidation(String userId,
String typeDefGUID,
String typeDefName,
String instanceGUID,
String instanceParameterName,
String newInstanceGUID,
String newInstanceParameterName,
String methodName) |
Relationship |
reIdentifyRelationship(String userId,
String typeDefGUID,
String typeDefName,
String relationshipGUID,
String newRelationshipGUID)
Change the guid of an existing relationship.
|
TypeDef |
reIdentifyTypeDef(String userId,
String originalTypeDefGUID,
String originalTypeDefName,
String newTypeDefGUID,
String newTypeDefName)
Change the guid or name of an existing TypeDef to a new value.
|
protected void |
removeInstanceParameterValidation(String userId,
String typeDefGUID,
String typeDefName,
String instanceGUID,
String methodName)
Deprecated.
|
protected void |
reportEntityNotKnown(String entityGUID,
String methodName)
Throw exception to indicate that an entity unique identifier is not recognized.
|
protected void |
reportEntityProxyOnly(String guid,
String guidParameterName,
String methodName)
Throw an exception for the situation where there is only a proxy and the caller wants an entity details.
|
protected void |
reportRelationshipNotKnown(String relationshipGUID,
String methodName)
Throw exception to indicate that a relationship unique identifier is not recognized.
|
protected void |
reportTypeDefAlreadyDefined(String typeGUID,
String typeName,
String methodName)
Report that the type can not be created because it is already defined.
|
protected void |
reportTypeDefConflict(String typeGUID,
String typeName,
String methodName)
Report a type conflict error.
|
protected void |
reportTypeDefInUse(String typeGUID,
String typeName,
String methodName)
Report that a type can not be deleted.
|
protected void |
reportTypeDefNotSupported(String typeName,
String methodName)
Throw exception to indicate that a relationship unique identifier is not recognized.
|
protected void |
reportUnknownTypeGUID(String guid,
String guidParameterName,
String methodName)
Throw exception to indicate that a type unique identifier is not recognized.
|
protected void |
reportUnknownTypeName(String name,
String methodName)
Throw exception to indicate that a type unique identifier is not recognized.
|
protected void |
reportUnsupportedAsOfTimeFunction(String methodName,
Date asOfTime)
Return an exception to indicate that the method is unsupported but this is ok because it is optional.
|
protected void |
reportUnsupportedOptionalFunction(String methodName)
Return an exception to indicate that the method is unsupported but this is ok because it is optional.
|
EntityDetail |
restoreEntity(String userId,
String deletedEntityGUID)
Restore the requested entity to the state it was before it was deleted.
|
Relationship |
restoreRelationship(String userId,
String deletedRelationshipGUID)
Restore a deleted relationship into the metadata collection.
|
EntityDetail |
reTypeEntity(String userId,
String entityGUID,
TypeDefSummary currentTypeDefSummary,
TypeDefSummary newTypeDefSummary)
Change the type of an existing entity.
|
protected void |
reTypeInstanceParameterValidation(String userId,
String instanceGUID,
String instanceParameterName,
TypeDefCategory expectedTypeDefCategory,
TypeDefSummary currentTypeDefSummary,
TypeDefSummary newTypeDefSummary,
String methodName)
Validate the parameters needed to reType an instance.
|
Relationship |
reTypeRelationship(String userId,
String relationshipGUID,
TypeDefSummary currentTypeDefSummary,
TypeDefSummary newTypeDefSummary)
Change the type of an existing relationship.
|
void |
saveEntityReferenceCopy(String userId,
EntityDetail entity)
Save the entity as a reference copy.
|
void |
saveRelationshipReferenceCopy(String userId,
Relationship relationship)
Save the relationship as a reference copy.
|
List<TypeDef> |
searchForTypeDefs(String userId,
String searchCriteria)
Return the TypeDefs that match the search criteria.
|
protected void |
typeDefCategoryParameterValidation(String userId,
TypeDefCategory category,
String categoryParameterName,
String methodName)
Validate the properties of a request that accesses types by category.
|
protected void |
typeDefExternalIDParameterValidation(String userId,
String standard,
String organization,
String identifier,
String methodName)
Validate the properties used to locate types.
|
protected void |
typeDefParameterValidation(String userId,
TypeDef typeDef,
String typeDefParameterName,
String methodName)
Validate that a supplied typeDef is valid.
|
protected void |
typeDefPropertyParameterValidation(String userId,
TypeDefProperties matchCriteria,
String matchCriteriaParameterName,
String methodName)
Validate the properties used to locate types.
|
protected void |
typeDefSearchParameterValidation(String userId,
String searchCriteria,
String searchCriteriaParameterName,
String methodName)
Validate the properties used to locate types.
|
protected void |
typeGUIDParameterValidation(String userId,
String guid,
String guidParameterName,
String methodName)
Validate the properties of a request that accesses types by guid.
|
protected void |
typeNameParameterValidation(String userId,
String name,
String nameParameterName,
String methodName)
Validate the properties of a request that accesses types by name.
|
EntityDetail |
undoEntityUpdate(String userId,
String entityGUID)
Undo the last update to an entity and return the previous content.
|
Relationship |
undoRelationshipUpdate(String userId,
String relationshipGUID)
Undo the latest change to a relationship (either a change of properties or status).
|
EntityDetail |
updateEntityClassification(String userId,
String entityGUID,
String classificationName,
InstanceProperties properties)
Update one or more properties in one of an entity's classifications.
|
protected TypeDef |
updateEntityClassificationParameterValidation(String userId,
String entityGUID,
String classificationName,
InstanceProperties properties)
Deprecated.
|
EntityDetail |
updateEntityProperties(String userId,
String entityGUID,
InstanceProperties properties)
Update selected properties in an entity.
|
EntityDetail |
updateEntityStatus(String userId,
String entityGUID,
InstanceStatus newStatus)
Update the status for a specific entity.
|
protected void |
updateInstancePropertiesPropertyValidation(String userId,
String instanceGUID,
InstanceProperties properties,
String methodName)
Validate the parameters for update the properties of an instance.
|
protected void |
updateInstanceStatusParameterValidation(String userId,
String entityGUID,
InstanceStatus newStatus,
String methodName)
Validate parameters for updateEntityStatus.
|
Relationship |
updateRelationshipProperties(String userId,
String relationshipGUID,
InstanceProperties properties)
Update the properties of a specific relationship.
|
Relationship |
updateRelationshipStatus(String userId,
String relationshipGUID,
InstanceStatus newStatus)
Update the status of a specific relationship.
|
TypeDef |
updateTypeDef(String userId,
TypeDefPatch typeDefPatch)
Update one or more properties of the TypeDef.
|
protected TypeDef |
updateTypeDefParameterValidation(String userId,
TypeDefPatch typeDefPatch,
String methodName)
Validate that a patch to a type definition is valid.
|
boolean |
verifyAttributeTypeDef(String userId,
AttributeTypeDef attributeTypeDef)
Verify that a definition of an AttributeTypeDef is either new or matches the definition already stored.
|
boolean |
verifyTypeDef(String userId,
TypeDef typeDef)
Verify that a definition of a TypeDef is either new or matches the definition already stored.
|
basicRequestValidation, getMetadataCollectionId, reHomeEntity, reHomeRelationship, saveInstanceReferenceCopies, setAuditLog, validateRepositoryConnectorpublic OMRSMetadataCollectionBase(OMRSRepositoryConnector parentConnector, String repositoryName, OMRSRepositoryHelper repositoryHelper, OMRSRepositoryValidator repositoryValidator, String metadataCollectionId)
parentConnector - connector that this metadata collection supports. The connector has the information
to call the metadata repository.repositoryName - name of this repository.repositoryHelper - helper class for building types and instancesrepositoryValidator - validator class for checking open metadata repository objects and parameters.metadataCollectionId - unique identifier of the metadata collection Id.public String getMetadataCollectionId(String userId) throws RepositoryErrorException
getMetadataCollectionId in class OMRSMetadataCollectionuserId - calling userRepositoryErrorException - there is a problem communicating with the metadata repository.protected void typeGUIDParameterValidation(String userId, String guid, String guidParameterName, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - calling userguid - guid of typeguidParameterName - parameter that the guid was passed in onmethodName - calling methodInvalidParameterException - one of the parameters is null or invalidRepositoryErrorException - there is a problem with the repository connectorprotected void typeNameParameterValidation(String userId, String name, String nameParameterName, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - calling username - name of typenameParameterName - parameter that the name was passed in onmethodName - calling methodInvalidParameterException - one of the parameters is null or invalidRepositoryErrorException - there is a problem with the repository connectorprotected void typeDefCategoryParameterValidation(String userId, TypeDefCategory category, String categoryParameterName, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - calling usercategory - category of typecategoryParameterName - parameter that the category was passed in onmethodName - calling methodInvalidParameterException - one of the parameters is null or invalidRepositoryErrorException - there is a problem with the repository connectorprotected void attributeTypeDefCategoryParameterValidation(String userId, AttributeTypeDefCategory category, String categoryParameterName, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - calling usercategory - category of typecategoryParameterName - parameter that the category was passed in onmethodName - calling methodInvalidParameterException - one of the parameters is null or invalidRepositoryErrorException - there is a problem with the repository connectorprotected void typeDefPropertyParameterValidation(String userId, TypeDefProperties matchCriteria, String matchCriteriaParameterName, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.matchCriteria - TypeDefProperties containing a list of property names.matchCriteriaParameterName - parameter that the match criteria was passed in onmethodName - calling methodInvalidParameterException - the matchCriteria is null.RepositoryErrorException - there is a problem communicating with the metadata repository.protected void typeDefSearchParameterValidation(String userId, String searchCriteria, String searchCriteriaParameterName, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.searchCriteria - string containing the search criteria.searchCriteriaParameterName - parameter that the search criteria was passed in onmethodName - calling methodInvalidParameterException - the searchCriteria is null.RepositoryErrorException - there is a problem communicating with the metadata repository.protected void typeDefExternalIDParameterValidation(String userId, String standard, String organization, String identifier, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.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 - calling methodInvalidParameterException - the matchCriteria is null.RepositoryErrorException - there is a problem communicating with the metadata repository.protected void typeDefParameterValidation(String userId, TypeDef typeDef, String typeDefParameterName, String methodName) throws InvalidParameterException, InvalidTypeDefException, RepositoryErrorException
userId - unique identifier for requesting user.typeDef - supplied type definitiontypeDefParameterName - name of the parameter for the type definitionmethodName - calling methodInvalidParameterException - a property is null or invalidInvalidTypeDefException - the type is invalidRepositoryErrorException - there is a problem communicating with the metadata repository.protected void attributeTypeDefParameterValidation(String userId, AttributeTypeDef attributeTypeDef, String typeDefParameterName, String methodName) throws InvalidParameterException, InvalidTypeDefException, RepositoryErrorException
userId - unique identifier for requesting user.attributeTypeDef - supplied type definitiontypeDefParameterName - name of the parameter for the type definitionmethodName - calling methodInvalidParameterException - a property is null or invalidInvalidTypeDefException - the type is invalidRepositoryErrorException - there is a problem communicating with the metadata repository.protected void newTypeDefParameterValidation(String userId, TypeDef typeDef, String typeDefParameterName, String methodName) throws InvalidParameterException, InvalidTypeDefException, TypeDefConflictException, TypeDefKnownException, RepositoryErrorException
userId - unique identifier for requesting user.typeDef - supplied type definitiontypeDefParameterName - name of the parameter for the type definitionmethodName - calling methodInvalidParameterException - a property is null or invalidInvalidTypeDefException - the type is invalidRepositoryErrorException - there is a problem communicating with the metadata repository.TypeDefConflictException - incompatible TypeDefsTypeDefKnownException - duplicate TypeDefsprotected void newAttributeTypeDefParameterValidation(String userId, AttributeTypeDef attributeTypeDef, String typeDefParameterName, String methodName) throws InvalidParameterException, InvalidTypeDefException, TypeDefConflictException, TypeDefKnownException, RepositoryErrorException
userId - unique identifier for requesting user.attributeTypeDef - supplied type definitiontypeDefParameterName - name of the parameter for the type definitionmethodName - calling methodInvalidParameterException - a property is null or invalidInvalidTypeDefException - the type is invalidTypeDefConflictException - incompatible TypeDefsTypeDefKnownException - duplicate TypeDefsRepositoryErrorException - there is a problem communicating with the metadata repository.protected TypeDef updateTypeDefParameterValidation(String userId, TypeDefPatch typeDefPatch, String methodName) throws InvalidParameterException, PatchErrorException, TypeDefNotKnownException, RepositoryErrorException
userId - unique identifier for requesting user.typeDefPatch - update to the type definitionmethodName - calling methodInvalidParameterException - a property is null or invalidPatchErrorException - the type update is invalidTypeDefNotKnownException - the type is not knownRepositoryErrorException - there is a problem communicating with the metadata repository.protected TypeDef manageTypeDefParameterValidation(String userId, String guidParameterName, String nameParameterName, String typeDefGUID, String typeDefName, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.guidParameterName - name of parameter for type identifiernameParameterName - name of parameter for type nametypeDefGUID - unique identifier of typetypeDefName - unique name of typemethodName - calling methodInvalidParameterException - a property is null or invalidRepositoryErrorException - there is a problem communicating with the metadata repository.protected AttributeTypeDef manageAttributeTypeDefParameterValidation(String userId, String guidParameterName, String nameParameterName, String attributeTypeDefGUID, String attributeTypeDefName, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.guidParameterName - name of parameter for type identifiernameParameterName - name of parameter for type nameattributeTypeDefGUID - unique identifier of typeattributeTypeDefName - unique name of typemethodName - calling methodInvalidParameterException - a property is null or invalidRepositoryErrorException - there is a problem communicating with the metadata repository.public TypeDefGallery getAllTypes(String userId) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
getAllTypes in class OMRSMetadataCollectionuserId - unique identifier for requesting user.InvalidParameterException - the userId is nullRepositoryErrorException - there is a problem communicating with the metadata repository.UserNotAuthorizedException - the userId is not permitted to perform this operation.public TypeDefGallery filterTypesByWildCardName(List<TypeDef> allTypeDefs, List<AttributeTypeDef> allAttributeTypeDefs, String typeDefName)
allTypeDefs - list of types to filter.allAttributeTypeDefs - list of types to filter.typeDefName - unique name for the TypeDefpublic TypeDefGallery findTypesByName(String userId, String name) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
findTypesByName in class OMRSMetadataCollectionuserId - unique identifier for requesting user.name - name of the TypeDefs to return (including wildcard characters).InvalidParameterException - the name of the TypeDef is null.RepositoryErrorException - there is a problem communicating with the metadata repository.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected List<TypeDef> filterTypeDefsByCategory(List<TypeDef> allTypes, TypeDefCategory category)
allTypes - list of types to filter.category - enum value for the category of types to return.public List<TypeDef> findTypeDefsByCategory(String userId, TypeDefCategory category) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
findTypeDefsByCategory in class OMRSMetadataCollectionuserId - unique identifier for requesting user.category - enum value for the category of TypeDef to return.InvalidParameterException - the TypeDefCategory is null.RepositoryErrorException - there is a problem communicating with the metadata repository.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected List<AttributeTypeDef> filterAttributeTypeDefsByCategory(List<AttributeTypeDef> allTypes, AttributeTypeDefCategory category)
allTypes - list of types to filter.category - enum value for the category of types to return.public List<AttributeTypeDef> findAttributeTypeDefsByCategory(String userId, AttributeTypeDefCategory category) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
findAttributeTypeDefsByCategory in class OMRSMetadataCollectionuserId - unique identifier for requesting user.category - enum value for the category of an AttributeTypeDef to return.InvalidParameterException - the TypeDefCategory is null.RepositoryErrorException - there is a problem communicating with the metadata repository.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected List<TypeDef> filterTypeDefsByProperty(List<TypeDef> allTypes, TypeDefProperties matchCriteria)
allTypes - list of types to filter.matchCriteria - TypeDefProperties - a list of property names.public List<TypeDef> findTypeDefsByProperty(String userId, TypeDefProperties matchCriteria) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
findTypeDefsByProperty in class OMRSMetadataCollectionuserId - unique identifier for requesting user.matchCriteria - TypeDefProperties containing a list of property names.InvalidParameterException - the matchCriteria is null.RepositoryErrorException - there is a problem communicating with the metadata repository.UserNotAuthorizedException - the userId is not permitted to perform this operation.public List<TypeDef> filterTypesByExternalID(List<TypeDef> allTypes, String standard, String organization, String identifier)
allTypes - list of types to filterstandard - 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.public List<TypeDef> findTypesByExternalID(String userId, String standard, String organization, String identifier) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
findTypesByExternalID in class OMRSMetadataCollectionuserId - unique identifier for requesting user.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.InvalidParameterException - all attributes of the external id are null.RepositoryErrorException - there is a problem communicating with the metadata repository.UserNotAuthorizedException - the userId is not permitted to perform this operation.public List<TypeDef> filterTypeDefsBySearchCriteria(List<TypeDef> allTypes, String searchCriteria)
allTypes - list of types to filter.searchCriteria - String - search criteria.public List<TypeDef> searchForTypeDefs(String userId, String searchCriteria) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
searchForTypeDefs in class OMRSMetadataCollectionuserId - unique identifier for requesting user.searchCriteria - String search criteria.InvalidParameterException - the searchCriteria is null.RepositoryErrorException - there is a problem communicating with the metadata repository.UserNotAuthorizedException - the userId is not permitted to perform this operation.public TypeDef filterTypeDefsByGUID(List<TypeDef> allTypes, String guid)
allTypes - list of types to filter.guid - unique identifier for typepublic TypeDef getTypeDefByGUID(String userId, String guid) throws InvalidParameterException, RepositoryErrorException, TypeDefNotKnownException, UserNotAuthorizedException
getTypeDefByGUID in class OMRSMetadataCollectionuserId - unique identifier for requesting user.guid - String unique id of the TypeDef.InvalidParameterException - the guid is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotKnownException - The requested TypeDef is not known in the metadata collection.UserNotAuthorizedException - the userId is not permitted to perform this operation.public AttributeTypeDef filterAttributeTypeDefsByGUID(List<AttributeTypeDef> allTypes, String guid)
allTypes - list of types to filter.guid - unique identifier for typepublic AttributeTypeDef getAttributeTypeDefByGUID(String userId, String guid) throws InvalidParameterException, RepositoryErrorException, TypeDefNotKnownException, UserNotAuthorizedException
getAttributeTypeDefByGUID in class OMRSMetadataCollectionuserId - unique identifier for requesting user.guid - String unique id of the TypeDefInvalidParameterException - the guid is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotKnownException - The requested TypeDef is not known in the metadata collection.UserNotAuthorizedException - the userId is not permitted to perform this operation.public TypeDef filterTypeDefsByName(List<TypeDef> allTypes, String name)
allTypes - list of types to filter.name - unique identifier for typepublic TypeDef getTypeDefByName(String userId, String name) throws InvalidParameterException, RepositoryErrorException, TypeDefNotKnownException, UserNotAuthorizedException
getTypeDefByName in class OMRSMetadataCollectionuserId - unique identifier for requesting user.name - String name of the TypeDef.InvalidParameterException - the name is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotKnownException - the requested TypeDef is not found in the metadata collection.UserNotAuthorizedException - the userId is not permitted to perform this operation.public AttributeTypeDef filterAttributeTypeDefsByName(List<AttributeTypeDef> allTypes, String name)
allTypes - list of types to filter.name - unique identifier for typepublic AttributeTypeDef getAttributeTypeDefByName(String userId, String name) throws InvalidParameterException, RepositoryErrorException, TypeDefNotKnownException, UserNotAuthorizedException
getAttributeTypeDefByName in class OMRSMetadataCollectionuserId - unique identifier for requesting user.name - String name of the TypeDef.InvalidParameterException - the name is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotKnownException - the requested TypeDef is not found in the metadata collection.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void addTypeDefGallery(String userId, TypeDefGallery newTypes) throws InvalidParameterException, RepositoryErrorException, TypeDefNotSupportedException, TypeDefKnownException, TypeDefConflictException, InvalidTypeDefException, FunctionNotSupportedException, UserNotAuthorizedException
addTypeDefGallery in class OMRSMetadataCollectionuserId - unique identifier for requesting user.newTypes - TypeDefGalleryResponse structure describing the new AttributeTypeDefs and TypeDefs.InvalidParameterException - the new TypeDef is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotSupportedException - the repository is not able to support this TypeDef.TypeDefKnownException - the TypeDef is already stored in the repository.TypeDefConflictException - the new TypeDef conflicts with an existing TypeDef.InvalidTypeDefException - the new TypeDef has invalid contents.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void addTypeDef(String userId, TypeDef newTypeDef) throws InvalidParameterException, RepositoryErrorException, TypeDefNotSupportedException, TypeDefKnownException, TypeDefConflictException, InvalidTypeDefException, FunctionNotSupportedException, UserNotAuthorizedException
addTypeDef in class OMRSMetadataCollectionuserId - unique identifier for requesting user.newTypeDef - TypeDef structure describing the new TypeDef.InvalidParameterException - the new TypeDef is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotSupportedException - the repository is not able to support this TypeDef.TypeDefKnownException - the TypeDef is already stored in the repository.TypeDefConflictException - the new TypeDef conflicts with an existing TypeDef.InvalidTypeDefException - the new TypeDef has invalid contents.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void addAttributeTypeDef(String userId, AttributeTypeDef newAttributeTypeDef) throws InvalidParameterException, RepositoryErrorException, TypeDefNotSupportedException, TypeDefKnownException, TypeDefConflictException, InvalidTypeDefException, FunctionNotSupportedException, UserNotAuthorizedException
addAttributeTypeDef in class OMRSMetadataCollectionuserId - unique identifier for requesting user.newAttributeTypeDef - TypeDef structure describing the new TypeDef.InvalidParameterException - the new TypeDef is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotSupportedException - the repository is not able to support this TypeDef.TypeDefKnownException - the TypeDef is already stored in the repository.TypeDefConflictException - the new TypeDef conflicts with an existing TypeDef.InvalidTypeDefException - the new TypeDef has invalid contents.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.public boolean verifyTypeDef(String userId, TypeDef typeDef) throws InvalidParameterException, RepositoryErrorException, TypeDefNotSupportedException, TypeDefConflictException, InvalidTypeDefException, UserNotAuthorizedException
verifyTypeDef in class OMRSMetadataCollectionuserId - unique identifier for requesting user.typeDef - TypeDef structure describing the TypeDef to test.InvalidParameterException - the TypeDef is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotSupportedException - the repository is not able to support this TypeDef.TypeDefConflictException - the new TypeDef conflicts with an existing TypeDef.InvalidTypeDefException - the new TypeDef has invalid contents.UserNotAuthorizedException - the userId is not permitted to perform this operation.public boolean verifyAttributeTypeDef(String userId, AttributeTypeDef attributeTypeDef) throws InvalidParameterException, RepositoryErrorException, TypeDefNotSupportedException, TypeDefConflictException, InvalidTypeDefException, UserNotAuthorizedException
verifyAttributeTypeDef in class OMRSMetadataCollectionuserId - unique identifier for requesting user.attributeTypeDef - TypeDef structure describing the TypeDef to test.InvalidParameterException - the TypeDef is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotSupportedException - the repository is not able to support this TypeDef.TypeDefConflictException - the new TypeDef conflicts with an existing TypeDef.InvalidTypeDefException - the new TypeDef has invalid contents.UserNotAuthorizedException - the userId is not permitted to perform this operation.public TypeDef updateTypeDef(String userId, TypeDefPatch typeDefPatch) throws InvalidParameterException, RepositoryErrorException, TypeDefNotKnownException, PatchErrorException, FunctionNotSupportedException, UserNotAuthorizedException
updateTypeDef in class OMRSMetadataCollectionuserId - unique identifier for requesting user.typeDefPatch - TypeDef patch describing change to TypeDef.InvalidParameterException - the TypeDefPatch is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotKnownException - the requested TypeDef is not found in the metadata collection.PatchErrorException - the TypeDef can not be updated because the supplied patch is incompatible
with the stored TypeDef.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void deleteTypeDef(String userId, String obsoleteTypeDefGUID, String obsoleteTypeDefName) throws InvalidParameterException, RepositoryErrorException, TypeDefNotKnownException, TypeDefInUseException, FunctionNotSupportedException, UserNotAuthorizedException
deleteTypeDef in class OMRSMetadataCollectionuserId - unique identifier for requesting user.obsoleteTypeDefGUID - String unique identifier for the TypeDef.obsoleteTypeDefName - String unique name for the TypeDef.InvalidParameterException - the one of TypeDef identifiers is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotKnownException - the requested TypeDef is not found in the metadata collection.TypeDefInUseException - the TypeDef can not be deleted because there are instances of this type in the
the metadata collection. These instances need to be purged before the
TypeDef can be deleted.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void deleteAttributeTypeDef(String userId, String obsoleteTypeDefGUID, String obsoleteTypeDefName) throws InvalidParameterException, RepositoryErrorException, TypeDefNotKnownException, TypeDefInUseException, FunctionNotSupportedException, UserNotAuthorizedException
deleteAttributeTypeDef in class OMRSMetadataCollectionuserId - unique identifier for requesting user.obsoleteTypeDefGUID - String unique identifier for the AttributeTypeDef.obsoleteTypeDefName - String unique name for the AttributeTypeDef.InvalidParameterException - the one of AttributeTypeDef identifiers is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotKnownException - the requested AttributeTypeDef is not found in the metadata collection.TypeDefInUseException - the AttributeTypeDef can not be deleted because there are instances of this type in the
the metadata collection. These instances need to be purged before the
AttributeTypeDef can be deleted.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.public TypeDef reIdentifyTypeDef(String userId, String originalTypeDefGUID, String originalTypeDefName, String newTypeDefGUID, String newTypeDefName) throws InvalidParameterException, RepositoryErrorException, TypeDefNotKnownException, FunctionNotSupportedException, UserNotAuthorizedException
reIdentifyTypeDef in class OMRSMetadataCollectionuserId - unique identifier for requesting user.originalTypeDefGUID - the original guid of the TypeDef.originalTypeDefName - the original name of the TypeDef.newTypeDefGUID - the new identifier for the TypeDef.newTypeDefName - new name for this TypeDef.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotKnownException - the TypeDef identified by the original guid/name is not found
in the metadata collection.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.public AttributeTypeDef reIdentifyAttributeTypeDef(String userId, String originalAttributeTypeDefGUID, String originalAttributeTypeDefName, String newAttributeTypeDefGUID, String newAttributeTypeDefName) throws InvalidParameterException, RepositoryErrorException, TypeDefNotKnownException, FunctionNotSupportedException, UserNotAuthorizedException
reIdentifyAttributeTypeDef in class OMRSMetadataCollectionuserId - unique identifier for requesting user.originalAttributeTypeDefGUID - the original guid of the AttributeTypeDef.originalAttributeTypeDefName - the original name of the AttributeTypeDef.newAttributeTypeDefGUID - the new identifier for the AttributeTypeDef.newAttributeTypeDefName - new name for this AttributeTypeDef.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeDefNotKnownException - the AttributeTypeDef identified by the original guid/name is not
found in the metadata collection.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void getInstanceParameterValidation(String userId, String guid, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.guid - String unique identifier for the relationship.methodName - name of calling method.InvalidParameterException - the guid or date is null or the date is for a future timeRepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.protected void getInstanceParameterValidation(String userId, String guid, Date asOfTime, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.guid - String unique identifier for the relationship.asOfTime - the time used to determine which version of the entity that is desired.methodName - name of calling method.InvalidParameterException - the guid or date is null or the date is for a future timeRepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.protected void getRelationshipsForEntityParameterValidation(String userId, String entityGUID, String relationshipTypeGUID, int fromRelationshipElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, PagingErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.entityGUID - String unique identifier for the entity.relationshipTypeGUID - String GUID of the the type of relationship required (null for all).fromRelationshipElement - the starting element number of the relationships to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.sequencingProperty - String name of the property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - -- the maximum number of result classifications that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - a parameter is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PagingErrorException - the paging/sequencing parameters are set up incorrectly.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void findEntitiesByPropertyParameterValidation(String userId, String entityTypeGUID, InstanceProperties matchProperties, MatchCriteria matchCriteria, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, PagingErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.entityTypeGUID - String unique identifier for the entity type of interest (null means any entity type).matchProperties - Optional list of entity properties to match (contains wildcards).matchCriteria - Enum defining how the match properties should be matched to the entities in the repository.fromEntityElement - the starting element number of the entities to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, entities in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.limitResultsByClassification - List of classifications that must be present on all returned entities.asOfTime - Requests a historical query of the entity. Null means return the present values.sequencingProperty - String name of the entity property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result entities that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - a parameter is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PropertyErrorException - the properties specified are not valid for any of the requested types of
entity.PagingErrorException - the paging/sequencing parameters are set up incorrectly.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void findEntitiesParameterValidation(String userId, String entityTypeGUID, List<String> entitySubtypeGUIDs, SearchProperties matchProperties, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, SearchClassifications matchClassifications, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PagingErrorException
userId - unique identifier for requesting user.entityTypeGUID - String unique identifier for the entity type of interest (null means any entity type).entitySubtypeGUIDs - optional list of the unique identifiers (guids) for subtypes of the entityTypeGUID to
include in the search results. Null means all subtypes.matchProperties - Optional list of entity property conditions to match.fromEntityElement - the starting element number of the entities to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, entities in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.matchClassifications - Optional list of entity classifications to match.asOfTime - Requests a historical query of the entity. Null means return the present values.sequencingProperty - String name of the entity property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result entities that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - a parameter is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PagingErrorException - the paging/sequencing parameters are set up incorrectly.findEntities(String, String, List, SearchProperties, int, List, SearchClassifications, Date, String, SequencingOrder, int)protected void findEntitiesByClassificationParameterValidation(String userId, String entityTypeGUID, String classificationName, InstanceProperties matchClassificationProperties, MatchCriteria matchCriteria, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, ClassificationErrorException, PropertyErrorException, PagingErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.entityTypeGUID - unique identifier for the type of entity requested. Null means any type of entity.classificationName - name of the classification a null is not valid.matchClassificationProperties - Optional list of entity properties to match (contains wildcards).matchCriteria - Enum defining how the match properties should be matched to the classifications in the repository.fromEntityElement - the starting element number of the entities to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, entities in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.asOfTime - Requests a historical query of the entity. Null means return the present values.sequencingProperty - String name of the entity property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result entities that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - a parameter is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.ClassificationErrorException - the classification request is not known to the metadata collection.PropertyErrorException - the properties specified are not valid for the requested type of
classification.PagingErrorException - the paging/sequencing parameters are set up incorrectly.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void findEntitiesByPropertyValueParameterValidation(String userId, String entityTypeGUID, String searchCriteria, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, PropertyErrorException, PagingErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.entityTypeGUID - GUID of the type of entity to search for. Null means all types will
be searched (could be slow so not recommended).searchCriteria - String expression contained in any of the property values within the entities
of the supplied type.fromEntityElement - the starting element number of the entities to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, entities in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.limitResultsByClassification - List of classifications that must be present on all returned entities.asOfTime - Requests a historical query of the entity. Null means return the present values.sequencingProperty - String name of the property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result entities that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - a parameter is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PropertyErrorException - the sequencing property specified is not valid for any of the requested types of
entity.PagingErrorException - the paging/sequencing parameters are set up incorrectly.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void findRelationshipsParameterValidation(String userId, String relationshipTypeGUID, List<String> relationshipSubtypeGUIDs, SearchProperties matchProperties, int fromRelationshipElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, PagingErrorException
userId - unique identifier for requesting user.relationshipTypeGUID - unique identifier (guid) for the relationship's type. Null means all types
(but may be slow so not recommended).relationshipSubtypeGUIDs - optional list of the unique identifiers (guids) for subtypes of the
relationshipTypeGUID to include in the search results. Null means all subtypes.matchProperties - Optional list of relationship property conditions to match.fromRelationshipElement - the starting element number of the entities to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.sequencingProperty - String name of the property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result relationships that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - one of the parameters is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PagingErrorException - the paging/sequencing parameters are set up incorrectly.findRelationships(String, String, List, SearchProperties, int, List, Date, String, SequencingOrder, int)protected void findRelationshipsByPropertyParameterValidation(String userId, String relationshipTypeGUID, InstanceProperties matchProperties, MatchCriteria matchCriteria, int fromRelationshipElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, PropertyErrorException, PagingErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.relationshipTypeGUID - unique identifier (guid) for the new relationship's type. Null means all types
(but may be slow so not recommended).matchProperties - list of properties used to narrow the search. The property values may include
regex style wild cards.matchCriteria - Enum defining how the properties should be matched to the relationships in the repository.fromRelationshipElement - the starting element number of the entities to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.sequencingProperty - String name of the property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result relationships that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - one of the parameters is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PropertyErrorException - the properties specified are not valid for any of the requested types of
relationships.PagingErrorException - the paging/sequencing parameters are set up incorrectly.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void findRelationshipsByPropertyValueParameterValidation(String userId, String relationshipTypeGUID, String searchCriteria, int fromRelationshipElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, PropertyErrorException, PagingErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.relationshipTypeGUID - GUID of the type of entity to search for. Null means all types will
be searched (could be slow so not recommended).searchCriteria - String expression contained in any of the property values within the entities
of the supplied type.fromRelationshipElement - Element number of the results to skip to when building the results list
to return. Zero means begin at the start of the results. This is used
to retrieve the results over a number of pages.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.sequencingProperty - String name of the property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result relationships that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - one of the parameters is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PropertyErrorException - there is a problem with one of the other parameters.PagingErrorException - the paging/sequencing parameters are set up incorrectly.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void getEntityNeighborhoodParameterValidation(String userId, String entityGUID, List<String> entityTypeGUIDs, List<String> relationshipTypeGUIDs, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, int level) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, EntityNotKnownException, PropertyErrorException, FunctionNotSupportedException, UserNotAuthorizedException
userId - unique identifier for requesting user.entityGUID - the starting point of the query.entityTypeGUIDs - list of entity types to include in the query results. Null means include
all entities found, irrespective of their type.relationshipTypeGUIDs - list of relationship types to include in the query results. Null means include
all relationships found, irrespective of their type.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.limitResultsByClassification - List of classifications that must be present on all returned entities.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.level - the number of the relationships out from the starting entity that the query will traverse to
gather results.InvalidParameterException - one of the parameters is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the entityGUID is not found in the metadata collection.PropertyErrorException - there is a problem with one of the other parameters.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void getLinkingEntitiesParameterValidation(String userId, String startEntityGUID, String endEntityGUID, List<InstanceStatus> limitResultsByStatus, Date asOfTime) throws InvalidParameterException, RepositoryErrorException, PropertyErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.startEntityGUID - The entity that is used to anchor the query.endEntityGUID - the other entity that defines the scope of the query.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PropertyErrorException - there is a problem with one of the other parameters.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void getRelatedEntitiesParameterValidation(String userId, String startEntityGUID, List<String> entityTypeGUIDs, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, EntityNotKnownException, PropertyErrorException, PagingErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.startEntityGUID - unique identifier of the starting entity.entityTypeGUIDs - list of types to search for. Null means any type.fromEntityElement - starting element for results list. Used in paging. Zero means first element.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.limitResultsByClassification - List of classifications that must be present on all returned entities.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.sequencingProperty - String name of the property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result entities that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - one of the parameters is invalid or null.TypeErrorException - one of the type guids passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the startEntityGUID
is not found in the metadata collection.PropertyErrorException - the sequencing property specified is not valid for any of the requested types of
entity.PagingErrorException - the paging/sequencing parameters are set up incorrectly.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail isEntityKnown(String userId, String guid) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
isEntityKnown in class OMRSMetadataCollectionuserId - unique identifier for requesting user.guid - String unique identifier for the entityInvalidParameterException - the guid is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntitySummary getEntitySummary(String userId, String guid) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, UserNotAuthorizedException
getEntitySummary in class OMRSMetadataCollectionuserId - unique identifier for requesting user.guid - String unique identifier for the entity.InvalidParameterException - the guid is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the requested entity instance is not known in the metadata collection.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail getEntityDetail(String userId, String guid) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, EntityProxyOnlyException, UserNotAuthorizedException
getEntityDetail in class OMRSMetadataCollectionuserId - unique identifier for requesting user.guid - String unique identifier for the entity.InvalidParameterException - the guid is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the requested entity instance is not known in the metadata collection.EntityProxyOnlyException - the requested entity instance is only a proxy in the metadata collection.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail getEntityDetail(String userId, String guid, Date asOfTime) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, EntityProxyOnlyException, FunctionNotSupportedException, UserNotAuthorizedException
getEntityDetail in class OMRSMetadataCollectionuserId - unique identifier for requesting user.guid - String unique identifier for the entity.asOfTime - the time used to determine which version of the entity that is desired.InvalidParameterException - the guid or date is null or date is for a future time.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the requested entity instance is not known in the metadata collection
at the time requested.EntityProxyOnlyException - the requested entity instance is only a proxy in the metadata collection.FunctionNotSupportedException - the repository does not support the asOfTime parameter.UserNotAuthorizedException - the userId is not permitted to perform this operation.public List<Relationship> getRelationshipsForEntity(String userId, String entityGUID, String relationshipTypeGUID, int fromRelationshipElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, EntityNotKnownException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserNotAuthorizedException
getRelationshipsForEntity in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityGUID - String unique identifier for the entity.relationshipTypeGUID - String GUID of the the type of relationship required (null for all).fromRelationshipElement - the starting element number of the relationships to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.sequencingProperty - String name of the property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - -- the maximum number of result classifications that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - a parameter is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the requested entity instance is not known in the metadata collection.PropertyErrorException - the sequencing property is not valid for the retrieved relationships.PagingErrorException - the paging/sequencing parameters are set up incorrectly.FunctionNotSupportedException - the repository does not support the asOfTime parameter.UserNotAuthorizedException - the userId is not permitted to perform this operation.public List<EntityDetail> findEntities(String userId, String entityTypeGUID, List<String> entitySubtypeGUIDs, SearchProperties matchProperties, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, SearchClassifications matchClassifications, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserNotAuthorizedException
findEntities in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityTypeGUID - String unique identifier for the entity type of interest (null means any entity type).entitySubtypeGUIDs - optional list of the unique identifiers (guids) for subtypes of the entityTypeGUID to
include in the search results. Null means all subtypes.matchProperties - Optional list of entity property conditions to match.fromEntityElement - the starting element number of the entities to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, entities in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.matchClassifications - Optional list of entity classifications to match.asOfTime - Requests a historical query of the entity. Null means return the present values.sequencingProperty - String name of the entity property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result entities that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - a parameter is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.PropertyErrorException - the properties specified are not valid for any of the requested types of
entity.PagingErrorException - the paging/sequencing parameters are set up incorrectly.FunctionNotSupportedException - the repository does not support this optional method.UserNotAuthorizedException - the userId is not permitted to perform this operation.public List<EntityDetail> findEntitiesByProperty(String userId, String entityTypeGUID, InstanceProperties matchProperties, MatchCriteria matchCriteria, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserNotAuthorizedException
findEntitiesByProperty in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityTypeGUID - String unique identifier for the entity type of interest (null means any entity type).matchProperties - Optional list of entity properties to match (where any String property's value should
be defined as a Java regular expression, even if it should be an exact match).matchCriteria - Enum defining how the match properties should be matched to the entities in the repository.fromEntityElement - the starting element number of the entities to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, entities in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.limitResultsByClassification - List of classifications that must be present on all returned entities.asOfTime - Requests a historical query of the entity. Null means return the present values.sequencingProperty - String name of the entity property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result entities that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - a parameter is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PropertyErrorException - the properties specified are not valid for any of the requested types of
entity.PagingErrorException - the paging/sequencing parameters are set up incorrectly.FunctionNotSupportedException - the repository does not support one of the provided parameters.UserNotAuthorizedException - the userId is not permitted to perform this operation.OMRSRepositoryHelper.getExactMatchRegex(String)public List<EntityDetail> findEntitiesByClassification(String userId, String entityTypeGUID, String classificationName, InstanceProperties matchClassificationProperties, MatchCriteria matchCriteria, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, ClassificationErrorException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserNotAuthorizedException
findEntitiesByClassification in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityTypeGUID - unique identifier for the type of entity requested. Null means any type of entity
(but could be slow so not recommended.classificationName - name of the classification, note a null is not valid.matchClassificationProperties - list of classification properties used to narrow the search (where any String
property's value should be defined as a Java regular expression, even if it
should be an exact match).matchCriteria - Enum defining how the match properties should be matched to the classifications in the repository.fromEntityElement - the starting element number of the entities to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, entities in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.asOfTime - Requests a historical query of the entity. Null means return the present values.sequencingProperty - String name of the entity property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result entities that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - a parameter is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.ClassificationErrorException - the classification request is not known to the metadata collection.PropertyErrorException - the properties specified are not valid for the requested type of
classification.PagingErrorException - the paging/sequencing parameters are set up incorrectly.FunctionNotSupportedException - the repository does not support one of the provided parameters.UserNotAuthorizedException - the userId is not permitted to perform this operation.OMRSRepositoryHelper.getExactMatchRegex(String)public List<EntityDetail> findEntitiesByPropertyValue(String userId, String entityTypeGUID, String searchCriteria, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserNotAuthorizedException
findEntitiesByPropertyValue in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityTypeGUID - GUID of the type of entity to search for. Null means all types will
be searched (could be slow so not recommended).searchCriteria - String Java regular expression used to match against any of the String property values
within entity instances of the specified type(s).
This parameter must not be null.fromEntityElement - the starting element number of the entities to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, entities in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.limitResultsByClassification - List of classifications that must be present on all returned entities.asOfTime - Requests a historical query of the entity. Null means return the present values.sequencingProperty - String name of the property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result entities that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - a parameter is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PropertyErrorException - the sequencing property specified is not valid for any of the requested types of
entity.PagingErrorException - the paging/sequencing parameters are set up incorrectly.FunctionNotSupportedException - the repository does not support one of the provided parameters.UserNotAuthorizedException - the userId is not permitted to perform this operation.OMRSRepositoryHelper.getExactMatchRegex(String),
OMRSRepositoryHelper.getContainsRegex(String)public Relationship isRelationshipKnown(String userId, String guid) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
isRelationshipKnown in class OMRSMetadataCollectionuserId - unique identifier for requesting user.guid - String unique identifier for the relationship.InvalidParameterException - the guid is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.UserNotAuthorizedException - the userId is not permitted to perform this operation.public Relationship getRelationship(String userId, String guid) throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, UserNotAuthorizedException
getRelationship in class OMRSMetadataCollectionuserId - unique identifier for requesting user.guid - String unique identifier for the relationship.InvalidParameterException - the guid is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.RelationshipNotKnownException - the metadata collection does not have a relationship with
the requested GUID stored.UserNotAuthorizedException - the userId is not permitted to perform this operation.public Relationship getRelationship(String userId, String guid, Date asOfTime) throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, FunctionNotSupportedException, UserNotAuthorizedException
getRelationship in class OMRSMetadataCollectionuserId - unique identifier for requesting user.guid - String unique identifier for the relationship.asOfTime - the time used to determine which version of the entity that is desired.InvalidParameterException - the guid or date is null or the date is for a future timeRepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.RelationshipNotKnownException - the requested entity instance is not known in the metadata collection
at the time requested.FunctionNotSupportedException - the repository does not support the asOfTime parameter.UserNotAuthorizedException - the userId is not permitted to perform this operation.public List<Relationship> findRelationships(String userId, String relationshipTypeGUID, List<String> relationshipSubtypeGUIDs, SearchProperties matchProperties, int fromRelationshipElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserNotAuthorizedException
findRelationships in class OMRSMetadataCollectionuserId - unique identifier for requesting user.relationshipTypeGUID - unique identifier (guid) for the relationship's type. Null means all types
(but may be slow so not recommended).relationshipSubtypeGUIDs - optional list of the unique identifiers (guids) for subtypes of the
relationshipTypeGUID to include in the search results. Null means all subtypes.matchProperties - Optional list of relationship property conditions to match.fromRelationshipElement - the starting element number of the entities to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.sequencingProperty - String name of the property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result relationships that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - one of the parameters is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PropertyErrorException - the properties specified are not valid for any of the requested types of
relationships.PagingErrorException - the paging/sequencing parameters are set up incorrectly.FunctionNotSupportedException - the repository does not support one of the provided parameters.UserNotAuthorizedException - the userId is not permitted to perform this operation.OMRSRepositoryHelper.getExactMatchRegex(String)public List<Relationship> findRelationshipsByProperty(String userId, String relationshipTypeGUID, InstanceProperties matchProperties, MatchCriteria matchCriteria, int fromRelationshipElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserNotAuthorizedException
findRelationshipsByProperty in class OMRSMetadataCollectionuserId - unique identifier for requesting user.relationshipTypeGUID - unique identifier (guid) for the new relationship's type. Null means all types
(but may be slow so not recommended).matchProperties - Optional list of relationship properties to match (where any String property's value should
be defined as a Java regular expression, even if it should be an exact match).matchCriteria - Enum defining how the properties should be matched to the relationships in the repository.fromRelationshipElement - the starting element number of the entities to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.sequencingProperty - String name of the property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result relationships that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - one of the parameters is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PropertyErrorException - the properties specified are not valid for any of the requested types of
relationships.PagingErrorException - the paging/sequencing parameters are set up incorrectly.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.OMRSRepositoryHelper.getExactMatchRegex(String)public List<Relationship> findRelationshipsByPropertyValue(String userId, String relationshipTypeGUID, String searchCriteria, int fromRelationshipElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserNotAuthorizedException
findRelationshipsByPropertyValue in class OMRSMetadataCollectionuserId - unique identifier for requesting user.relationshipTypeGUID - GUID of the type of entity to search for. Null means all types will
be searched (could be slow so not recommended).searchCriteria - String Java regular expression used to match against any of the String property values
within the relationship instances of the specified type(s).
This parameter must not be null.fromRelationshipElement - Element number of the results to skip to when building the results list
to return. Zero means begin at the start of the results. This is used
to retrieve the results over a number of pages.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.sequencingProperty - String name of the property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result relationships that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - one of the parameters is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PropertyErrorException - there is a problem with one of the other parameters.PagingErrorException - the paging/sequencing parameters are set up incorrectly.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.OMRSRepositoryHelper.getExactMatchRegex(String),
OMRSRepositoryHelper.getContainsRegex(String)public InstanceGraph getLinkingEntities(String userId, String startEntityGUID, String endEntityGUID, List<InstanceStatus> limitResultsByStatus, Date asOfTime) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, PropertyErrorException, FunctionNotSupportedException, UserNotAuthorizedException
getLinkingEntities in class OMRSMetadataCollectionuserId - unique identifier for requesting user.startEntityGUID - The entity that is used to anchor the query.endEntityGUID - the other entity that defines the scope of the query.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by either the startEntityGUID or the endEntityGUID
is not found in the metadata collection.PropertyErrorException - there is a problem with one of the other parameters.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.public InstanceGraph getEntityNeighborhood(String userId, String entityGUID, List<String> entityTypeGUIDs, List<String> relationshipTypeGUIDs, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, int level) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, EntityNotKnownException, PropertyErrorException, FunctionNotSupportedException, UserNotAuthorizedException
getEntityNeighborhood in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityGUID - the starting point of the query.entityTypeGUIDs - list of entity types to include in the query results. Null means include
all entities found, irrespective of their type.relationshipTypeGUIDs - list of relationship types to include in the query results. Null means include
all relationships found, irrespective of their type.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.limitResultsByClassification - List of classifications that must be present on all returned entities.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.level - the number of the relationships out from the starting entity that the query will traverse to
gather results.InvalidParameterException - one of the parameters is invalid or null.TypeErrorException - the type guid passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the entityGUID is not found in the metadata collection.PropertyErrorException - there is a problem with one of the other parameters.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.public List<EntityDetail> getRelatedEntities(String userId, String startEntityGUID, List<String> entityTypeGUIDs, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, EntityNotKnownException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserNotAuthorizedException
getRelatedEntities in class OMRSMetadataCollectionuserId - unique identifier for requesting user.startEntityGUID - unique identifier of the starting entity.entityTypeGUIDs - list of types to search for. Null means any type.fromEntityElement - starting element for results list. Used in paging. Zero means first element.limitResultsByStatus - By default, relationships in all statuses are returned. However, it is possible
to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all
status values.limitResultsByClassification - List of classifications that must be present on all returned entities.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.sequencingProperty - String name of the property that is to be used to sequence the results.
Null means do not sequence on a property name (see SequencingOrder).sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result entities that can be returned on this request. Zero means
unrestricted return results size.InvalidParameterException - one of the parameters is invalid or null.TypeErrorException - one of the type guids passed on the request is not known by the
metadata collection.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the startEntityGUID
is not found in the metadata collection.PropertyErrorException - the sequencing property specified is not valid for any of the requested types of
entity.PagingErrorException - the paging/sequencing parameters are set up incorrectly.FunctionNotSupportedException - the repository does not support this call.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected TypeDef addEntityParameterValidation(String userId, String entityTypeGUID, InstanceProperties initialProperties, List<Classification> initialClassifications, InstanceStatus initialStatus, String methodName) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, ClassificationErrorException, StatusNotSupportedException
userId - unique identifier for requesting user.entityTypeGUID - unique identifier (guid) for the new entity's type.initialProperties - initial list of properties for the new entity; null means no properties.initialClassifications - initial list of classifications for the new entity; null means no classifications.initialStatus - initial status typically set to DRAFT, PREPARED or ACTIVE.
not have any relationships at this stage.methodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this entity's type.ClassificationErrorException - one or more of the requested classifications are either not known or
not defined for this entity type.StatusNotSupportedException - the metadata repository hosting the metadata collection does not support
the requested status.@Deprecated protected TypeDef addEntityParameterValidation(String userId, String entityTypeGUID, InstanceProperties initialProperties, List<Classification> initialClassifications, InstanceStatus initialStatus) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, ClassificationErrorException, StatusNotSupportedException, UserNotAuthorizedException
userId - unique identifier for requesting user.entityTypeGUID - unique identifier (guid) for the new entity's type.initialProperties - initial list of properties for the new entity; null means no properties.initialClassifications - initial list of classifications for the new entity; null means no classifications.initialStatus - initial status typically set to DRAFT, PREPARED or ACTIVE.
not have any relationships at this stage.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this entity's type.ClassificationErrorException - one or more of the requested classifications are either not known or
not defined for this entity type.StatusNotSupportedException - the metadata repository hosting the metadata collection does not support
the requested status.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected TypeDef addExternalEntityParameterValidation(String userId, String entityTypeGUID, String externalSourceGUID, InstanceProperties initialProperties, List<Classification> initialClassifications, InstanceStatus initialStatus, String methodName) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, ClassificationErrorException, StatusNotSupportedException, UserNotAuthorizedException
userId - unique identifier for requesting user.entityTypeGUID - unique identifier (guid) for the new entity's type.externalSourceGUID - unique identifier (guid) for the external source.initialProperties - initial list of properties for the new entity; null means no properties.initialClassifications - initial list of classifications for the new entity null means no classifications.initialStatus - initial status typically DRAFT, PREPARED or ACTIVE.methodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this entity's type.ClassificationErrorException - one or more of the requested classifications are either not known or
not defined for this entity type.StatusNotSupportedException - the metadata repository hosting the metadata collection does not support
the requested status.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void addEntityProxyParameterValidation(String userId, EntityProxy entityProxy) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.entityProxy - details of entity to add.InvalidParameterException - the entity proxy is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.protected void updateInstanceStatusParameterValidation(String userId, String entityGUID, InstanceStatus newStatus, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.entityGUID - unique identifier (guid) for the requested entity.newStatus - new InstanceStatus for the entity.methodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.protected void updateInstancePropertiesPropertyValidation(String userId, String instanceGUID, InstanceProperties properties, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.instanceGUID - String unique identifier (guid) for the entity.properties - a list of properties to change.methodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.protected void manageInstanceParameterValidation(String userId, String instanceGUID, String instanceGUIDParameterName, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.instanceGUID - String unique identifier (guid) for the instance.instanceGUIDParameterName - name of parameter for instance's GUIDmethodName - name of the calling method.InvalidParameterException - the guid is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.@Deprecated protected void manageInstanceParameterValidation(String userId, String instanceGUID, String methodName) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.instanceGUID - String unique identifier (guid) for the instance.methodName - name of the calling method.InvalidParameterException - the guid is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void manageInstanceParameterValidation(String userId, String typeDefGUID, String typeDefName, String instanceGUID, String instanceGUIDParameterName, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.typeDefGUID - unique identifier of the type of the instance to delete.typeDefName - unique name of the type of the instance to delete.instanceGUID - String unique identifier (guid) for the instance.instanceGUIDParameterName - name of parameter for instance's GUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.@Deprecated protected void removeInstanceParameterValidation(String userId, String typeDefGUID, String typeDefName, String instanceGUID, String methodName) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.typeDefGUID - unique identifier of the type of the instance to delete.typeDefName - unique name of the type of the instance to delete.instanceGUID - String unique identifier (guid) for the instance.methodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected TypeDef classifyEntityParameterValidation(String userId, String entityGUID, String classificationName, InstanceProperties classificationProperties, String methodName) throws InvalidParameterException, RepositoryErrorException, PropertyErrorException
userId - unique identifier for requesting user.entityGUID - String unique identifier (guid) for the entity.classificationName - String name for the classification.classificationProperties - list of properties to set in the classification.methodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this classification type@Deprecated protected TypeDef classifyEntityParameterValidation(String userId, String entityGUID, String classificationName, InstanceProperties classificationProperties) throws InvalidParameterException, RepositoryErrorException, PropertyErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.entityGUID - String unique identifier (guid) for the entity.classificationName - String name for the classification.classificationProperties - list of properties to set in the classification.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this classification typeUserNotAuthorizedException - the userId is not permitted to perform this operation.protected void declassifyEntityParameterValidation(String userId, String entityGUID, String classificationName, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.entityGUID - String unique identifier (guid) for the entity.classificationName - String name for the classification.methodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.@Deprecated protected void declassifyEntityParameterValidation(String userId, String entityGUID, String classificationName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.entityGUID - String unique identifier (guid) for the entity.classificationName - String name for the classification.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.@Deprecated protected TypeDef updateEntityClassificationParameterValidation(String userId, String entityGUID, String classificationName, InstanceProperties properties) throws InvalidParameterException, RepositoryErrorException, PropertyErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.entityGUID - String unique identifier (guid) for the entity.classificationName - String name for the classification.properties - list of properties for the classification.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this classification typeUserNotAuthorizedException - the userId is not permitted to perform this operation.protected TypeDef addRelationshipParameterValidation(String userId, String relationshipTypeGUID, InstanceProperties initialProperties, String entityOneGUID, String entityTwoGUID, InstanceStatus initialStatus, String methodName) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, StatusNotSupportedException, UserNotAuthorizedException
userId - unique identifier for requesting user.relationshipTypeGUID - unique identifier (guid) for the new relationship's type.initialProperties - initial list of properties for the new entity; null means no properties.entityOneGUID - the unique identifier of one of the entities that the relationship is connecting together.entityTwoGUID - the unique identifier of the other entity that the relationship is connecting together.initialStatus - initial status typically set to DRAFT, PREPARED or ACTIVE.methodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this relationship's type.StatusNotSupportedException - the metadata repository hosting the metadata collection does not support
the requested status.UserNotAuthorizedException - the userId is not permitted to perform this operation.@Deprecated protected TypeDef addRelationshipParameterValidation(String userId, String relationshipTypeGUID, InstanceProperties initialProperties, String entityOneGUID, String entityTwoGUID, InstanceStatus initialStatus) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, StatusNotSupportedException, UserNotAuthorizedException
userId - unique identifier for requesting user.relationshipTypeGUID - unique identifier (guid) for the new relationship's type.initialProperties - initial list of properties for the new entity; null means no properties.entityOneGUID - the unique identifier of one of the entities that the relationship is connecting together.entityTwoGUID - the unique identifier of the other entity that the relationship is connecting together.initialStatus - initial status typically set to DRAFT, PREPARED or ACTIVE.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this relationship's type.StatusNotSupportedException - the metadata repository hosting the metadata collection does not support
the requested status.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected TypeDef addExternalRelationshipParameterValidation(String userId, String relationshipTypeGUID, String externalSourceGUID, InstanceProperties initialProperties, String entityOneGUID, String entityTwoGUID, InstanceStatus initialStatus, String methodName) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, StatusNotSupportedException, UserNotAuthorizedException
userId - unique identifier for requesting user.relationshipTypeGUID - unique identifier (guid) for the new relationship's type.externalSourceGUID - unique identifier (guid) for the external source.initialProperties - initial list of properties for the new entity; null means no properties.entityOneGUID - the unique identifier of one of the entities that the relationship is connecting together.entityTwoGUID - the unique identifier of the other entity that the relationship is connecting together.initialStatus - initial status; typically DRAFT, PREPARED or ACTIVE.methodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this relationship's type.StatusNotSupportedException - the metadata repository hosting the metadata collection does not support
the requested status.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail addEntity(String userId, String entityTypeGUID, InstanceProperties initialProperties, List<Classification> initialClassifications, InstanceStatus initialStatus) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, ClassificationErrorException, StatusNotSupportedException, FunctionNotSupportedException, UserNotAuthorizedException
addEntity in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityTypeGUID - unique identifier (guid) for the new entity's type.initialProperties - initial list of properties for the new entity; null means no properties.initialClassifications - initial list of classifications for the new entity; null means no classifications.initialStatus - initial status typically set to DRAFT, PREPARED or ACTIVE.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this entity's type.ClassificationErrorException - one or more of the requested classifications are either not known or
not defined for this entity type.StatusNotSupportedException - the metadata repository hosting the metadata collection does not support
the requested status.FunctionNotSupportedException - the repository does not support maintenance of metadata.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail addExternalEntity(String userId, String entityTypeGUID, String externalSourceGUID, String externalSourceName, InstanceProperties initialProperties, List<Classification> initialClassifications, InstanceStatus initialStatus) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, ClassificationErrorException, StatusNotSupportedException, FunctionNotSupportedException, UserNotAuthorizedException
addExternalEntity in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityTypeGUID - unique identifier (guid) for the new entity's type.externalSourceGUID - unique identifier (guid) for the external source.externalSourceName - unique name for the external source.initialProperties - initial list of properties for the new entity; null means no properties.initialClassifications - initial list of classifications for the new entity null means no classifications.initialStatus - initial status typically DRAFT, PREPARED or ACTIVE.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this entity's type.ClassificationErrorException - one or more of the requested classifications are either not known or
not defined for this entity type.StatusNotSupportedException - the metadata repository hosting the metadata collection does not support
the requested status.FunctionNotSupportedException - the repository does not support maintenance of metadata.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void addEntityProxy(String userId, EntityProxy entityProxy) throws InvalidParameterException, RepositoryErrorException, FunctionNotSupportedException, UserNotAuthorizedException
addEntityProxy in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityProxy - details of entity to add.InvalidParameterException - the entity proxy is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.FunctionNotSupportedException - the repository does not support entity proxies as first class elements.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail updateEntityStatus(String userId, String entityGUID, InstanceStatus newStatus) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, StatusNotSupportedException, FunctionNotSupportedException, UserNotAuthorizedException
updateEntityStatus in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityGUID - unique identifier (guid) for the requested entity.newStatus - new InstanceStatus for the entity.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the guid is not found in the metadata collection.StatusNotSupportedException - invalid status for instance.FunctionNotSupportedException - the repository does not support maintenance of metadata.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail updateEntityProperties(String userId, String entityGUID, InstanceProperties properties) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, PropertyErrorException, FunctionNotSupportedException, UserNotAuthorizedException
updateEntityProperties in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityGUID - String unique identifier (guid) for the entity.properties - a list of properties to change.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the guid is not found in the metadata collectionPropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this entity's typeFunctionNotSupportedException - the repository does not support maintenance of metadata.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail undoEntityUpdate(String userId, String entityGUID) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, FunctionNotSupportedException, UserNotAuthorizedException
undoEntityUpdate in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityGUID - String unique identifier (guid) for the entity.InvalidParameterException - the guid is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the guid is not found in the metadata collection.FunctionNotSupportedException - the repository does not support undo.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail deleteEntity(String userId, String typeDefGUID, String typeDefName, String obsoleteEntityGUID) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, FunctionNotSupportedException, UserNotAuthorizedException
deleteEntity in class OMRSMetadataCollectionuserId - unique identifier for requesting user.typeDefGUID - unique identifier of the type of the entity to delete.typeDefName - unique name of the type of the entity to delete.obsoleteEntityGUID - String unique identifier (guid) for the entity.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the guid is not found in the metadata collection.FunctionNotSupportedException - the metadata repository hosting the metadata collection does not support
soft-deletes (use purgeEntity() to remove the entity permanently).UserNotAuthorizedException - the userId is not permitted to perform this operation.public void purgeEntity(String userId, String typeDefGUID, String typeDefName, String deletedEntityGUID) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, EntityNotDeletedException, FunctionNotSupportedException, UserNotAuthorizedException
purgeEntity in class OMRSMetadataCollectionuserId - unique identifier for requesting user.typeDefGUID - unique identifier of the type of the entity to purge.typeDefName - unique name of the type of the entity to purge.deletedEntityGUID - String unique identifier (guid) for the entity.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the guid is not found in the metadata collectionEntityNotDeletedException - the entity is not in DELETED status and so can not be purgedFunctionNotSupportedException - the repository does not support maintenance of metadata.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail restoreEntity(String userId, String deletedEntityGUID) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, EntityNotDeletedException, FunctionNotSupportedException, UserNotAuthorizedException
restoreEntity in class OMRSMetadataCollectionuserId - unique identifier for requesting user.deletedEntityGUID - String unique identifier (guid) for the entity.InvalidParameterException - the guid is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the guid is not found in the metadata collectionEntityNotDeletedException - the entity is currently not in DELETED status and so it can not be restoredFunctionNotSupportedException - the repository does not support soft-deletes.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail classifyEntity(String userId, String entityGUID, String classificationName, InstanceProperties classificationProperties) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, ClassificationErrorException, PropertyErrorException, FunctionNotSupportedException, UserNotAuthorizedException
classifyEntity in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityGUID - String unique identifier (guid) for the entity.classificationName - String name for the classification.classificationProperties - list of properties to set in the classification.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the guid is not found in the metadata collectionClassificationErrorException - the requested classification is either not known or not valid
for the entity.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this classification typeFunctionNotSupportedException - the repository does not support maintenance of metadata.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail declassifyEntity(String userId, String entityGUID, String classificationName) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, ClassificationErrorException, FunctionNotSupportedException, UserNotAuthorizedException
declassifyEntity in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityGUID - String unique identifier (guid) for the entity.classificationName - String name for the classification.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the guid is not found in the metadata collectionClassificationErrorException - the requested classification is not set on the entity.FunctionNotSupportedException - the repository does not support maintenance of metadata.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail updateEntityClassification(String userId, String entityGUID, String classificationName, InstanceProperties properties) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, ClassificationErrorException, PropertyErrorException, FunctionNotSupportedException, UserNotAuthorizedException
updateEntityClassification in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityGUID - String unique identifier (guid) for the entity.classificationName - String name for the classification.properties - list of properties for the classification.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the guid is not found in the metadata collectionClassificationErrorException - the requested classification is not attached to the classification.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this classification typeFunctionNotSupportedException - the repository does not support maintenance of metadata.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected EntityProxy getEntityProxy(String userId, String entityGUID, String methodName) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, UserNotAuthorizedException
userId - calling userentityGUID - entity guidmethodName - calling methodInvalidParameterException - one of the parameters is nullRepositoryErrorException - there is a problem communicating with the remote repositoryEntityNotKnownException - the guid is not recognisedUserNotAuthorizedException - the calling user can not access this entity.public Relationship addRelationship(String userId, String relationshipTypeGUID, InstanceProperties initialProperties, String entityOneGUID, String entityTwoGUID, InstanceStatus initialStatus) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, EntityNotKnownException, StatusNotSupportedException, FunctionNotSupportedException, UserNotAuthorizedException
addRelationship in class OMRSMetadataCollectionuserId - unique identifier for requesting user.relationshipTypeGUID - unique identifier (guid) for the new relationship's type.initialProperties - initial list of properties for the new entity; null means no properties.entityOneGUID - the unique identifier of one of the entities that the relationship is connecting together.entityTwoGUID - the unique identifier of the other entity that the relationship is connecting together.initialStatus - initial status typically set to DRAFT, PREPARED or ACTIVE.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this relationship's type.EntityNotKnownException - one of the requested entities is not known in the metadata collection.StatusNotSupportedException - the metadata repository hosting the metadata collection does not support
the requested status.FunctionNotSupportedException - the repository does not support maintenance of metadata.UserNotAuthorizedException - the userId is not permitted to perform this operation.public Relationship addExternalRelationship(String userId, String relationshipTypeGUID, String externalSourceGUID, String externalSourceName, InstanceProperties initialProperties, String entityOneGUID, String entityTwoGUID, InstanceStatus initialStatus) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, EntityNotKnownException, StatusNotSupportedException, UserNotAuthorizedException, FunctionNotSupportedException
addExternalRelationship in class OMRSMetadataCollectionuserId - unique identifier for requesting user.relationshipTypeGUID - unique identifier (guid) for the new relationship's type.externalSourceGUID - unique identifier (guid) for the external source.externalSourceName - unique name for the external source.initialProperties - initial list of properties for the new entity; null means no properties.entityOneGUID - the unique identifier of one of the entities that the relationship is connecting together.entityTwoGUID - the unique identifier of the other entity that the relationship is connecting together.initialStatus - initial status; typically DRAFT, PREPARED or ACTIVE.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this relationship's type.EntityNotKnownException - one of the requested entities is not known in the metadata collection.StatusNotSupportedException - the metadata repository hosting the metadata collection does not support
the requested status.UserNotAuthorizedException - the userId is not permitted to perform this operation.FunctionNotSupportedException - the repository does not support maintenance of metadata.public Relationship updateRelationshipStatus(String userId, String relationshipGUID, InstanceStatus newStatus) throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, StatusNotSupportedException, FunctionNotSupportedException, UserNotAuthorizedException
updateRelationshipStatus in class OMRSMetadataCollectionuserId - unique identifier for requesting user.relationshipGUID - String unique identifier (guid) for the relationship.newStatus - new InstanceStatus for the relationship.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.RelationshipNotKnownException - the requested relationship is not known in the metadata collection.StatusNotSupportedException - invalid status for instance.FunctionNotSupportedException - the repository does not support maintenance of metadata.UserNotAuthorizedException - the userId is not permitted to perform this operation.public Relationship updateRelationshipProperties(String userId, String relationshipGUID, InstanceProperties properties) throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, PropertyErrorException, FunctionNotSupportedException, UserNotAuthorizedException
updateRelationshipProperties in class OMRSMetadataCollectionuserId - unique identifier for requesting user.relationshipGUID - String unique identifier (guid) for the relationship.properties - list of the properties to update.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.RelationshipNotKnownException - the requested relationship is not known in the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this relationship's type.FunctionNotSupportedException - the repository does not support maintenance of metadata.UserNotAuthorizedException - the userId is not permitted to perform this operation.public Relationship undoRelationshipUpdate(String userId, String relationshipGUID) throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, FunctionNotSupportedException, UserNotAuthorizedException
undoRelationshipUpdate in class OMRSMetadataCollectionuserId - unique identifier for requesting user.relationshipGUID - String unique identifier (guid) for the relationship.InvalidParameterException - the guid is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.RelationshipNotKnownException - the requested relationship is not known in the metadata collection.FunctionNotSupportedException - the repository does not support undo.UserNotAuthorizedException - the userId is not permitted to perform this operation.public Relationship deleteRelationship(String userId, String typeDefGUID, String typeDefName, String obsoleteRelationshipGUID) throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, FunctionNotSupportedException, UserNotAuthorizedException
deleteRelationship in class OMRSMetadataCollectionuserId - unique identifier for requesting user.typeDefGUID - unique identifier of the type of the relationship to delete.typeDefName - unique name of the type of the relationship to delete.obsoleteRelationshipGUID - String unique identifier (guid) for the relationship.InvalidParameterException - one of the parameters is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.RelationshipNotKnownException - the requested relationship is not known in the metadata collection.FunctionNotSupportedException - the metadata repository hosting the metadata collection does not support
soft-deletes.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void purgeRelationship(String userId, String typeDefGUID, String typeDefName, String deletedRelationshipGUID) throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, RelationshipNotDeletedException, FunctionNotSupportedException, UserNotAuthorizedException
purgeRelationship in class OMRSMetadataCollectionuserId - unique identifier for requesting user.typeDefGUID - unique identifier of the type of the relationship to purge.typeDefName - unique name of the type of the relationship to purge.deletedRelationshipGUID - String unique identifier (guid) for the relationship.InvalidParameterException - one of the parameters is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.RelationshipNotKnownException - the requested relationship is not known in the metadata collection.RelationshipNotDeletedException - the requested relationship is not in DELETED status.UserNotAuthorizedException - the userId is not permitted to perform this operation.FunctionNotSupportedException - the repository does not support maintenance of metadata.public Relationship restoreRelationship(String userId, String deletedRelationshipGUID) throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, RelationshipNotDeletedException, FunctionNotSupportedException, UserNotAuthorizedException
restoreRelationship in class OMRSMetadataCollectionuserId - unique identifier for requesting user.deletedRelationshipGUID - String unique identifier (guid) for the relationship.InvalidParameterException - the guid is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.RelationshipNotKnownException - the requested relationship is not known in the metadata collection.RelationshipNotDeletedException - the requested relationship is not in DELETED status.FunctionNotSupportedException - the repository does not support soft-deletes.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void reIdentifyInstanceParameterValidation(String userId, String typeDefGUID, String typeDefName, String instanceGUID, String instanceParameterName, String newInstanceGUID, String newInstanceParameterName, String methodName) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.typeDefGUID - the guid of the TypeDef for the instance - used to verify the entity identity.typeDefName - the name of the TypeDef for the instance - used to verify the entity identity.instanceGUID - unique identifier of the instanceinstanceParameterName - name of original instance GUID parameternewInstanceGUID - new unique identifier for the instancenewInstanceParameterName - name of new instance GUID's parametermethodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void reTypeInstanceParameterValidation(String userId, String instanceGUID, String instanceParameterName, TypeDefCategory expectedTypeDefCategory, TypeDefSummary currentTypeDefSummary, TypeDefSummary newTypeDefSummary, String methodName) throws InvalidParameterException, RepositoryErrorException, TypeErrorException
userId - unique identifier for requesting user.instanceGUID - unique identifier of the instanceinstanceParameterName - name of instance GUID parameterexpectedTypeDefCategory - the category of the instancecurrentTypeDefSummary - the current typenewTypeDefSummary - the new typemethodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.protected void reHomeInstanceParameterValidation(String userId, String instanceGUID, String instanceParameterName, String typeDefGUID, String typeDefName, String homeMetadataCollectionId, String newHomeMetadataCollectionId, String methodName) throws InvalidParameterException, RepositoryErrorException
userId - unique identifier for requesting user.instanceGUID - unique identifier of the instanceinstanceParameterName - name of instance GUID parametertypeDefGUID - unique identifier of typetypeDefName - unique name of typehomeMetadataCollectionId - existing homenewHomeMetadataCollectionId - new homemethodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository.public EntityDetail reIdentifyEntity(String userId, String typeDefGUID, String typeDefName, String entityGUID, String newEntityGUID) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, FunctionNotSupportedException, UserNotAuthorizedException
reIdentifyEntity in class OMRSMetadataCollectionuserId - unique identifier for requesting user.typeDefGUID - the guid of the TypeDef for the entity - used to verify the entity identity.typeDefName - the name of the TypeDef for the entity - used to verify the entity identity.entityGUID - the existing identifier for the entity.newEntityGUID - new unique identifier for the entity.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the guid is not found in the metadata collection.FunctionNotSupportedException - the repository does not support the re-identification of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail reTypeEntity(String userId, String entityGUID, TypeDefSummary currentTypeDefSummary, TypeDefSummary newTypeDefSummary) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, ClassificationErrorException, EntityNotKnownException, FunctionNotSupportedException, UserNotAuthorizedException
reTypeEntity in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityGUID - the unique identifier for the entity to change.currentTypeDefSummary - the current details of the TypeDef for the entity used to verify the entity identitynewTypeDefSummary - details of this entity's new TypeDef.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - The properties in the instance are incompatible with the requested type.ClassificationErrorException - the entity's classifications are not valid for the new type.EntityNotKnownException - the entity identified by the guid is not found in the metadata collection.FunctionNotSupportedException - the repository does not support the re-typing of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public EntityDetail reHomeEntity(String userId, String entityGUID, String typeDefGUID, String typeDefName, String homeMetadataCollectionId, String newHomeMetadataCollectionId, String newHomeMetadataCollectionName) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, FunctionNotSupportedException, UserNotAuthorizedException
reHomeEntity in class OMRSMetadataCollectionuserId - unique identifier for requesting user.entityGUID - the unique identifier for the entity to change.typeDefGUID - the guid of the TypeDef for the entity used to verify the entity identity.typeDefName - the name of the TypeDef for the entity used to verify the entity identity.homeMetadataCollectionId - the existing identifier for this entity's home.newHomeMetadataCollectionId - unique identifier for the new home metadata collection/repository.newHomeMetadataCollectionName - display name for the new home metadata collection/repository.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the guid is not found in the metadata collection.FunctionNotSupportedException - the repository does not support the re-homing of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public Relationship reIdentifyRelationship(String userId, String typeDefGUID, String typeDefName, String relationshipGUID, String newRelationshipGUID) throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, FunctionNotSupportedException, UserNotAuthorizedException
reIdentifyRelationship in class OMRSMetadataCollectionuserId - unique identifier for requesting user.typeDefGUID - the guid of the TypeDef for the relationship used to verify the relationship identity.typeDefName - the name of the TypeDef for the relationship used to verify the relationship identity.relationshipGUID - the existing identifier for the relationship.newRelationshipGUID - the new unique identifier for the relationship.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.RelationshipNotKnownException - the relationship identified by the guid is not found in the
metadata collection.FunctionNotSupportedException - the repository does not support the re-identification of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public Relationship reTypeRelationship(String userId, String relationshipGUID, TypeDefSummary currentTypeDefSummary, TypeDefSummary newTypeDefSummary) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, RelationshipNotKnownException, FunctionNotSupportedException, UserNotAuthorizedException
reTypeRelationship in class OMRSMetadataCollectionuserId - unique identifier for requesting user.relationshipGUID - the unique identifier for the relationship.currentTypeDefSummary - the details of the TypeDef for the relationship used to verify the relationship identity.newTypeDefSummary - details of this relationship's new TypeDef.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - The properties in the instance are incompatible with the requested type.RelationshipNotKnownException - the relationship identified by the guid is not found in the
metadata collection.FunctionNotSupportedException - the repository does not support the re-typing of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public Relationship reHomeRelationship(String userId, String relationshipGUID, String typeDefGUID, String typeDefName, String homeMetadataCollectionId, String newHomeMetadataCollectionId, String newHomeMetadataCollectionName) throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, FunctionNotSupportedException, UserNotAuthorizedException
reHomeRelationship in class OMRSMetadataCollectionuserId - unique identifier for requesting user.relationshipGUID - the unique identifier for the relationship.typeDefGUID - the guid of the TypeDef for the relationship used to verify the relationship identity.typeDefName - the name of the TypeDef for the relationship used to verify the relationship identity.homeMetadataCollectionId - the existing identifier for this relationship's home.newHomeMetadataCollectionId - unique identifier for the new home metadata collection/repository.newHomeMetadataCollectionName - display name for the new home metadata collection/repository.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.RelationshipNotKnownException - the relationship identified by the guid is not found in the
metadata collection.FunctionNotSupportedException - the repository does not support the re-homing of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void manageReferenceInstanceParameterValidation(String userId, String typeDefGUID, String typeDefName, String instanceGUID, String instanceGUIDParameterName, String homeMetadataCollectionId, String homeParameterName, String methodName) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.typeDefGUID - unique identifier of the type of the instance to delete.typeDefName - unique name of the type of the instance to delete.instanceGUID - String unique identifier (guid) for the instance.instanceGUIDParameterName - name of parameter for instance's GUIDhomeMetadataCollectionId - identifier of the metadata collection that is the home to this instance.homeParameterName - name of homeMetadataCollectionId parametermethodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected void referenceInstanceParameterValidation(String userId, InstanceHeader instanceHeader, String instanceParameterName, String methodName) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
userId - unique identifier for requesting user.instanceHeader - header for the instance.instanceParameterName - name of parameter for instance's GUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void saveEntityReferenceCopy(String userId, EntityDetail entity) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, HomeEntityException, EntityConflictException, InvalidEntityException, FunctionNotSupportedException, UserNotAuthorizedException
saveEntityReferenceCopy in class OMRSMetadataCollectionuserId - unique identifier for requesting server.entity - details of the entity to save.InvalidParameterException - the entity is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this entity's type.HomeEntityException - the entity belongs to the local repository so creating a reference
copy would be invalid.EntityConflictException - the new entity conflicts with an existing entity.InvalidEntityException - the new entity has invalid contents.FunctionNotSupportedException - the repository does not support reference copies of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void deleteEntityReferenceCopy(String userId, EntityDetail entity) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, HomeEntityException, EntityConflictException, InvalidEntityException, FunctionNotSupportedException, UserNotAuthorizedException
deleteEntityReferenceCopy in class OMRSMetadataCollectionuserId - unique identifier for requesting server.entity - details of the entity to purge.InvalidParameterException - the entity is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this entity's type.HomeEntityException - the entity belongs to the local repository so creating a reference
copy would be invalid.EntityConflictException - the new entity conflicts with an existing entity.InvalidEntityException - the new entity has invalid contents.FunctionNotSupportedException - the repository does not support reference copies of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void purgeEntityReferenceCopy(String userId, EntityDetail entity) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, HomeEntityException, EntityConflictException, InvalidEntityException, FunctionNotSupportedException, UserNotAuthorizedException
purgeEntityReferenceCopy in class OMRSMetadataCollectionuserId - unique identifier for requesting server.entity - details of the entity to purge.InvalidParameterException - the entity is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this entity's type.HomeEntityException - the entity belongs to the local repository so creating a reference
copy would be invalid.EntityConflictException - the new entity conflicts with an existing entity.InvalidEntityException - the new entity has invalid contents.FunctionNotSupportedException - the repository does not support reference copies of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void purgeEntityReferenceCopy(String userId, String entityGUID, String typeDefGUID, String typeDefName, String homeMetadataCollectionId) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, HomeEntityException, FunctionNotSupportedException, UserNotAuthorizedException
purgeEntityReferenceCopy in class OMRSMetadataCollectionuserId - unique identifier for requesting server.entityGUID - the unique identifier for the entity.typeDefGUID - the guid of the TypeDef for the relationship used to verify the relationship identity.typeDefName - the name of the TypeDef for the relationship used to verify the relationship identity.homeMetadataCollectionId - identifier of the metadata collection that is the home to this entity.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the guid is either a proxy or not found in the metadata collection.HomeEntityException - the entity belongs to the local repository so creating a reference
copy would be invalid.FunctionNotSupportedException - the repository does not support reference copies of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void refreshEntityReferenceCopy(String userId, String entityGUID, String typeDefGUID, String typeDefName, String homeMetadataCollectionId) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, HomeEntityException, FunctionNotSupportedException, UserNotAuthorizedException
refreshEntityReferenceCopy in class OMRSMetadataCollectionuserId - unique identifier for requesting server.entityGUID - unique identifier of requested entity.typeDefGUID - unique identifier of requested entity's TypeDef.typeDefName - unique name of requested entity's TypeDef.homeMetadataCollectionId - identifier of the metadata collection that is the home to this entity.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.EntityNotKnownException - the entity identified by the guid is not found in the metadata collection.HomeEntityException - the entity belongs to the local repository so creating a reference
copy would be invalid.FunctionNotSupportedException - the repository does not support reference copies of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void saveRelationshipReferenceCopy(String userId, Relationship relationship) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, EntityNotKnownException, PropertyErrorException, HomeRelationshipException, RelationshipConflictException, InvalidRelationshipException, FunctionNotSupportedException, UserNotAuthorizedException
saveRelationshipReferenceCopy in class OMRSMetadataCollectionuserId - unique identifier for requesting server.relationship - relationship to save.InvalidParameterException - the relationship is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.EntityNotKnownException - one of the entities identified by the relationship is not found in the
metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this relationship's type.HomeRelationshipException - the relationship belongs to the local repository so creating a reference
copy would be invalid.RelationshipConflictException - the new relationship conflicts with an existing relationship.InvalidRelationshipException - the new relationship has invalid contents.FunctionNotSupportedException - the repository does not support reference copies of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void deleteRelationshipReferenceCopy(String userId, Relationship relationship) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, EntityNotKnownException, PropertyErrorException, HomeRelationshipException, RelationshipConflictException, InvalidRelationshipException, FunctionNotSupportedException, UserNotAuthorizedException
deleteRelationshipReferenceCopy in class OMRSMetadataCollectionuserId - unique identifier for requesting server.relationship - relationship to purge.InvalidParameterException - the relationship is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.EntityNotKnownException - one of the entities identified by the relationship is not found in the
metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this relationship's type.HomeRelationshipException - the relationship belongs to the local repository so creating a reference
copy would be invalid.RelationshipConflictException - the new relationship conflicts with an existing relationship.InvalidRelationshipException - the new relationship has invalid contents.FunctionNotSupportedException - the repository does not support reference copies of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void purgeRelationshipReferenceCopy(String userId, Relationship relationship) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, EntityNotKnownException, PropertyErrorException, HomeRelationshipException, RelationshipConflictException, InvalidRelationshipException, FunctionNotSupportedException, UserNotAuthorizedException
purgeRelationshipReferenceCopy in class OMRSMetadataCollectionuserId - unique identifier for requesting server.relationship - relationship to purge.InvalidParameterException - the relationship is null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.TypeErrorException - the requested type is not known, or not supported in the metadata repository
hosting the metadata collection.EntityNotKnownException - one of the entities identified by the relationship is not found in the
metadata collection.PropertyErrorException - one or more of the requested properties are not defined, or have different
characteristics in the TypeDef for this relationship's type.HomeRelationshipException - the relationship belongs to the local repository so creating a reference
copy would be invalid.RelationshipConflictException - the new relationship conflicts with an existing relationship.InvalidRelationshipException - the new relationship has invalid contents.FunctionNotSupportedException - the repository does not support reference copies of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void purgeRelationshipReferenceCopy(String userId, String relationshipGUID, String typeDefGUID, String typeDefName, String homeMetadataCollectionId) throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, HomeRelationshipException, FunctionNotSupportedException, UserNotAuthorizedException
purgeRelationshipReferenceCopy in class OMRSMetadataCollectionuserId - unique identifier for requesting server.relationshipGUID - the unique identifier for the relationship.typeDefGUID - the guid of the TypeDef for the relationship used to verify the relationship identity.typeDefName - the name of the TypeDef for the relationship used to verify the relationship identity.homeMetadataCollectionId - unique identifier for the home repository for this relationship.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.RelationshipNotKnownException - the relationship is not know in the metadata collection.HomeRelationshipException - the relationship belongs to the local repository so creating a reference
copy would be invalid.FunctionNotSupportedException - the repository does not support reference copies of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void refreshRelationshipReferenceCopy(String userId, String relationshipGUID, String typeDefGUID, String typeDefName, String homeMetadataCollectionId) throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, HomeRelationshipException, FunctionNotSupportedException, UserNotAuthorizedException
refreshRelationshipReferenceCopy in class OMRSMetadataCollectionuserId - unique identifier for requesting server.relationshipGUID - unique identifier of the relationship.typeDefGUID - the guid of the TypeDef for the relationship used to verify the relationship identity.typeDefName - the name of the TypeDef for the relationship used to verify the relationship identity.homeMetadataCollectionId - unique identifier for the home repository for this relationship.InvalidParameterException - one of the parameters is invalid or null.RepositoryErrorException - there is a problem communicating with the metadata repository where
the metadata collection is stored.RelationshipNotKnownException - the relationship identifier is not recognized.HomeRelationshipException - the relationship belongs to the local repository so creating a reference
copy would be invalid.FunctionNotSupportedException - the repository does not support reference copies of instances.UserNotAuthorizedException - the userId is not permitted to perform this operation.protected TypeDef getTypeDefForInstance(InstanceHeader header, String methodName) throws RepositoryErrorException
header - this is the header of the instancemethodName - calling methodRepositoryErrorException - logic error - this call should not failprotected void reportUnsupportedAsOfTimeFunction(String methodName, Date asOfTime) throws FunctionNotSupportedException, RepositoryErrorException
methodName - calling methodasOfTime - time warp valueFunctionNotSupportedException - optional function not supportedRepositoryErrorException - mandatory function not supportedprotected void reportUnsupportedOptionalFunction(String methodName) throws FunctionNotSupportedException
methodName - calling methodFunctionNotSupportedException - optional function not supportedprotected void reportUnknownTypeGUID(String guid, String guidParameterName, String methodName) throws TypeDefNotKnownException
guid - guid of typeguidParameterName - parameter that the guid was passed in onmethodName - calling methodTypeDefNotKnownException - unknown type definitionprotected void reportUnknownTypeName(String name, String methodName) throws TypeDefNotKnownException
name - name of typemethodName - calling methodTypeDefNotKnownException - unknown type definitionprotected void reportEntityNotKnown(String entityGUID, String methodName) throws EntityNotKnownException
entityGUID - unknown unique identifiermethodName - calling methodEntityNotKnownException - unknown entityprotected void reportRelationshipNotKnown(String relationshipGUID, String methodName) throws RelationshipNotKnownException
relationshipGUID - unknown unique identifiermethodName - calling methodRelationshipNotKnownException - unknown relationshipprotected void reportTypeDefNotSupported(String typeName, String methodName) throws TypeDefNotSupportedException
typeName - type name not supportedmethodName - calling methodTypeDefNotSupportedException - unsupported typeprotected void reportTypeDefAlreadyDefined(String typeGUID, String typeName, String methodName) throws TypeDefKnownException
typeGUID - unique identifier of typetypeName - unique name of typemethodName - calling methodTypeDefKnownException - the type is already defined.protected void reportTypeDefConflict(String typeGUID, String typeName, String methodName) throws TypeDefConflictException
typeGUID - unique identifier of typetypeName - unique name of typemethodName - calling methodTypeDefConflictException - more than one definitions for the same type name/guidprotected void reportTypeDefInUse(String typeGUID, String typeName, String methodName) throws TypeDefInUseException
typeGUID - unique identifier of typetypeName - unique name of typemethodName - calling methodTypeDefInUseException - type in useprotected void reportEntityProxyOnly(String guid, String guidParameterName, String methodName) throws EntityProxyOnlyException
guid - unique identity of the entityguidParameterName - parameter name of the entity guidmethodName - calling methodEntityProxyOnlyException - only a proxyCopyright © 2018–2020 ODPi. All rights reserved.