Class OpenMetadataClient
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.client.OpenMetadataClient
- All Implemented Interfaces:
MetadataElementInterface,MultiLanguageInterface,OpenMetadataTypesInterface,StewardshipRequestInterface,ValidMetadataValuesInterface
public abstract class OpenMetadataClient
extends Object
implements OpenMetadataTypesInterface, MetadataElementInterface, StewardshipRequestInterface, MultiLanguageInterface, ValidMetadataValuesInterface
OpenMetadataClient provides access to metadata elements stored in the metadata repositories. It is implemented by a
metadata repository provider. In Egeria, this class is implemented in the GAF Metadata Management running in the
Metadata Access Server OMAG Server.
-
Constructor Summary
ConstructorsConstructorDescriptionOpenMetadataClient(String serviceURLMarker, String serverName, String serverPlatformURLRoot) Create a new client with no authentication embedded in the HTTP request. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclassifyMetadataElementInStore(String userId, String metadataElementGUID, String classificationName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, ElementProperties properties, Date effectiveTime) Add a new classification to the metadata element.abstract StringcreateIncidentReport(String userId, String qualifiedName, int domainIdentifier, String background, List<IncidentImpactedElement> impactedResources, List<IncidentDependency> previousIncidents, Map<String, Integer> incidentClassifiers, Map<String, String> additionalProperties, String originatorGUID) Create an incident report to capture the situation detected by this governance service.abstract StringcreateMetadataElementFromTemplate(String userId, String metadataElementTypeName, String anchorGUID, boolean isOwnAnchor, Date effectiveFrom, Date effectiveTo, String templateGUID, ElementProperties templateProperties, Map<String, String> placeholderProperties, String parentGUID, String parentRelationshipTypeName, ElementProperties parentRelationshipProperties, boolean parentAtEnd1) Create a new metadata element in the metadata store using the template identified by the templateGUID.abstract StringcreateMetadataElementInStore(String userId, String metadataElementTypeName, org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStatus initialStatus, Date effectiveFrom, Date effectiveTo, ElementProperties properties) Create a new metadata element in the metadata store.abstract StringcreateMetadataElementInStore(String userId, String metadataElementTypeName, org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStatus initialStatus, Map<String, ElementProperties> initialClassifications, String anchorGUID, boolean isOwnAnchor, Date effectiveFrom, Date effectiveTo, ElementProperties properties, String parentGUID, String parentRelationshipTypeName, ElementProperties parentRelationshipProperties, boolean parentAtEnd1) Create a new metadata element in the metadata store.abstract StringcreateRelatedElementsInStore(String userId, String relationshipTypeName, String metadataElement1GUID, String metadataElement2GUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, ElementProperties properties, Date effectiveTime) Create a relationship between two metadata elements.abstract voiddeclassifyMetadataElementInStore(String userId, String metadataElementGUID, String classificationName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) Remove the named classification from a specific metadata element.abstract voiddeleteMetadataElementInStore(String userId, String metadataElementGUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) Delete a specific metadata element.abstract voiddeleteRelatedElementsInStore(String userId, String relationshipGUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) Delete a relationship between two metadata elements.abstract List<OpenMetadataAttributeTypeDef>findAttributeTypeDefsByCategory(String userId, OpenMetadataAttributeTypeDefCategory category) Returns all the AttributeTypeDefs for a specific category.abstract List<OpenMetadataElement>findMetadataElements(String userId, String metadataElementTypeName, List<String> metadataElementSubtypeName, SearchProperties searchProperties, List<org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStatus> limitResultsByStatus, SearchClassifications matchClassifications, String sequencingProperty, SequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, int startFrom, int pageSize) Return a list of metadata elements that match the supplied criteria.abstract List<OpenMetadataElement>findMetadataElementsWithString(String userId, String searchString, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, int startFrom, int pageSize) Retrieve the metadata elements that contain the requested string.abstract List<OpenMetadataElement>findMetadataElementsWithString(String userId, String searchString, String typeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, int startFrom, int pageSize) Retrieve the metadata elements of the requested type that contain the requested string.abstract List<RelatedMetadataElements>findRelationshipsBetweenMetadataElements(String userId, String relationshipTypeName, SearchProperties searchProperties, String sequencingProperty, SequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, int startFrom, int pageSize) Return a list of relationships that match the requested conditions.abstract List<OpenMetadataTypeDef>findTypeDefsByCategory(String userId, OpenMetadataTypeDefCategory category) Returns all the TypeDefs for a specific category.abstract List<OpenMetadataTypeDef>findTypesByExternalId(String userId, String standard, String organization, String identifier) Return the types that are linked to the elements from the specified standard.abstract OpenMetadataTypeDefGallerygetAllTypes(String userId) Returns the list of different types of metadata organized into two groups.abstract OpenMetadataAttributeTypeDefgetAttributeTypeDefByGUID(String userId, String guid) Return the AttributeTypeDef identified by the GUID.abstract OpenMetadataAttributeTypeDefgetAttributeTypeDefByName(String userId, String name) Return the AttributeTypeDef identified by the unique name.abstract OpenMetadataElementgetMetadataElementByGUID(String userId, String elementGUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) Retrieve the metadata element using its unique identifier.abstract OpenMetadataElementgetMetadataElementByUniqueName(String userId, String uniqueName, String uniquePropertyName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) Retrieve the metadata element using its unique name (typically the qualified name).abstract StringgetMetadataElementGUIDByUniqueName(String userId, String uniqueName, String uniquePropertyName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) Retrieve the unique identifier of a metadata element using its unique name (typically the qualified name).abstract List<RelatedMetadataElements>getMetadataElementRelationships(String userId, String metadataElementAtEnd1GUID, String metadataElementAtEnd2GUID, String relationshipTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, int startFrom, int pageSize) Retrieve the relationships linking to the supplied elements.abstract List<RelatedMetadataElement>getRelatedMetadataElements(String userId, String elementGUID, int startingAtEnd, String relationshipTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, int startFrom, int pageSize) Retrieve the metadata elements connected to the supplied element.abstract RelatedMetadataElementsgetRelationshipByGUID(String userId, String relationshipGUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) Retrieve the relationship using its unique identifier.Return the name of the server that this client is connected to.abstract List<OpenMetadataTypeDef>getSubTypes(String userId, String typeName) Returns all the TypeDefs for a specific subtype.abstract OpenMetadataTypeDefgetTypeDefByGUID(String userId, String guid) Return the TypeDef identified by the GUID.abstract OpenMetadataTypeDefgetTypeDefByName(String userId, String name) Return the TypeDef identified by the unique name.abstract StringinitiateGovernanceActionProcess(String userId, String processQualifiedName, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, Date startTime, Map<String, String> requestParameters, String originatorServiceName, String originatorEngineName) Using the named governance action process as a template, initiate a chain of engine actions.abstract voidreclassifyMetadataElementInStore(String userId, String metadataElementGUID, String classificationName, boolean replaceProperties, boolean forLineage, boolean forDuplicateProcessing, ElementProperties properties, Date effectiveTime) Update the properties of a classification that is currently attached to a specific metadata element.toString()Standard toString method.abstract voidupdateClassificationEffectivityInStore(String userId, String metadataElementGUID, String classificationName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, Date effectiveTime) Update the effectivity dates of a specific classification attached to a metadata element.abstract voidupdateMetadataElementEffectivityInStore(String userId, String metadataElementGUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, Date effectiveTime) Update the effectivity dates control the visibility of the element through specific APIs.abstract voidupdateMetadataElementInStore(String userId, String metadataElementGUID, boolean replaceAllProperties, boolean forLineage, boolean forDuplicateProcessing, ElementProperties properties, Date effectiveTime) Update the properties of a specific metadata element.abstract voidupdateMetadataElementStatusInStore(String userId, String metadataElementGUID, boolean forLineage, boolean forDuplicateProcessing, org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStatus newElementStatus, Date effectiveTime) Update the status of specific metadata element.abstract voidupdateRelatedElementsEffectivityInStore(String userId, String relationshipGUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, Date effectiveTime) Update the effectivity dates of a specific relationship between metadata elements.abstract voidupdateRelatedElementsInStore(String userId, String relationshipGUID, boolean replaceProperties, boolean forLineage, boolean forDuplicateProcessing, ElementProperties properties, Date effectiveTime) Update the properties associated with a relationship.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.odpi.openmetadata.frameworks.governanceaction.client.MetadataElementInterface
archiveMetadataElementInStore, archiveMetadataElementInStore, classifyMetadataElementInStore, createMetadataElementFromTemplate, createMetadataElementInStore, createMetadataElementInStore, createRelatedElementsInStore, declassifyMetadataElementInStore, deleteMetadataElementInStore, deleteRelatedElementsInStore, reclassifyMetadataElementInStore, updateClassificationEffectivityInStore, updateMetadataElementEffectivityInStore, updateMetadataElementInStore, updateMetadataElementStatusInStore, updateRelatedElementsEffectivityInStore, updateRelatedElementsInStoreMethods inherited from interface org.odpi.openmetadata.frameworks.governanceaction.client.MultiLanguageInterface
clearTranslation, getTranslation, getTranslations, setTranslationMethods inherited from interface org.odpi.openmetadata.frameworks.governanceaction.client.StewardshipRequestInterface
openToDoMethods inherited from interface org.odpi.openmetadata.frameworks.governanceaction.client.ValidMetadataValuesInterface
clearValidMetadataMapName, clearValidMetadataMapValue, clearValidMetadataValue, getConsistentMetadataValues, getSpecification, getValidMetadataMapName, getValidMetadataMapValue, getValidMetadataValue, getValidMetadataValues, setConsistentMetadataValues, setUpValidMetadataMapName, setUpValidMetadataMapValue, setUpValidMetadataValue, validateMetadataMapName, validateMetadataMapValue, validateMetadataValue
-
Constructor Details
-
OpenMetadataClient
Create a new client with no authentication embedded in the HTTP request.- Parameters:
serviceURLMarker- the identifier of the access service (for example asset-owner for the Asset Owner OMAS)serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST services
-
-
Method Details
-
getServerName
Return the name of the server that this client is connected to.- Returns:
- string name
-
getAllTypes
public abstract OpenMetadataTypeDefGallery getAllTypes(String userId) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Returns the list of different types of metadata organized into two groups. The first are the attribute type definitions (AttributeTypeDefs). These provide types for properties in full type definitions. Full type definitions (TypeDefs) describe types for entities, relationships and classifications.- Specified by:
getAllTypesin interfaceOpenMetadataTypesInterface- Parameters:
userId- unique identifier for requesting user.- Returns:
- TypeDefGallery List of different categories of type definitions.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem communicating with the metadata repository.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.
-
findTypeDefsByCategory
public abstract List<OpenMetadataTypeDef> findTypeDefsByCategory(String userId, OpenMetadataTypeDefCategory category) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Returns all the TypeDefs for a specific category.- Specified by:
findTypeDefsByCategoryin interfaceOpenMetadataTypesInterface- Parameters:
userId- unique identifier for requesting user.category- enum value for the category of TypeDef to return.- Returns:
- TypeDefs list.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the TypeDefCategory is null.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem communicating with the metadata repository.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.
-
findAttributeTypeDefsByCategory
public abstract List<OpenMetadataAttributeTypeDef> findAttributeTypeDefsByCategory(String userId, OpenMetadataAttributeTypeDefCategory category) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Returns all the AttributeTypeDefs for a specific category.- Specified by:
findAttributeTypeDefsByCategoryin interfaceOpenMetadataTypesInterface- Parameters:
userId- unique identifier for requesting user.category- enum value for the category of an AttributeTypeDef to return.- Returns:
- AttributeTypeDefs list.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the TypeDefCategory is null.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem communicating with the metadata repository.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.
-
findTypesByExternalId
public abstract List<OpenMetadataTypeDef> findTypesByExternalId(String userId, String standard, String organization, String identifier) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Return the types that are linked to the elements from the specified standard.- Specified by:
findTypesByExternalIdin interfaceOpenMetadataTypesInterface- Parameters:
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.- Returns:
- TypeDefs list each entry in the list contains a TypeDef. This is a structure describing the TypeDef's category and properties.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- all attributes of the external id are null.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem communicating with the metadata repository.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.
-
getSubTypes
public abstract List<OpenMetadataTypeDef> getSubTypes(String userId, String typeName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Returns all the TypeDefs for a specific subtype. If a null result is returned it means the type has no subtypes. *- Specified by:
getSubTypesin interfaceOpenMetadataTypesInterface- Parameters:
userId- unique identifier for requesting user.typeName- name of the standard null means any.- Returns:
- TypeDefs list each entry in the list contains a TypeDef. This is a structure describing the TypeDef's category and properties. If null is returned as the TypeDef list it means the type has no known subtypes
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- all attributes of the external id are null.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem communicating with the metadata repository.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.
-
getTypeDefByGUID
public abstract OpenMetadataTypeDef getTypeDefByGUID(String userId, String guid) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Return the TypeDef identified by the GUID.- Specified by:
getTypeDefByGUIDin interfaceOpenMetadataTypesInterface- Parameters:
userId- unique identifier for requesting user.guid- String unique id of the TypeDef- Returns:
- TypeDef structure describing its category and properties.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the guid is null.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem communicating with the metadata repository where the metadata collection is stored.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.
-
getAttributeTypeDefByGUID
public abstract OpenMetadataAttributeTypeDef getAttributeTypeDefByGUID(String userId, String guid) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Return the AttributeTypeDef identified by the GUID.- Specified by:
getAttributeTypeDefByGUIDin interfaceOpenMetadataTypesInterface- Parameters:
userId- unique identifier for requesting user.guid- String unique id of the TypeDef- Returns:
- TypeDef structure describing its category and properties.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the guid is null.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem communicating with the metadata repository where the metadata collection is stored.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.
-
getTypeDefByName
public abstract OpenMetadataTypeDef getTypeDefByName(String userId, String name) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Return the TypeDef identified by the unique name.- Specified by:
getTypeDefByNamein interfaceOpenMetadataTypesInterface- Parameters:
userId- unique identifier for requesting user.name- String name of the TypeDef.- Returns:
- TypeDef structure describing its category and properties.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the name is null.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem communicating with the metadata repository where the metadata collection is stored.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.
-
getAttributeTypeDefByName
public abstract OpenMetadataAttributeTypeDef getAttributeTypeDefByName(String userId, String name) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Return the AttributeTypeDef identified by the unique name.- Specified by:
getAttributeTypeDefByNamein interfaceOpenMetadataTypesInterface- Parameters:
userId- unique identifier for requesting user.name- String name of the TypeDef.- Returns:
- TypeDef structure describing its category and properties.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the name is null.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem communicating with the metadata repository where the metadata collection is stored.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.
-
getMetadataElementByGUID
public abstract OpenMetadataElement getMetadataElementByGUID(String userId, String elementGUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the metadata element using its unique identifier.- Specified by:
getMetadataElementByGUIDin interfaceMetadataElementInterface- Parameters:
userId- caller's userIdelementGUID- unique identifier for the metadata elementforLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved element is for duplicate processing so do not combine results from known duplicates.effectiveTime- only return the element if it is effective at this time. Null means anytime. Use "new Date()" for now.- Returns:
- metadata element properties
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique identifier is null or not known.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem accessing the metadata store
-
getMetadataElementByUniqueName
public abstract OpenMetadataElement getMetadataElementByUniqueName(String userId, String uniqueName, String uniquePropertyName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the metadata element using its unique name (typically the qualified name).- Specified by:
getMetadataElementByUniqueNamein interfaceMetadataElementInterface- Parameters:
userId- caller's userIduniqueName- unique name for the metadata elementuniquePropertyName- name of property name to test in the open metadata element - if null "qualifiedName" is usedforLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved element is for duplicate processing so do not combine results from known duplicates.effectiveTime- only return the element if it is effective at this time. Null means anytime. Use "new Date()" for now.- Returns:
- metadata element properties or null if not found
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique identifier is null.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem accessing the metadata store
-
getMetadataElementGUIDByUniqueName
public abstract String getMetadataElementGUIDByUniqueName(String userId, String uniqueName, String uniquePropertyName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the unique identifier of a metadata element using its unique name (typically the qualified name).- Specified by:
getMetadataElementGUIDByUniqueNamein interfaceMetadataElementInterface- Parameters:
userId- caller's userIduniqueName- unique name for the metadata elementuniquePropertyName- name of property name to test in the open metadata element - if null "qualifiedName" is usedforLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved element is for duplicate processing so do not combine results from known duplicates.effectiveTime- only return the element if it is effective at this time. Null means anytime. Use "new Date()" for now.- Returns:
- metadata element unique identifier (guid)
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique name is null or not known.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem accessing the metadata store
-
findMetadataElementsWithString
public abstract List<OpenMetadataElement> findMetadataElementsWithString(String userId, String searchString, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the metadata elements that contain the requested string.- Specified by:
findMetadataElementsWithStringin interfaceMetadataElementInterface- Parameters:
userId- caller's userIdsearchString- name to retrieveforLineage- the retrieved elements are for lineage processing so include archived elementsforDuplicateProcessing- the retrieved elements are for duplicate processing so do not combine results from known duplicates.effectiveTime- only return an element if it is effective at this time. Null means anytime. Use "new Date()" for now.startFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements (or null if no elements match the name)
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the qualified name is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem accessing the metadata store
-
findMetadataElementsWithString
public abstract List<OpenMetadataElement> findMetadataElementsWithString(String userId, String searchString, String typeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the metadata elements of the requested type that contain the requested string.- Specified by:
findMetadataElementsWithStringin interfaceMetadataElementInterface- Parameters:
userId- caller's userIdsearchString- name to retrievetypeName- name of the type to limit the results toforLineage- the retrieved elements are for lineage processing so include archived elementsforDuplicateProcessing- the retrieved elements are for duplicate processing so do not combine results from known duplicates.effectiveTime- only return an element if it is effective at this time. Null means anytime. Use "new Date()" for now.startFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements (or null if no elements match the name)
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the qualified name is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem accessing the metadata store
-
getRelatedMetadataElements
public abstract List<RelatedMetadataElement> getRelatedMetadataElements(String userId, String elementGUID, int startingAtEnd, String relationshipTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the metadata elements connected to the supplied element.- Specified by:
getRelatedMetadataElementsin interfaceMetadataElementInterface- Parameters:
userId- caller's userIdelementGUID- unique identifier for the starting metadata elementstartingAtEnd- indicates which end to retrieve from (0 is "either end"; 1 is end1; 2 is end 2)relationshipTypeName- type name of relationships to follow (or null for all)forLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved elements are for duplicate processing so do not combine results from known duplicates.effectiveTime- only return an element if it is effective at this time. Null means anytime. Use "new Date()" for now.startFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of related elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique identifier is null or not known; the relationship type is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem accessing the metadata store
-
getMetadataElementRelationships
public abstract List<RelatedMetadataElements> getMetadataElementRelationships(String userId, String metadataElementAtEnd1GUID, String metadataElementAtEnd2GUID, String relationshipTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the relationships linking to the supplied elements.- Specified by:
getMetadataElementRelationshipsin interfaceMetadataElementInterface- Parameters:
userId- caller's userIdmetadataElementAtEnd1GUID- unique identifier of the metadata element at end 1 of the relationshipmetadataElementAtEnd2GUID- unique identifier of the metadata element at end 2 of the relationshiprelationshipTypeName- type name of relationships to follow (or null for all)forLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved elements are for duplicate processing so do not combine results from known duplicates.effectiveTime- only return an element if it is effective at this time. Null means anytime. Use "new Date()" for now.startFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of related elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique identifier is null or not known; the relationship type is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem accessing the metadata store
-
findMetadataElements
public abstract List<OpenMetadataElement> findMetadataElements(String userId, String metadataElementTypeName, List<String> metadataElementSubtypeName, SearchProperties searchProperties, List<org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStatus> limitResultsByStatus, SearchClassifications matchClassifications, String sequencingProperty, SequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return a list of metadata elements that match the supplied criteria. The results can be returned over many pages.- Specified by:
findMetadataElementsin interfaceMetadataElementInterface- Parameters:
userId- caller's userIdmetadataElementTypeName- type of interest (null means any element type)metadataElementSubtypeName- optional list of the subtypes of the metadataElementTypeName to include in the search results. Null means all subtypes.searchProperties- Optional list of entity property conditions to match.limitResultsByStatus- By default, entities in all statuses (other than DELETE) 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 classifications to match.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.forLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved element is for duplicate processing so do not combine results from known duplicates.effectiveTime- only return the element if it is effective at this time. Null means anytime. Use "new Date()" for now.startFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- a list of elements matching the supplied criteria; null means no matching elements in the metadata store.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the search parameters are is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem accessing the metadata store
-
findRelationshipsBetweenMetadataElements
public abstract List<RelatedMetadataElements> findRelationshipsBetweenMetadataElements(String userId, String relationshipTypeName, SearchProperties searchProperties, String sequencingProperty, SequencingOrder sequencingOrder, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return a list of relationships that match the requested conditions. The results can be received as a series of pages.- Specified by:
findRelationshipsBetweenMetadataElementsin interfaceMetadataElementInterface- Parameters:
userId- caller's userIdrelationshipTypeName- relationship's type. Null means all types (but may be slow so not recommended).searchProperties- Optional list of relationship property conditions to match.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.forLineage- the retrieved elements are for lineage processing so include archived elementsforDuplicateProcessing- the retrieved element is for duplicate processing so do not combine results from known duplicates.effectiveTime- only return an element if it is effective at this time. Null means anytime. Use "new Date()" for now.startFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- a list of relationships. Null means no matching relationships.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the search parameters are is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem accessing the metadata store
-
getRelationshipByGUID
public abstract RelatedMetadataElements getRelationshipByGUID(String userId, String relationshipGUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the relationship using its unique identifier.- Specified by:
getRelationshipByGUIDin interfaceMetadataElementInterface- Parameters:
relationshipGUID- unique identifier for the relationshipforLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved element is for duplicate processing so do not combine results from known duplicates.effectiveTime- only return the element if it is effective at this time. Null means anytime. Use "new Date()" for now.userId- caller's userId- Returns:
- relationship properties
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique identifier is null or not known.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem accessing the metadata store
-
createMetadataElementInStore
public abstract String createMetadataElementInStore(String userId, String metadataElementTypeName, org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStatus initialStatus, Date effectiveFrom, Date effectiveTo, ElementProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element in the metadata store. The type name comes from the open metadata types. The selected type also controls the names and types of the properties that are allowed. This version of the method allows access to advanced features such as multiple states and effectivity dates.- Specified by:
createMetadataElementInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdmetadataElementTypeName- type name of the new metadata elementinitialStatus- initial status of the metadata elementeffectiveFrom- the date when this element is active - null for active on creationeffectiveTo- the date when this element becomes inactive - null for active until deletedproperties- properties of the new metadata element- Returns:
- unique identifier of the new metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the type name, status or one of the properties is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
createMetadataElementInStore
public abstract String createMetadataElementInStore(String userId, String metadataElementTypeName, org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStatus initialStatus, Map<String, ElementProperties> initialClassifications, String anchorGUID, boolean isOwnAnchor, Date effectiveFrom, Date effectiveTo, ElementProperties properties, String parentGUID, String parentRelationshipTypeName, ElementProperties parentRelationshipProperties, boolean parentAtEnd1) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionCreate a new metadata element in the metadata store. The type name comes from the open metadata types. The selected type also controls the names and types of the properties that are allowed. This version of the method allows access to advanced features such as multiple states and effectivity dates.- Specified by:
createMetadataElementInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdmetadataElementTypeName- type name of the new metadata elementinitialStatus- initial status of the metadata elementinitialClassifications- map of classification names to classification properties to include in the entity creation requestanchorGUID- unique identifier of the element that should be the anchor for the new element. Set to null if no anchor, or the Anchors classification is included in the initial classifications.isOwnAnchor- boolean flag to day that the element should be classified as its own anchor once its element is created in the repository.effectiveFrom- the date when this element is active - null for active on creationeffectiveTo- the date when this element becomes inactive - null for active until deletedproperties- properties of the new metadata elementparentGUID- unique identifier of optional parent entityparentRelationshipTypeName- type of relationship to connect the new element to the parentparentRelationshipProperties- properties to include in parent relationshipparentAtEnd1- which end should the parent GUID go in the relationship- Returns:
- unique identifier of the new metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the type name, status or one of the properties is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
createMetadataElementFromTemplate
public abstract String createMetadataElementFromTemplate(String userId, String metadataElementTypeName, String anchorGUID, boolean isOwnAnchor, Date effectiveFrom, Date effectiveTo, String templateGUID, ElementProperties templateProperties, Map<String, String> placeholderProperties, String parentGUID, String parentRelationshipTypeName, ElementProperties parentRelationshipProperties, boolean parentAtEnd1) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionCreate a new metadata element in the metadata store using the template identified by the templateGUID. The type name comes from the open metadata types. The selected type also controls the names and types of the properties that are allowed. The template and any similar anchored objects are copied in this process.- Specified by:
createMetadataElementFromTemplatein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdmetadataElementTypeName- type name of the new metadata elementanchorGUID- unique identifier of the element that should be the anchor for the new element. Set to null if no anchor, or the Anchors classification is included in the initial classifications.isOwnAnchor- boolean flag to day that the element should be classified as its own anchor once its element is created in the repository.effectiveFrom- the date when this element is active - null for active on creationeffectiveTo- the date when this element becomes inactive - null for active until deletedtemplateGUID- the unique identifier of the existing asset to copy (this will copy all the attachments such as nested content, schema connection etc)templateProperties- properties of the new metadata element. These override the template valuesplaceholderProperties- property name-to-property value map to replace any placeholder values in the template element - and their anchored elements, which are also copied as part of this operaiton.parentGUID- unique identifier of optional parent entityparentRelationshipTypeName- type of relationship to connect the new element to the parentparentRelationshipProperties- properties to include in parent relationshipparentAtEnd1- which end should the parent GUID go in the relationship- Returns:
- unique identifier of the new metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the type name, status or one of the properties is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operation.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
updateMetadataElementInStore
public abstract void updateMetadataElementInStore(String userId, String metadataElementGUID, boolean replaceAllProperties, boolean forLineage, boolean forDuplicateProcessing, ElementProperties properties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the properties of a specific metadata element. The properties must match the type definition associated with the metadata element when it was created. However, it is possible to update a few properties, or replace all them by the value used in the replaceProperties flag.- Specified by:
updateMetadataElementInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updatereplaceAllProperties- flag to indicate whether to completely replace the existing properties with the new properties, or just update the individual properties specified on the request.forLineage- the query is to support lineage retrievalforDuplicateProcessing- the query is for duplicate processing and so must not deduplicateproperties- new properties for the metadata elementeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- either the unique identifier or the properties are invalid in some wayorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
updateMetadataElementStatusInStore
public abstract void updateMetadataElementStatusInStore(String userId, String metadataElementGUID, boolean forLineage, boolean forDuplicateProcessing, org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStatus newElementStatus, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the status of specific metadata element. The new status must match a status value that is defined for the element's type assigned when it was created.- Specified by:
updateMetadataElementStatusInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updateforLineage- the query is to support lineage retrievalforDuplicateProcessing- the query is for duplicate processing and so must not deduplicatenewElementStatus- new status value - or null to leave as iseffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- either the unique identifier or the status are invalid in some wayorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
updateMetadataElementEffectivityInStore
public abstract void updateMetadataElementEffectivityInStore(String userId, String metadataElementGUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the effectivity dates control the visibility of the element through specific APIs.- Specified by:
updateMetadataElementEffectivityInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updateforLineage- the query is to support lineage retrievalforDuplicateProcessing- the query is for duplicate processing and so must not deduplicateeffectiveFrom- the date when this element is active - null for active noweffectiveTo- the date when this element becomes inactive - null for active until deletedeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- either the unique identifier or the status are invalid in some wayorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
deleteMetadataElementInStore
public abstract void deleteMetadataElementInStore(String userId, String metadataElementGUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Delete a specific metadata element.- Specified by:
deleteMetadataElementInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updateforLineage- the query is to support lineage retrievalforDuplicateProcessing- the query is for duplicate processing and so must not deduplicateeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique identifier is null or invalid in some wayorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
classifyMetadataElementInStore
public abstract void classifyMetadataElementInStore(String userId, String metadataElementGUID, String classificationName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, ElementProperties properties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Add a new classification to the metadata element. Note that only one classification with the same name can be attached to a metadata element.- Specified by:
classifyMetadataElementInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updateclassificationName- name of the classification to add (if the classification is already present then use reclassify)forLineage- the query is to support lineage retrievalforDuplicateProcessing- the query is for duplicate processing and so must not deduplicateeffectiveFrom- the date when this classification is active - null for active noweffectiveTo- the date when this classification becomes inactive - null for active until deletedproperties- properties to store in the new classification. These must conform to the valid properties associated with the classification nameeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique identifier or classification name is null or invalid in some way; properties do not match the valid properties associated with the classification's type definitionorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
reclassifyMetadataElementInStore
public abstract void reclassifyMetadataElementInStore(String userId, String metadataElementGUID, String classificationName, boolean replaceProperties, boolean forLineage, boolean forDuplicateProcessing, ElementProperties properties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the properties of a classification that is currently attached to a specific metadata element.- Specified by:
reclassifyMetadataElementInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updateclassificationName- unique name of the classification to updatereplaceProperties- flag to indicate whether to completely replace the existing properties with the new properties, or just update the individual properties specified on the request.forLineage- the query is to support lineage retrievalforDuplicateProcessing- the query is for duplicate processing and so must not deduplicateproperties- new properties for the classificationeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique identifier or classification name is null or invalid in some way; properties do not match the valid properties associated with the classification's type definitionorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
updateClassificationEffectivityInStore
public abstract void updateClassificationEffectivityInStore(String userId, String metadataElementGUID, String classificationName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the effectivity dates of a specific classification attached to a metadata element. The effectivity dates control the visibility of the classification through specific APIs.- Specified by:
updateClassificationEffectivityInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updateclassificationName- unique name of the classification to updateforLineage- the query is to support lineage retrievalforDuplicateProcessing- the query is for duplicate processing and so must not deduplicateeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)effectiveFrom- the date when this element is active - null for active noweffectiveTo- the date when this element becomes inactive - null for active until deleted- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- either the unique identifier or the status are invalid in some wayorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
declassifyMetadataElementInStore
public abstract void declassifyMetadataElementInStore(String userId, String metadataElementGUID, String classificationName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the named classification from a specific metadata element.- Specified by:
declassifyMetadataElementInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updateclassificationName- unique name of the classification to removeforLineage- the query is to support lineage retrievalforDuplicateProcessing- the query is for duplicate processing and so must not deduplicateeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique identifier or classification name is null or invalid in some wayorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
createRelatedElementsInStore
public abstract String createRelatedElementsInStore(String userId, String relationshipTypeName, String metadataElement1GUID, String metadataElement2GUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, ElementProperties properties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a relationship between two metadata elements. It is important to put the right element at each end of the relationship according to the type definition since this will affect how the relationship is interpreted.- Specified by:
createRelatedElementsInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdrelationshipTypeName- name of the type of relationship to create. This will determine the types of metadata elements that can be related and the properties that can be associated with this relationship.metadataElement1GUID- unique identifier of the metadata element at end 1 of the relationshipmetadataElement2GUID- unique identifier of the metadata element at end 2 of the relationshipforLineage- the query is to support lineage retrievalforDuplicateProcessing- the query is for duplicate processing and so must not deduplicateeffectiveFrom- the date when this element is active - null for active noweffectiveTo- the date when this element becomes inactive - null for active until deletedproperties- the properties of the relationshipeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)- Returns:
- unique identifier of the new relationship
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique identifier's of the metadata elements are null or invalid in some way; the properties are not valid for this type of relationshiporg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
updateRelatedElementsInStore
public abstract void updateRelatedElementsInStore(String userId, String relationshipGUID, boolean replaceProperties, boolean forLineage, boolean forDuplicateProcessing, ElementProperties properties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the properties associated with a relationship.- Specified by:
updateRelatedElementsInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdrelationshipGUID- unique identifier of the relationship to updatereplaceProperties- flag to indicate whether to completely replace the existing properties with the new properties, or just update the individual properties specified on the request.forLineage- the query is to support lineage retrievalforDuplicateProcessing- the query is for duplicate processing and so must not deduplicateproperties- new properties for the relationshipeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique identifier of the relationship is null or invalid in some way; the properties are not valid for this type of relationshiporg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
updateRelatedElementsEffectivityInStore
public abstract void updateRelatedElementsEffectivityInStore(String userId, String relationshipGUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the effectivity dates of a specific relationship between metadata elements. The effectivity dates control the visibility of the classification through specific APIs.- Specified by:
updateRelatedElementsEffectivityInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdrelationshipGUID- unique identifier of the relationship to updateforLineage- the query is to support lineage retrievalforDuplicateProcessing- the query is for duplicate processing and so must not deduplicateeffectiveFrom- the date when this element is active - null for active noweffectiveTo- the date when this element becomes inactive - null for active until deletedeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- either the unique identifier or the status are invalid in some wayorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
deleteRelatedElementsInStore
public abstract void deleteRelatedElementsInStore(String userId, String relationshipGUID, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Delete a relationship between two metadata elements.- Specified by:
deleteRelatedElementsInStorein interfaceMetadataElementInterface- Parameters:
userId- caller's userIdrelationshipGUID- unique identifier of the relationship to deleteforLineage- the query is to support lineage retrievalforDuplicateProcessing- the query is for duplicate processing and so must not deduplicateeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the unique identifier of the relationship is null or invalid in some wayorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
initiateGovernanceActionProcess
public abstract String initiateGovernanceActionProcess(String userId, String processQualifiedName, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, Date startTime, Map<String, String> requestParameters, String originatorServiceName, String originatorEngineName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionUsing the named governance action process as a template, initiate a chain of engine actions.- Parameters:
userId- caller's userIdprocessQualifiedName- unique name of the governance action process to userequestSourceGUIDs- request source elements for the resulting governance serviceactionTargets- map of action target names to GUIDs for the resulting governance servicestartTime- future start time or null for "as soon as possible"requestParameters- request properties to be passed to the first engine actionoriginatorServiceName- unique name of the requesting governance service (if initiated by a governance engine).originatorEngineName- optional unique name of the governance engine (if initiated by a governance engine).- Returns:
- unique identifier of the first governance action of the process
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- null or unrecognized qualified name of the processorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
createIncidentReport
public abstract String createIncidentReport(String userId, String qualifiedName, int domainIdentifier, String background, List<IncidentImpactedElement> impactedResources, List<IncidentDependency> previousIncidents, Map<String, Integer> incidentClassifiers, Map<String, throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionString> additionalProperties, String originatorGUID) Create an incident report to capture the situation detected by this governance service. This incident report will be processed by other governance activities.- Specified by:
createIncidentReportin interfaceStewardshipRequestInterface- Parameters:
userId- caller's userIdqualifiedName- unique identifier to give this new incident reportdomainIdentifier- governance domain associated with this action (0=ALL)background- description of the situationimpactedResources- details of the resources impacted by this situationpreviousIncidents- links to previous incident reports covering this situationincidentClassifiers- initial classifiers for the incident reportadditionalProperties- additional arbitrary properties for the incident reportsoriginatorGUID- the unique identifier of the person or process that created the incident- Returns:
- unique identifier of the resulting incident report
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- null or non-unique qualified name for the incident reportorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the userId is not permitted to perform this operationorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
toString
Standard toString method.
-