public interface OpenMetadataStore
| Modifier and Type | Method and Description |
|---|---|
List<OpenMetadataElement> |
findMetadataElements(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 searchString,
int startFrom,
int pageSize)
Retrieve the metadata elements that contain the requested string.
|
List<RelatedMetadataElements> |
findRelationshipsBetweenMetadataElements(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 elementGUID)
Retrieve the metadata element using its unique identifier.
|
OpenMetadataElement |
getMetadataElementByUniqueName(String uniqueName,
String uniquePropertyName)
Retrieve the metadata element using its unique name (typically the qualified name).
|
String |
getMetadataElementGUIDByUniqueName(String uniqueName,
String uniquePropertyName)
Retrieve the unique identifier of a metadata element using its unique name (typically the qualified name).
|
List<RelatedMetadataElement> |
getRelatedMetadataElements(String elementGUID,
int startingAtEnd,
String relationshipTypeName,
int startFrom,
int pageSize)
Retrieve the metadata elements connected to the supplied element.
|
OpenMetadataElement getMetadataElementByGUID(String elementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
elementGUID - 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 uniqueName, String uniquePropertyName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
uniqueName - 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 uniqueName, String uniquePropertyName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
uniqueName - 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 searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
searchString - 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 elementGUID, int startingAtEnd, String relationshipTypeName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
elementGUID - 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 metadataElementTypeName, List<String> metadataElementSubtypeName, SearchProperties searchProperties, List<ElementStatus> limitResultsByStatus, SearchClassifications matchClassifications, String sequencingProperty, SequencingOrder sequencingOrder, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
metadataElementTypeName - 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 relationshipTypeName, SearchProperties searchProperties, String sequencingProperty, SequencingOrder sequencingOrder, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
relationshipTypeName - 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 storeCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.