Class GetRelatedEntities


  • public class GetRelatedEntities
    extends AbstractGraphOperation
    Implements the 'getRelatedEntities' operation of the OMRS metadata collection interface.
    • Constructor Detail

      • GetRelatedEntities

        public GetRelatedEntities​(XtdbOMRSRepositoryConnector xtdb,
                                  String entityGUID,
                                  List<String> entityTypeGUIDs,
                                  List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
                                  List<String> limitResultsByClassification,
                                  Date asOfTime)
        Create a new getRelatedEntities operation.
        Parameters:
        xtdb - connectivity to XTDB
        entityGUID - the starting point of the query
        entityTypeGUIDs - list of entity types to include in the query results (null means include all entities found, irrespective of their type)
        limitResultsByStatus - list of statuses by which to limit results
        limitResultsByClassification - list of classifications that must be present on all returned entities
        asOfTime - the point-in-time for which to retrieve results
    • Method Detail

      • execute

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceGraph execute()
                                                                                                                                      throws org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotKnownException,
                                                                                                                                             org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
        Execute the getRelatedEntities operation.
        Returns:
        InstanceGraph of results
        Throws:
        org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotKnownException - if the starting entity for the traversal cannot be found
        org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - on any other connectivity or resource usage error