Class RestWebServiceDocumentManager
- java.lang.Object
-
- net.webpdf.wsclient.session.rest.documents.AbstractDocumentManager<RestWebServiceDocument>
-
- net.webpdf.wsclient.session.rest.documents.RestWebServiceDocumentManager
-
- All Implemented Interfaces:
DocumentManager<RestWebServiceDocument>
public class RestWebServiceDocumentManager extends AbstractDocumentManager<RestWebServiceDocument>
An instance ofRestWebServiceDocumentManagerallows to monitor and interact with theRestWebServiceDocuments uploaded to aRestSessionof the webPDF server.
-
-
Constructor Summary
Constructors Constructor Description RestWebServiceDocumentManager(@NotNull RestSession<RestWebServiceDocument> session)Initializes aRestWebServiceDocumentManagerfor the givenRestSession.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull RestWebServiceDocumentStateaccessInternalState(@NotNull RestWebServiceDocument document)Requests access to the internalRestDocumentState.protected @NotNull RestWebServiceDocumentcreateDocument(@NotNull String documentId)Creates a newRestWebServiceDocumentfor the given document ID.-
Methods inherited from class net.webpdf.wsclient.session.rest.documents.AbstractDocumentManager
compressDocuments, containsDocument, deleteDocument, downloadDocument, downloadDocument, extractDocument, getDocument, getDocumentHistory, getDocumentHistoryEntry, getDocumentID, getDocumentInfo, getDocuments, getSession, isDocumentHistoryActive, renameDocument, setDocumentHistoryActive, synchronize, synchronize, synchronizeDocument, updateDocumentHistory, updateDocumentSecurity, uploadDocument, uploadDocument
-
-
-
-
Constructor Detail
-
RestWebServiceDocumentManager
public RestWebServiceDocumentManager(@NotNull @NotNull RestSession<RestWebServiceDocument> session)Initializes aRestWebServiceDocumentManagerfor the givenRestSession.- Parameters:
session- TheRestSessionaRestWebServiceDocumentManagershall be created for.
-
-
Method Detail
-
createDocument
@NotNull protected @NotNull RestWebServiceDocument createDocument(@NotNull @NotNull String documentId)
Creates a newRestWebServiceDocumentfor the given document ID.- Specified by:
createDocumentin classAbstractDocumentManager<RestWebServiceDocument>- Parameters:
documentId- The document ID a matchingRestWebServiceDocumentshall be created for.- Returns:
- The created
RestWebServiceDocument.
-
accessInternalState
@NotNull protected @NotNull RestWebServiceDocumentState accessInternalState(@NotNull @NotNull RestWebServiceDocument document)
Requests access to the internalRestDocumentState.- Specified by:
accessInternalStatein classAbstractDocumentManager<RestWebServiceDocument>- Parameters:
document- TheRestDocumentto request access for.- Returns:
- The internal
RestDocumentState.
-
-