Class 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.
    • Constructor Detail

      • CommonHandler

        public CommonHandler​(String sourceName,
                             RepositoryHandler repositoryHandler,
                             OMRSRepositoryHelper repositoryHelper,
                             RepositoryErrorHandler errorHandler)
        Construct the handler information needed to interact with the repository services
        Parameters:
        sourceName - the name of the component
        repositoryHandler - manages calls to the repository services
        repositoryHelper - provides utilities for manipulating the repository services objects
        errorHandler - provides common validation routines for the other handler classes
    • Method Detail

      • 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