Class TypeMetadataHandler

java.lang.Object
ai.pipestream.registration.handlers.TypeMetadataHandler

@ApplicationScoped public class TypeMetadataHandler extends Object
Serves the type metadata catalog doors, mapping TypeMetadataService results onto the documented gRPC error contract (NOT_FOUND unknown type / missing draft; INVALID_ARGUMENT bad scope combination or unknown field_path).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the handler bean.
  • Method Summary

    Modifier and Type
    Method
    Description
    ai.pipestream.platform.registration.v1.GetTypeMetadataResponse
    getTypeMetadata(ai.pipestream.platform.registration.v1.GetTypeMetadataRequest request)
    One type's merged metadata view.
    ai.pipestream.platform.registration.v1.PromoteTypeMetadataResponse
    promoteTypeMetadata(ai.pipestream.platform.registration.v1.PromoteTypeMetadataRequest request)
    Promotes a type's global draft (phase 1).
    ai.pipestream.platform.registration.v1.SaveTypeMetadataResponse
    saveTypeMetadata(ai.pipestream.platform.registration.v1.SaveTypeMetadataRequest request)
    Saves one scope's annotations.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TypeMetadataHandler

      public TypeMetadataHandler()
      Creates the handler bean. The TypeMetadataService it delegates to is supplied by CDI field injection.
  • Method Details

    • getTypeMetadata

      public ai.pipestream.platform.registration.v1.GetTypeMetadataResponse getTypeMetadata(ai.pipestream.platform.registration.v1.GetTypeMetadataRequest request)
      One type's merged metadata view.
      Parameters:
      request - the type and optional graph scope
      Returns:
      the merged view with per-layer provenance
    • saveTypeMetadata

      public ai.pipestream.platform.registration.v1.SaveTypeMetadataResponse saveTypeMetadata(ai.pipestream.platform.registration.v1.SaveTypeMetadataRequest request)
      Saves one scope's annotations.
      Parameters:
      request - the scope, type and full-replacement fields
      Returns:
      the persisted state
    • promoteTypeMetadata

      public ai.pipestream.platform.registration.v1.PromoteTypeMetadataResponse promoteTypeMetadata(ai.pipestream.platform.registration.v1.PromoteTypeMetadataRequest request)
      Promotes a type's global draft (phase 1).
      Parameters:
      request - the type
      Returns:
      the Apicurio version + pending-bake id