java.lang.Object
org.odpi.openmetadata.accessservices.assetcatalog.handlers.CommonHandler

public class CommonHandler extends Object
Common Handler supports the lookup types and metadata collection. These methods are used in the multiple handlers. It runs on the server-side of the Asset Catalog OMAS, fetches the types, metadata collection using the RepositoryHandler.
  • Method Details

    • getTypeDefGUID

      public String getTypeDefGUID(String userId, String typeDefName)
      Returns the global identifier of the type using the type def name
      Parameters:
      userId - user identifier that issues the call
      typeDefName - the type definition name
      Returns:
      the global identifier of the type
    • hasDisplayName

      public boolean hasDisplayName(String userId, String typeDefGUID) throws InvalidParameterException
      Checks against the type's list of properties if it has a display name property
      Parameters:
      userId - the user id
      typeDefGUID - the type definition unique identifier
      Returns:
      if the given type has a display name property
      Throws:
      InvalidParameterException - the invalid parameter exception