java.lang.Object
org.odpi.openmetadata.accessservices.glossaryview.server.service.OMRSClient
org.odpi.openmetadata.accessservices.glossaryview.server.service.GlossaryViewOMAS
Direct Known Subclasses:
CategoryService, GlossaryService, TermService

public class GlossaryViewOMAS extends OMRSClient
Composes OMRS calls into needed operations, handles the exceptions specific to this OMAS, converts result to needed format
  • Constructor Details

    • GlossaryViewOMAS

      public GlossaryViewOMAS()
  • Method Details

    • getEntityDetailResponse

      protected GlossaryViewEntityDetailResponse getEntityDetailResponse(String userId, String serverName, String entityGUID, String entityTypeName, String methodName)
      Extract an entity based on provided GUID and convert it to this omas's type
      Parameters:
      userId - calling user
      serverName - instance to call
      entityGUID - guid to search for
      entityTypeName - entity type
      methodName - calling method
      Returns:
      entity
    • getRelatedEntitiesResponse

      protected GlossaryViewEntityDetailResponse getRelatedEntitiesResponse(String userId, String serverName, String entityGUID, String entityTypeName, String relationshipTypeName, Integer from, Integer size, String methodName)
      Extract related entities to the given one and convert them to this omas's type
      Parameters:
      userId - calling user
      serverName - instance to call
      entityGUID - target entity
      entityTypeName - target entity relationship type
      relationshipTypeName - relationship type name
      from - offset start for the return values
      size - maximum number of results
      methodName - calling method
      Returns:
      related entities
    • getSubEntitiesResponse

      protected GlossaryViewEntityDetailResponse getSubEntitiesResponse(String userId, String serverName, String entityGUID, String entityTypeName, String relationshipTypeName, Integer from, Integer size, String methodName)
      Extract related entities to the given one and convert them to this omas's type - only taking form one end
      Parameters:
      userId - calling user
      serverName - instance to call
      entityGUID - target entity
      entityTypeName - target entity relationship type
      relationshipTypeName - relationship type name
      from - offset start for the return values
      size - maximum number of results
      methodName - calling method
      Returns:
      related entities
    • getAllEntityDetailsResponse

      protected GlossaryViewEntityDetailResponse getAllEntityDetailsResponse(String userId, String serverName, String entityTypeName, Integer from, Integer size, String methodName)
      Extract all entities of specified type and convert them to this omas's type
      Parameters:
      userId - calling user
      serverName - instance to call
      entityTypeName - entity type name
      from - offset start for the return values
      size - maximum number of results
      methodName - calling method
      Returns:
      all entities