Class DocumentSnapshotConverter

java.lang.Object
com.levigo.jadice.web.server.util.DocumentSnapshotConverter

@Component public class DocumentSnapshotConverter extends Object
Receives a serialized document representation and converts it into a real jadice document.

Used on the server-side to perform client-initiated actions on a jadice document as in an export operation, that makes use of a MessageListener or text search.

  • Constructor Details

    • DocumentSnapshotConverter

      public DocumentSnapshotConverter()
    • DocumentSnapshotConverter

      public DocumentSnapshotConverter(com.levigo.jadice.web.server.internal.DocumentService documentService)
  • Method Details

    • convert

      @Deprecated public Document convert(com.levigo.jadice.web.server.internal.AbstractInvocationContext invocationContext, DocumentSnapshot sync)
      Deprecated.
      Use version for new messaging
      Converts a serialized document representation as in DocumentSnapshot into a real jadice document.
      Parameters:
      invocationContext - InvocationContext of this server call
      sync - Serialized document meta information that can be used to identify the document on the server side
      Returns:
      Jadice document instance, usually retrieved from the server-side document cache. If not found in cache, document will be recovered.
    • convert

      Converts a serialized document representation as in DocumentSnapshot into a real jadice document.
      Parameters:
      ctx - Message context of this server call
      dto - Serialized document meta information that can be used to identify the document on the server side
      Returns:
      Jadice document instance, usually retrieved from the server-side document cache. If not found in cache, document will be recovered.