Class DictionaryServiceClient

java.lang.Object
org.saidone.unrest.client.DictionaryServiceClient

public class DictionaryServiceClient extends Object
Client of the platform's dictionary service for model listings and qualified model lookups.

Each call sends the shared provider's Alfresco ticket and a per-call deadline. Unary calls retry once after UNAUTHENTICATED if the provider supplies a different ticket. The caller owns the channel and should share one TicketProvider across service clients.

  • Constructor Summary

    Constructors
    Constructor
    Description
    DictionaryServiceClient(io.grpc.Channel channel, TicketProvider tickets, Duration deadline)
    Creates this service client with shared authentication and a per-call deadline.
    DictionaryServiceClient(org.saidone.unrest.api.DictionaryServiceGrpc.DictionaryServiceBlockingStub stub, TicketProvider tickets, Duration deadline)
    Creates this service client with shared authentication and a per-call deadline.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.saidone.unrest.api.ListModelsResponse
    Lists all deployed models without expanding property definitions.
    org.saidone.unrest.api.ListModelsResponse
    getAllModels(String model, boolean includeProperties)
    Lists deployed models, optionally filtered by model name or namespace prefix.
    org.saidone.unrest.api.ModelInfo
    getModel(String model, boolean includeProperties)
    Looks up one qualified model name, optionally expanding its declared properties.

    Methods inherited from class java.lang.Object

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

    • DictionaryServiceClient

      public DictionaryServiceClient(io.grpc.Channel channel, TicketProvider tickets, Duration deadline)
      Creates this service client with shared authentication and a per-call deadline.

      The caller retains ownership of the channel; closing an application should close its shared channel once.

      Parameters:
      channel - shared gRPC channel; ownership remains with the caller
      tickets - shared ticket provider, normally one AuthenticationServiceClient
      deadline - per-call deadline applied to every RPC attempt
    • DictionaryServiceClient

      public DictionaryServiceClient(org.saidone.unrest.api.DictionaryServiceGrpc.DictionaryServiceBlockingStub stub, TicketProvider tickets, Duration deadline)
      Creates this service client with shared authentication and a per-call deadline.

      The caller retains ownership of the channel; closing an application should close its shared channel once.

      Parameters:
      stub - preconfigured stub for this repository service
      tickets - shared ticket provider, normally one AuthenticationServiceClient
      deadline - per-call deadline applied to every RPC attempt
  • Method Details

    • getAllModels

      public org.saidone.unrest.api.ListModelsResponse getAllModels(String model, boolean includeProperties)
      Lists deployed models, optionally filtered by model name or namespace prefix.
      Parameters:
      model - model name or namespace prefix for listings; qualified model name for a single lookup
      includeProperties - whether to expand directly declared properties; listings require a model filter
      Returns:
      the matching model descriptions
    • getAllModels

      public org.saidone.unrest.api.ListModelsResponse getAllModels()
      Lists all deployed models without expanding property definitions.
      Returns:
      the matching model descriptions
    • getModel

      public org.saidone.unrest.api.ModelInfo getModel(String model, boolean includeProperties)
      Looks up one qualified model name, optionally expanding its declared properties.
      Parameters:
      model - model name or namespace prefix for listings; qualified model name for a single lookup
      includeProperties - whether to expand directly declared properties; listings require a model filter
      Returns:
      the requested model description