public interface MetadataElementInterface
| Modifier and Type | Method and Description |
|---|---|
void |
classifyMetadataElementInStore(String userId,
String metadataElementGUID,
String classificationName,
Date effectiveFrom,
Date effectiveTo,
ElementProperties properties)
Add a new classification to the metadata element.
|
String |
createMetadataElementInStore(String userId,
String metadataElementTypeName,
ElementStatus initialStatus,
Date effectiveFrom,
Date effectiveTo,
ElementProperties properties,
String templateGUID)
Create a new metadata element in the metadata store.
|
String |
createRelatedElementsInStore(String userId,
String relationshipTypeName,
String metadataElement1GUID,
String metadataElement2GUID,
Date effectiveFrom,
Date effectiveTo,
ElementProperties properties)
Create a relationship between two metadata elements.
|
void |
deleteMetadataElementInStore(String userId,
String metadataElementGUID)
Delete a specific metadata element.
|
void |
deleteRelatedElementsInStore(String userId,
String relationshipGUID)
Delete a relationship between two metadata elements.
|
List<OpenMetadataElement> |
findMetadataElements(String userId,
String metadataElementTypeName,
List<String> metadataElementSubtypeName,
SearchProperties searchProperties,
List<ElementStatus> limitResultsByStatus,
SearchClassifications matchClassifications,
String sequencingProperty,
SequencingOrder sequencingOrder,
int startFrom,
int pageSize)
Return a list of metadata elements that match the supplied criteria.
|
List<OpenMetadataElement> |
findMetadataElementsWithString(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the metadata elements that contain the requested string.
|
List<RelatedMetadataElements> |
findRelationshipsBetweenMetadataElements(String userId,
String relationshipTypeName,
SearchProperties searchProperties,
String sequencingProperty,
SequencingOrder sequencingOrder,
int startFrom,
int pageSize)
Return a list of relationships that match the requested conditions.
|
OpenMetadataElement |
getMetadataElementByGUID(String userId,
String elementGUID)
Retrieve the metadata element using its unique identifier.
|
OpenMetadataElement |
getMetadataElementByUniqueName(String userId,
String uniqueName,
String uniquePropertyName)
Retrieve the metadata element using its unique name (typically the qualified name).
|
String |
getMetadataElementGUIDByUniqueName(String userId,
String uniqueName,
String uniquePropertyName)
Retrieve the unique identifier of a metadata element using its unique name (typically the qualified name).
|
List<RelatedMetadataElement> |
getRelatedMetadataElements(String userId,
String elementGUID,
int startingAtEnd,
String relationshipTypeName,
int startFrom,
int pageSize)
Retrieve the metadata elements connected to the supplied element.
|
void |
reclassifyMetadataElementInStore(String userId,
String metadataElementGUID,
String classificationName,
boolean replaceProperties,
ElementProperties properties)
Update the properties of a classification that is currently attached to a specific metadata element.
|
void |
unclassifyMetadataElementInStore(String userId,
String metadataElementGUID,
String classificationName)
Remove the named classification from a specific metadata element.
|
void |
updateClassificationStatusInStore(String userId,
String metadataElementGUID,
String classificationName,
Date effectiveFrom,
Date effectiveTo)
Update the effectivity dates of a specific classification attached to a metadata element.
|
void |
updateMetadataElementInStore(String userId,
String metadataElementGUID,
boolean replaceProperties,
ElementProperties properties)
Update the properties of a specific metadata element.
|
void |
updateMetadataElementStatusInStore(String userId,
String metadataElementGUID,
ElementStatus newElementStatus,
Date effectiveFrom,
Date effectiveTo)
Update the status of specific metadata element.
|
void |
updateRelatedElementsInStore(String userId,
String relationshipGUID,
boolean replaceProperties,
ElementProperties properties)
Update the properties associated with a relationship.
|
void |
updateRelatedElementsStatusInStore(String userId,
String relationshipGUID,
Date effectiveFrom,
Date effectiveTo)
Update the effectivity dates of a specific relationship between metadata elements.
|
OpenMetadataElement getMetadataElementByGUID(String userId, String elementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdelementGUID - unique identifier for the metadata elementInvalidParameterException - the unique identifier is null or not known.UserNotAuthorizedException - the governance action service is not able to access the elementPropertyServerException - there is a problem accessing the metadata storeOpenMetadataElement getMetadataElementByUniqueName(String userId, String uniqueName, String uniquePropertyName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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 usedInvalidParameterException - the unique identifier is null or not known.UserNotAuthorizedException - the governance action service is not able to access the elementPropertyServerException - there is a problem accessing the metadata storeString getMetadataElementGUIDByUniqueName(String userId, String uniqueName, String uniquePropertyName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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 usedInvalidParameterException - the unique identifier is null or not known.UserNotAuthorizedException - the governance action service is not able to access the elementPropertyServerException - there is a problem accessing the metadata storeList<OpenMetadataElement> findMetadataElementsWithString(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdsearchString - name to retrievestartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - the qualified name is nullUserNotAuthorizedException - the governance action service is not able to access the elementPropertyServerException - there is a problem accessing the metadata storeList<RelatedMetadataElement> getRelatedMetadataElements(String userId, String elementGUID, int startingAtEnd, String relationshipTypeName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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)startFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - the unique identifier is null or not known; the relationship type is invalidUserNotAuthorizedException - the governance action service is not able to access the elementsPropertyServerException - there is a problem accessing the metadata storeList<OpenMetadataElement> findMetadataElements(String userId, String metadataElementTypeName, List<String> metadataElementSubtypeName, SearchProperties searchProperties, List<ElementStatus> limitResultsByStatus, SearchClassifications matchClassifications, String sequencingProperty, SequencingOrder sequencingOrder, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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.startFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the search parameters are is invalidUserNotAuthorizedException - the governance action service is not able to access the elementsPropertyServerException - there is a problem accessing the metadata storeList<RelatedMetadataElements> findRelationshipsBetweenMetadataElements(String userId, String relationshipTypeName, SearchProperties searchProperties, String sequencingProperty, SequencingOrder sequencingOrder, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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.startFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the search parameters are is invalidUserNotAuthorizedException - the governance action service is not able to access the elementsPropertyServerException - there is a problem accessing the metadata storeString createMetadataElementInStore(String userId, String metadataElementTypeName, ElementStatus initialStatus, Date effectiveFrom, Date effectiveTo, ElementProperties properties, String templateGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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 elementtemplateGUID - the unique identifier of the existing asset to copy (this will copy all of the attachments such as nested content, schema
connection etc)InvalidParameterException - the type name, status or one of the properties is invalidUserNotAuthorizedException - the governance action service is not authorized to create this type of elementPropertyServerException - there is a problem with the metadata storevoid updateMetadataElementInStore(String userId, String metadataElementGUID, boolean replaceProperties, ElementProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdmetadataElementGUID - unique identifier of the metadata element 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.properties - new properties for the metadata elementInvalidParameterException - either the unique identifier or the properties are invalid in some wayUserNotAuthorizedException - the governance action service is not authorized to update this elementPropertyServerException - there is a problem with the metadata storevoid updateMetadataElementStatusInStore(String userId, String metadataElementGUID, ElementStatus newElementStatus, Date effectiveFrom, Date effectiveTo) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdmetadataElementGUID - unique identifier of the metadata element to updatenewElementStatus - new status value - or null to leave as iseffectiveFrom - the date when this element is active - null for active noweffectiveTo - the date when this element becomes inactive - null for active until deletedInvalidParameterException - either the unique identifier or the status are invalid in some wayUserNotAuthorizedException - the governance action service is not authorized to update this elementPropertyServerException - there is a problem with the metadata storevoid deleteMetadataElementInStore(String userId, String metadataElementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdmetadataElementGUID - unique identifier of the metadata element to updateInvalidParameterException - the unique identifier is null or invalid in some wayUserNotAuthorizedException - the governance action service is not authorized to delete this elementPropertyServerException - there is a problem with the metadata storevoid classifyMetadataElementInStore(String userId, String metadataElementGUID, String classificationName, Date effectiveFrom, Date effectiveTo, ElementProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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)effectiveFrom - 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 nameInvalidParameterException - 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 definitionUserNotAuthorizedException - the governance action service is not authorized to update this elementPropertyServerException - there is a problem with the metadata storevoid reclassifyMetadataElementInStore(String userId, String metadataElementGUID, String classificationName, boolean replaceProperties, ElementProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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.properties - new properties for the classificationInvalidParameterException - 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 definitionUserNotAuthorizedException - the governance action service is not authorized to update this element/classificationPropertyServerException - there is a problem with the metadata storevoid updateClassificationStatusInStore(String userId, String metadataElementGUID, String classificationName, Date effectiveFrom, Date effectiveTo) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdmetadataElementGUID - unique identifier of the metadata element to updateclassificationName - unique name of the classification to updateeffectiveFrom - the date when this element is active - null for active noweffectiveTo - the date when this element becomes inactive - null for active until deletedInvalidParameterException - either the unique identifier or the status are invalid in some wayUserNotAuthorizedException - the governance action service is not authorized to update this elementPropertyServerException - there is a problem with the metadata storevoid unclassifyMetadataElementInStore(String userId, String metadataElementGUID, String classificationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdmetadataElementGUID - unique identifier of the metadata element to updateclassificationName - unique name of the classification to removeInvalidParameterException - the unique identifier or classification name is null or invalid in some wayUserNotAuthorizedException - the governance action service is not authorized to remove this classificationPropertyServerException - there is a problem with the metadata storeString createRelatedElementsInStore(String userId, String relationshipTypeName, String metadataElement1GUID, String metadataElement2GUID, Date effectiveFrom, Date effectiveTo, ElementProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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 relationshipeffectiveFrom - 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 relationshipInvalidParameterException - the unique identifier's of the metadata elements are null or invalid in some way; the properties are
not valid for this type of relationshipUserNotAuthorizedException - the governance action service is not authorized to create this type of relationshipPropertyServerException - there is a problem with the metadata storevoid updateRelatedElementsInStore(String userId, String relationshipGUID, boolean replaceProperties, ElementProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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.properties - new properties for the relationshipInvalidParameterException - the unique identifier of the relationship is null or invalid in some way; the properties are
not valid for this type of relationshipUserNotAuthorizedException - the governance action service is not authorized to update this relationshipPropertyServerException - there is a problem with the metadata storevoid updateRelatedElementsStatusInStore(String userId, String relationshipGUID, Date effectiveFrom, Date effectiveTo) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdrelationshipGUID - unique identifier of the relationship to updateeffectiveFrom - the date when this element is active - null for active noweffectiveTo - the date when this element becomes inactive - null for active until deletedInvalidParameterException - either the unique identifier or the status are invalid in some wayUserNotAuthorizedException - the governance action service is not authorized to update this elementPropertyServerException - there is a problem with the metadata storevoid deleteRelatedElementsInStore(String userId, String relationshipGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdrelationshipGUID - unique identifier of the relationship to deleteInvalidParameterException - the unique identifier of the relationship is null or invalid in some wayUserNotAuthorizedException - the governance action service is not authorized to delete this relationshipPropertyServerException - there is a problem with the metadata storeCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.