Class GrpcDictionaryService

java.lang.Object
org.saidone.unrest.api.DictionaryServiceGrpc.DictionaryServiceImplBase
org.saidone.unrest.platform.GrpcDictionaryService
All Implemented Interfaces:
io.grpc.BindableService, org.saidone.unrest.api.DictionaryServiceGrpc.AsyncService

public final class GrpcDictionaryService extends org.saidone.unrest.api.DictionaryServiceGrpc.DictionaryServiceImplBase
Exposes deployed Alfresco content models, types, aspects and property definitions through gRPC.

Model listings optionally filter by namespace prefix or model name. Individual lookups require a qualified model name. Property expansion describes only properties declared on each class, leaving inherited definitions on the corresponding parent. Qualified names use namespace prefixes when available.

Dictionary access runs in the authenticated caller's read-only transaction. Invalid filters and unknown models are reported through the response observer rather than thrown synchronously to a gRPC caller.

See Also:
  • DictionaryService
  • Constructor Summary

    Constructors
    Constructor
    Description
    GrpcDictionaryService(org.alfresco.service.ServiceRegistry services)
    Creates the adapter and its repository helpers without starting repository work.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    getAllModels(org.saidone.unrest.api.ListModelsRequest request, io.grpc.stub.StreamObserver<org.saidone.unrest.api.ListModelsResponse> observer)
    Lists deployed content models with namespaces, types and aspects.
    void
    getModel(org.saidone.unrest.api.ListModelsRequest request, io.grpc.stub.StreamObserver<org.saidone.unrest.api.ModelInfo> observer)
    Looks up one deployed model by qualified name, without scanning every model.

    Methods inherited from class org.saidone.unrest.api.DictionaryServiceGrpc.DictionaryServiceImplBase

    bindService

    Methods inherited from class java.lang.Object

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

    • GrpcDictionaryService

      public GrpcDictionaryService(org.alfresco.service.ServiceRegistry services)
      Creates the adapter and its repository helpers without starting repository work.
      Parameters:
      services - Alfresco service registry; repository work uses its secured services
  • Method Details

    • getAllModels

      public void getAllModels(org.saidone.unrest.api.ListModelsRequest request, io.grpc.stub.StreamObserver<org.saidone.unrest.api.ListModelsResponse> observer)
      Lists deployed content models with namespaces, types and aspects. A blank filter returns every model; otherwise a namespace prefix or model name is matched. Property expansion requires a non-blank filter. A filter with no match yields NOT_FOUND.
      Parameters:
      request - optional model/prefix filter and property-expansion flag
      observer - receives one sorted list of matching model descriptions, or a gRPC error
    • getModel

      public void getModel(org.saidone.unrest.api.ListModelsRequest request, io.grpc.stub.StreamObserver<org.saidone.unrest.api.ModelInfo> observer)
      Looks up one deployed model by qualified name, without scanning every model. A bare prefix is invalid. Expanded properties are declared properties only; a missing model yields NOT_FOUND.
      Parameters:
      request - qualified model name and optional property-expansion flag
      observer - receives one model description, or a gRPC error