Class DocumentSnapshotConverter
java.lang.Object
com.levigo.jadice.web.server.util.DocumentSnapshotConverter
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 Summary
ConstructorsConstructorDescriptionDocumentSnapshotConverter
(com.levigo.jadice.web.server.internal.DocumentService documentService) -
Method Summary
Modifier and TypeMethodDescriptionconvert
(com.levigo.jadice.web.server.internal.AbstractInvocationContext invocationContext, DocumentSnapshot sync) Deprecated.Use version for new messagingconvert
(IncomingMessageContext ctx, DocumentSnapshotDTO dto) Converts a serialized document representation as inDocumentSnapshot
into a real jadice document.
-
Constructor Details
-
DocumentSnapshotConverter
public DocumentSnapshotConverter() -
DocumentSnapshotConverter
public DocumentSnapshotConverter(com.levigo.jadice.web.server.internal.DocumentService documentService)
-
-
Method Details
-
convert
Converts a serialized document representation as inDocumentSnapshot
into a real jadice document.- Parameters:
ctx
- Message context of this server calldto
- 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.