public class OMRSDynamicTypeMetadataCollectionBase extends OMRSMetadataCollectionBase
metadataCollectionId, metadataCollectionName, parentConnector, repositoryHelper, repositoryName, repositoryValidator, securityVerifier| Constructor and Description |
|---|
OMRSDynamicTypeMetadataCollectionBase(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.
|
void |
addTypeDef(String userId,
TypeDef newTypeDef)
Create a definition of a new TypeDef.
|
void |
deleteAttributeTypeDef(String userId,
String obsoleteTypeDefGUID,
String obsoleteTypeDefName)
Delete an AttributeTypeDef.
|
void |
deleteTypeDef(String userId,
String obsoleteTypeDefGUID,
String obsoleteTypeDefName)
Delete the TypeDef.
|
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.
|
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.
|
TypeDef |
updateTypeDef(String userId,
TypeDefPatch typeDefPatch)
Update one or more properties of the TypeDef.
|
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.
|
addEntity, addEntityParameterValidation, addEntityParameterValidation, addEntityProxy, addEntityProxyParameterValidation, addExternalEntity, addExternalEntityParameterValidation, addExternalRelationship, addExternalRelationshipParameterValidation, addRelationship, addRelationshipParameterValidation, addRelationshipParameterValidation, addTypeDefGallery, attributeTypeDefCategoryParameterValidation, attributeTypeDefParameterValidation, classifyEntity, classifyEntityParameterValidation, classifyEntityParameterValidation, declassifyEntity, declassifyEntityParameterValidation, deleteEntity, deleteEntityReferenceCopy, deleteRelationship, deleteRelationshipReferenceCopy, filterAttributeTypeDefsByCategory, filterAttributeTypeDefsByGUID, filterAttributeTypeDefsByName, filterTypeDefsByCategory, filterTypeDefsByGUID, filterTypeDefsByName, filterTypeDefsByProperty, filterTypeDefsBySearchCriteria, filterTypesByExternalID, filterTypesByWildCardName, findAttributeTypeDefsByCategory, findEntitiesByClassification, findEntitiesByClassificationParameterValidation, findEntitiesByProperty, findEntitiesByPropertyParameterValidation, findEntitiesByPropertyValue, findEntitiesByPropertyValueParameterValidation, findRelationshipsByProperty, findRelationshipsByPropertyParameterValidation, findRelationshipsByPropertyValue, findRelationshipsByPropertyValueParameterValidation, findTypeDefsByCategory, findTypeDefsByProperty, findTypesByExternalID, findTypesByName, getAllTypes, getAttributeTypeDefByGUID, getAttributeTypeDefByName, getEntityDetail, getEntityDetail, getEntityNeighborhood, getEntityNeighborhoodParameterValidation, getEntityProxy, getEntitySummary, getInstanceParameterValidation, getInstanceParameterValidation, getLinkingEntities, getLinkingEntitiesParameterValidation, getMetadataCollectionId, getRelatedEntities, getRelatedEntitiesParameterValidation, getRelationship, getRelationship, getRelationshipsForEntity, getRelationshipsForEntityParameterValidation, getTypeDefByGUID, getTypeDefByName, getTypeDefForInstance, isEntityKnown, isRelationshipKnown, manageAttributeTypeDefParameterValidation, manageInstanceParameterValidation, manageInstanceParameterValidation, manageInstanceParameterValidation, manageReferenceInstanceParameterValidation, manageTypeDefParameterValidation, newAttributeTypeDefParameterValidation, newTypeDefParameterValidation, purgeEntity, purgeEntityReferenceCopy, purgeEntityReferenceCopy, purgeRelationship, purgeRelationshipReferenceCopy, purgeRelationshipReferenceCopy, referenceInstanceParameterValidation, refreshEntityReferenceCopy, refreshRelationshipReferenceCopy, reHomeEntity, reHomeInstanceParameterValidation, reHomeRelationship, reIdentifyEntity, reIdentifyInstanceParameterValidation, reIdentifyRelationship, removeInstanceParameterValidation, reportEntityNotKnown, reportEntityProxyOnly, reportRelationshipNotKnown, reportTypeDefAlreadyDefined, reportTypeDefConflict, reportTypeDefInUse, reportTypeDefNotSupported, reportUnknownTypeGUID, reportUnknownTypeName, reportUnsupportedAsOfTimeFunction, reportUnsupportedOptionalFunction, restoreEntity, restoreRelationship, reTypeEntity, reTypeInstanceParameterValidation, reTypeRelationship, saveEntityReferenceCopy, saveRelationshipReferenceCopy, searchForTypeDefs, securityVerifyTypeDefList, typeDefCategoryParameterValidation, typeDefExternalIDParameterValidation, typeDefParameterValidation, typeDefPropertyParameterValidation, typeDefSearchParameterValidation, typeGUIDParameterValidation, typeNameParameterValidation, undoEntityUpdate, undoRelationshipUpdate, updateEntityClassification, updateEntityClassificationParameterValidation, updateEntityProperties, updateEntityStatus, updateInstancePropertiesPropertyValidation, updateInstanceStatusParameterValidation, updateRelationshipProperties, updateRelationshipStatus, updateTypeDefParameterValidationbasicRequestValidation, getMetadataCollectionId, reHomeEntity, reHomeRelationship, saveInstanceReferenceCopies, setSecurityVerifier, validateRepositoryConnectorpublic OMRSDynamicTypeMetadataCollectionBase(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 void addTypeDef(String userId, TypeDef newTypeDef) throws InvalidParameterException, RepositoryErrorException, TypeDefKnownException, TypeDefConflictException, InvalidTypeDefException, UserNotAuthorizedException
addTypeDef in class OMRSMetadataCollectionBaseuserId - 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.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.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void addAttributeTypeDef(String userId, AttributeTypeDef newAttributeTypeDef) throws InvalidParameterException, RepositoryErrorException, TypeDefKnownException, TypeDefConflictException, InvalidTypeDefException, UserNotAuthorizedException
addAttributeTypeDef in class OMRSMetadataCollectionBaseuserId - 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.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.UserNotAuthorizedException - the userId is not permitted to perform this operation.public boolean verifyTypeDef(String userId, TypeDef typeDef) throws InvalidParameterException, RepositoryErrorException, TypeDefConflictException, InvalidTypeDefException, UserNotAuthorizedException
verifyTypeDef in class OMRSMetadataCollectionBaseuserId - 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.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, TypeDefConflictException, InvalidTypeDefException, UserNotAuthorizedException
verifyAttributeTypeDef in class OMRSMetadataCollectionBaseuserId - 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.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, UserNotAuthorizedException
updateTypeDef in class OMRSMetadataCollectionBaseuserId - 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.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void deleteTypeDef(String userId, String obsoleteTypeDefGUID, String obsoleteTypeDefName) throws InvalidParameterException, RepositoryErrorException, TypeDefNotKnownException, TypeDefInUseException, UserNotAuthorizedException
deleteTypeDef in class OMRSMetadataCollectionBaseuserId - 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.UserNotAuthorizedException - the userId is not permitted to perform this operation.public void deleteAttributeTypeDef(String userId, String obsoleteTypeDefGUID, String obsoleteTypeDefName) throws InvalidParameterException, RepositoryErrorException, TypeDefNotKnownException, TypeDefInUseException, UserNotAuthorizedException
deleteAttributeTypeDef in class OMRSMetadataCollectionBaseuserId - 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.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, UserNotAuthorizedException
reIdentifyTypeDef in class OMRSMetadataCollectionBaseuserId - 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.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, UserNotAuthorizedException
reIdentifyAttributeTypeDef in class OMRSMetadataCollectionBaseuserId - 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.UserNotAuthorizedException - the userId is not permitted to perform this operation.Copyright © 2018–2019 ODPi. All rights reserved.