com.groupdocs.annotation.handler

Class AnnotationHandler<T extends Page>

    • Constructor Detail

      • AnnotationHandler

        protected AnnotationHandler(AnnotationConfig cfg)

        Initializes a new instance of the AnnotationHandler{T} class.

        Parameters:
        cfg - The CFG.
      • AnnotationHandler

        protected AnnotationHandler(AnnotationConfig cfg,
                         IInputDataHandler inputDataHandler)

        Initializes a new instance of the AnnotationHandler{T} class.

        Parameters:
        cfg - The CFG.
        inputDataHandler - The input data handler.
      • AnnotationHandler

        protected AnnotationHandler(AnnotationConfig cfg,
                         IInputDataHandler inputDataHandler,
                         IFileDataStore fileDataStore)

        Initializes a new instance of the AnnotationHandler{T} class.

        Parameters:
        cfg - The CFG.
        inputDataHandler - The input data handler.
        fileDataStore - The file data store.
    • Method Detail

      • getInputDataHandler

        public IInputDataHandler getInputDataHandler()

        Gets the input data handler.

        Returns:
      • getUserDataHandler

        public IUserDataHandler getUserDataHandler()

        Gets the user data handler.

        Returns:
      • getDocumentDataHandler

        public IDocumentDataHandler getDocumentDataHandler()

        Gets the document data handler.

        Returns:
      • getAnnotationDataHandler

        public IAnnotationDataHandler getAnnotationDataHandler()

        Gets the annotation data handler.

        Returns:
      • getAnnotationReplyDataHandler

        public IAnnotationReplyDataHandler getAnnotationReplyDataHandler()

        Gets the annotation reply data handler.

        Returns:
      • getAnnotationCollaboratorsDataHandler

        public IAnnotationCollaboratorDataHandler getAnnotationCollaboratorsDataHandler()

        Gets the annotation collaborators data handler.

        Returns:
      • getFileDataStore

        public IFileDataStore getFileDataStore()

        Gets the file data store.

        Returns:
      • setCulture

        public void setCulture(Locale culture)

        Sets the culture.

        Parameters:
        culture - The culture.
        Throws:
        AnnotatorException - Locale in not supported.
      • setCulture

        public void setCulture(String culture)

        Sets the culture.

        Parameters:
        culture - The culture.
        Throws:
        AnnotatorException - Locale in not supported.
      • getPages

        protected List<T> getPages(String guid,
                       ConverterOptions options)

        Gets the pages.

        Parameters:
        guid - The unique identifier.
        options - The options.
        Returns:
      • getPages

        protected List<T> getPages(InputStream fileStream,
                       ConverterOptions options)

        Gets the pages.

        Parameters:
        fileStream - The file stream.
        options - The options.
        Returns:
      • getDocumentInfo

        public DocumentInfoContainer getDocumentInfo(String guid)

        Gets the document information.

        Parameters:
        guid - The unique identifier.
        Returns:
      • getDocumentInfo

        public DocumentInfoContainer getDocumentInfo(String guid,
                                            String password)

        Gets the document information.

        Parameters:
        guid - The unique identifier.
        password - The password.
        Returns:
        Throws:
        com.aspose.ms.System.ArgumentException - File must have extension.
      • getDocumentInfo

        public DocumentInfoContainer getDocumentInfo(InputStream input,
                                            String password)

        Gets the document information.

        Parameters:
        input - Input stream.
        password - Password of current document.
        Returns:
        Coordinates of words in the document.
      • getDocumentInfo

        public DocumentInfoContainer getDocumentInfo(InputStream input)

        Gets the document information.

        Parameters:
        input - Input stream.
        Returns:
        Coordinates of words in the document.
      • loadFileTree

        public FileTreeContainer loadFileTree()

        Loads files/folders structure for specified path

        Returns:
        T:GroupDocs.Annotation.Domain.Containers.FileTreeContainer for detailed information.
      • loadFileTree

        public FileTreeContainer loadFileTree(FileTreeOptions fileTreeOptions)

        Loads files/folders structure for specified path

        Parameters:
        fileTreeOptions - T:GroupDocs.Annotation.Domain.Options.FileTreeOptions for detailed information.
        Returns:
        T:GroupDocs.Annotation.Domain.Containers.FileTreeContainer for detailed information.
      • getFile

        public FileContainer getFile(String guid)

        Get original file

        Parameters:
        guid - Document guid (file path, etc)
        Returns:
        FileContainer.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Guid cannot be null.
      • getPdfFile

        public FileContainer getPdfFile(String guid)

        Get pdf file or convert to pdf

        Parameters:
        guid - Document guid (file path, etc)
        Returns:
        FileContainer.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Guid cannot be null.
      • getPdfFile

        public FileContainer getPdfFile(InputStream inputDoc,
                               String guid)

        Get pdf file or convert to pdf

        Parameters:
        inputDoc - Stream of document to convert
        guid - Document guid (file path, etc)
        Returns:
        FileContainer.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Guid cannot be null.
      • createDocument

        public long createDocument(String documentName,
                          int docType,
                          long userId)

        Creates the document.

        Parameters:
        documentName - Name of the document.
        docType - Type of the document
        userId - The user identifier.
        Returns:
        Throws:
        AnnotatorException - Unable to add an document data to the database.
      • createDocument

        public long createDocument(String documentName)

        Creates the document.

        Parameters:
        documentName - Name of the document.
        Returns:
      • createDocument

        public long createDocument(String documentName,
                          int docType)

        Creates the document.

        Parameters:
        documentName - Name of the document.
        docType - Type of the document.
        Returns:
      • removeDocument

        public boolean removeDocument(String documentName)

        Removes the document.

        Parameters:
        documentName - Name of the document.
        Returns:
      • setDocumentAccessRights

        public void setDocumentAccessRights(long documentId,
                                   long rights)

        Sets the document access rights.

        Parameters:
        documentId - The document identifier.
        rights - The rights.
      • deleteAnnotations

        public void deleteAnnotations(long documentId,
                             long userId)

        Deletes the annotations.

        Parameters:
        documentId - The document identifier.
        userId - The user identifier.
      • deleteAnnotations

        public void deleteAnnotations(long documentId)

        Deletes the annotations.

        Parameters:
        documentId - The document identifier.
      • getAnnotation

        public GetAnnotationResult getAnnotation(String guid,
                                        long documentId,
                                        long userId)

        Gets the annotation.

        Parameters:
        guid - The unique identifier.
        documentId - The document identifier.
        userId - The user identifier.
        Returns:
      • getAnnotation

        public GetAnnotationResult getAnnotation(String guid)

        Gets the annotation.

        Parameters:
        guid - The unique identifier.
        Returns:
      • createAnnotation

        public CreateAnnotationResult createAnnotation(AnnotationInfo annotationInfo,
                                              long documentId,
                                              long userId)

        Creates the annotation.

        Parameters:
        annotationInfo - The annotation information.
        documentId - The document identifier.
        userId - The user identifier.
        Returns:
      • getAnnotations

        public ListAnnotationsResult getAnnotations(long documentId,
                                           Integer pageNumber,
                                           Long userId)

        Lists the annotations.

        Parameters:
        documentId - The document identifier.
        pageNumber - The page number.
        userId - The user identifier.
        Returns:
      • getAnnotations

        public ListAnnotationsResult getAnnotations(long documentId)

        Gets the annotations.

        Parameters:
        documentId - The document identifier.
        Returns:
      • getAnnotations

        public ListAnnotationsResult getAnnotations(long documentId,
                                           int pageNumber)

        Gets the annotations.

        Parameters:
        documentId - The document identifier.
        pageNumber - The page number.
        Returns:
      • deleteAnnotation

        public DeleteAnnotationResult deleteAnnotation(long annotationId,
                                              long documentId,
                                              long userId)

        Deletes the annotation.

        Parameters:
        annotationId - The annotation identifier.
        documentId - The document identifier.
        userId - The user identifier.
        Returns:
      • deleteAnnotation

        public DeleteAnnotationResult deleteAnnotation(long annotationId)

        Deletes the annotation.

        Parameters:
        annotationId - The annotation identifier.
        Returns:
      • createAnnotationReply

        public AddReplyResult createAnnotationReply(long annotationId,
                                           String message,
                                           String parentReplyGuid,
                                           long documentId,
                                           long userId)

        Creates the annotation reply.

        Parameters:
        annotationId - The annotation identifier.
        message - The reply message.
        parentReplyGuid - The parent reply unique identifier.
        documentId - The document identifier.
        userId - The user identifier.
        Returns:
      • createAnnotationReply

        public AddReplyResult createAnnotationReply(long annotationId,
                                           String message)

        Creates the annotation reply.

        Parameters:
        annotationId - The annotation identifier.
        message - The message.
        Returns:
      • createAnnotationReply

        public AddReplyResult createAnnotationReply(long annotationId,
                                           String message,
                                           long documentId,
                                           long userId)

        Creates the annotation reply.

        Parameters:
        annotationId - The annotation identifier.
        message - The message.
        documentId - The document identifier.
        userId - The user identifier.
        Returns:
      • createAnnotationReply

        public AddReplyResult createAnnotationReply(long annotationId,
                                           String message,
                                           String parentReplyGuid)

        Creates the annotation reply.

        Parameters:
        annotationId - The annotation identifier.
        message - The message.
        parentReplyGuid - The parent reply unique identifier.
        Returns:
      • removeAnnotationStream_Rename_Namesake

        public InputStream removeAnnotationStream_Rename_Namesake(InputStream inputDocument,
                                                         long userId)

        Removes the annotation stream.

        Parameters:
        inputDocument - The input document.
        userId - The user identifier.
        Returns:
      • removeAnnotationStream_Rename_Namesake

        public InputStream removeAnnotationStream_Rename_Namesake(InputStream inputDocument,
                                                         long userId,
                                                         String password)

        Removes the annotation stream.

        Parameters:
        inputDocument - The input document.
        userId - The user identifier.
        password - The password.
        Returns:
      • removeAnnotationStream

        public InputStream removeAnnotationStream(InputStream inputDocument)

        Removes the annotation stream.

        Parameters:
        inputDocument - The input document.
        Returns:
      • removeAnnotationStream

        public InputStream removeAnnotationStream(InputStream inputDocument,
                                         String password)

        Removes the annotation stream.

        Parameters:
        inputDocument - The input document.
        password - The password.
        Returns:
      • removeAnnotationStream

        public InputStream removeAnnotationStream(InputStream inputDocument,
                                         int docType,
                                         long userId)

        Removes the annotation stream.

        Parameters:
        inputDocument - The input document.
        docType - Type of the document.
        userId - The user identifier.
        Returns:
      • removeAnnotationStream

        public InputStream removeAnnotationStream(InputStream inputDocument,
                                         int docType,
                                         long userId,
                                         String password)

        Removes the annotation stream.

        Parameters:
        inputDocument - The input document.
        docType - Type of the document.
        userId - The user identifier.
        password - The password.
        Returns:
      • removeAnnotationStream

        public InputStream removeAnnotationStream(InputStream inputDocument,
                                         int docType)

        Removes the annotation stream.

        Parameters:
        inputDocument - The input document.
        docType - Type of the document.
        Returns:
      • removeAnnotationStream

        public InputStream removeAnnotationStream(InputStream inputDocument,
                                         int docType,
                                         String password)

        Removes the annotation stream.

        Parameters:
        inputDocument - The input document.
        docType - Type of the document.
        password - The password.
        Returns:
      • editAnnotationReply

        public EditReplyResult editAnnotationReply(String replyGuid,
                                          String message,
                                          long documentId,
                                          long userId)

        Edits the annotation reply.

        Parameters:
        replyGuid - The reply unique identifier.
        message - The message.
        documentId - The document identifier.
        userId - The user identifier.
        Returns:
      • editAnnotationReply

        public EditReplyResult editAnnotationReply(String replyGuid,
                                          String message)

        Edits the annotation reply.

        Parameters:
        replyGuid - The reply unique identifier.
        message - The message.
        Returns:
        Throws:
        AnnotatorException
      • deleteAnnotationReplies

        public void deleteAnnotationReplies(long annotationId,
                                   long documentId,
                                   long userId)

        Deletes the annotation replies.

        Parameters:
        annotationId - The annotation identifier.
        documentId - The document identifier.
        userId - The user identifier.
      • deleteAnnotationReplies

        public void deleteAnnotationReplies(long annotationId)

        Deletes the annotation replies.

        Parameters:
        annotationId - The annotation identifier.
      • deleteAnnotationReply

        public DeleteReplyResult deleteAnnotationReply(String replyGuid,
                                              long documentId,
                                              long userId)

        Deletes the annotation reply.

        Parameters:
        replyGuid - The reply unique identifier.
        documentId - The document identifier.
        userId - The user identifier.
        Returns:
      • deleteAnnotationReply

        public DeleteReplyResult deleteAnnotationReply(String replyGuid)

        Deletes the annotation reply.

        Parameters:
        replyGuid - The reply unique identifier.
        Returns:
        Throws:
        AnnotatorException
      • listAnnotationReplies

        public ListRepliesResult listAnnotationReplies(long annotationId,
                                              long documentId,
                                              long userId)

        Lists the annotation replies.

        Parameters:
        annotationId - The annotation identifier.
        documentId - The document identifier.
        userId - The user identifier.
        Returns:
      • listAnnotationReplies

        public ListRepliesResult listAnnotationReplies(long annotationId)

        Lists the annotation replies.

        Parameters:
        annotationId - The annotation identifier.
        Returns:
      • resizeAnnotation

        public ResizeAnnotationResult resizeAnnotation(long annotationId,
                                              AnnotationSizeInfo size,
                                              long documentId,
                                              long userId)

        Resizes the annotation.

        Parameters:
        annotationId - The annotation identifier.
        size - The size.
        documentId - The document identifier.
        userId - The user identifier.
        Returns:
      • resizeAnnotation

        public ResizeAnnotationResult resizeAnnotation(long annotationId,
                                              AnnotationSizeInfo size)

        Resizes the annotation.

        Parameters:
        annotationId - The annotation identifier.
        size - The size.
        Returns:
      • moveAnnotationMarker

        public MoveAnnotationResult moveAnnotationMarker(long annotationId,
                                                Point position,
                                                Integer pageNumber,
                                                long documentId,
                                                long userId)

        Moves the annotation marker.

        Parameters:
        annotationId - The annotation identifier.
        position - The position.
        pageNumber - The page number.
        documentId - The document identifier.
        userId - The user identifier.
        Returns:
      • moveAnnotationMarker

        public MoveAnnotationResult moveAnnotationMarker(long annotationId,
                                                Point position,
                                                Integer pageNumber)

        Moves the annotation marker.

        Parameters:
        annotationId - The annotation identifier.
        position - The position.
        pageNumber - The page number.
        Returns:
      • saveTextField

        public SaveAnnotationTextResult saveTextField(long annotationId,
                                             TextFieldInfo textFieldInfo,
                                             long documentId,
                                             long userId)

        Saves the text field.

        Parameters:
        annotationId - The annotation identifier.
        textFieldInfo - The text field information.
        documentId - The document identifier.
        userId - The user identifier.
        Returns:
      • saveTextField

        public SaveAnnotationTextResult saveTextField(long annotationId,
                                             TextFieldInfo textFieldInfo)

        Saves the text field.

        Parameters:
        annotationId - The annotation identifier.
        textFieldInfo - The text field information.
        Returns:
      • setTextFieldColor

        public SaveAnnotationTextResult setTextFieldColor(long annotationId,
                                                 int fontColor,
                                                 long documentId,
                                                 long userId)

        Sets the color of the text field.

        Parameters:
        annotationId - The annotation identifier.
        fontColor - Color of the font.
        documentId - The document identifier.
        userId - The user identifier.
        Returns:
      • setTextFieldColor

        public SaveAnnotationTextResult setTextFieldColor(long annotationId,
                                                 int fontColor)

        Sets the color of the text field.

        Parameters:
        annotationId - The annotation identifier.
        fontColor - Color of the font.
        Returns:
      • setAnnotationBackgroundColor

        public SaveAnnotationTextResult setAnnotationBackgroundColor(long annotationId,
                                                            int color,
                                                            long documentId,
                                                            long userId)

        Sets the color of the annotation background.

        Parameters:
        annotationId - The annotation identifier.
        color - The color.
        documentId - The document identifier.
        userId - The user identifier.
        Returns:
      • setAnnotationBackgroundColor

        public SaveAnnotationTextResult setAnnotationBackgroundColor(long annotationId,
                                                            int color)

        Sets the color of the annotation background.

        Parameters:
        annotationId - The annotation identifier.
        color - The color.
        Returns:
      • getCollaborators

        public GetCollaboratorsResult getCollaborators(long documentId)

        Gets the collaborators.

        Parameters:
        documentId - The document identifier.
        Returns:
      • addCollaborator

        public SetCollaboratorsResult addCollaborator(long documentId,
                                             ReviewerInfo reviewerInfo)

        Adds the collaborator.

        Parameters:
        documentId - The document identifier.
        reviewerInfo - The reviewer information.
        Returns:
      • updateCollaborator

        public SetCollaboratorsResult updateCollaborator(long documentId,
                                                ReviewerInfo reviewerInfo)

        Updates the collaborator.

        Parameters:
        documentId - The document identifier.
        reviewerInfo - The reviewer information.
        Returns:
        Throws:
        AnnotatorException
      • deleteCollaborator

        public SetCollaboratorsResult deleteCollaborator(long documentId,
                                                String email)

        Deletes the collaborator.

        Parameters:
        documentId - The document identifier.
        email - The email.
        Returns:
      • getCollaboratorMetadata

        public ReviewerInfo getCollaboratorMetadata(String userGuid)

        Gets the collaborator metadata.

        Parameters:
        userGuid - The user unique identifier.
        Returns:
      • getDocumentCollaborator

        public ReviewerInfo getDocumentCollaborator(long documentId,
                                           String userName)

        Gets the document collaborator.

        Parameters:
        documentId - The document identifier.
        userName - Name of the user.
        Returns:
        Throws:
        AnnotatorException
      • checkReviewerPermissions

        public void checkReviewerPermissions(long userId,
                                    long documentId,
                                    long rights)

        Checks the reviewer permissions.

        Parameters:
        userId - The user identifier.
        documentId - The document identifier.
        rights - The rights.
      • checkReviewerPermissions

        public void checkReviewerPermissions(ReviewerInfo reviewer,
                                    long rights)

        Checks the reviewer permissions.

        Parameters:
        reviewer - The reviewer.
        rights - The rights.
        Throws:
        AnnotatorException
      • exportAnnotationsToDocument_Rename_Namesake

        public InputStream exportAnnotationsToDocument_Rename_Namesake(long documentId,
                                                              InputStream inputDoc,
                                                              long userId,
                                                              String password)

        Exports the annotations to document.

        Parameters:
        documentId - The document identifier.
        inputDoc - The input document.
        userId - The user identifier.
        password - The password.
        Returns:
      • exportAnnotationsToDocument_Rename_Namesake

        public InputStream exportAnnotationsToDocument_Rename_Namesake(long documentId,
                                                              InputStream inputDoc,
                                                              long userId)

        Exports the annotations to document.

        Parameters:
        documentId - The document identifier.
        inputDoc - The input document.
        userId - The user identifier.
        Returns:
      • exportAnnotationsToDocument

        public InputStream exportAnnotationsToDocument(InputStream inputDocument,
                                              List<AnnotationInfo> annotations)

        Exports the annotations to document.

        Parameters:
        inputDocument - The input document.
        annotations - The annotations.
        Returns:
      • exportAnnotationsToDocument

        public InputStream exportAnnotationsToDocument(InputStream inputDocument,
                                              List<AnnotationInfo> annotations,
                                              String password)

        Exports the annotations to document.

        Parameters:
        inputDocument - The input document.
        annotations - The annotations.
        password - The password.
        Returns:
      • exportAnnotationsToDocument

        public InputStream exportAnnotationsToDocument(long documentId,
                                              InputStream inputDoc)

        Exports the annotations to document.

        Parameters:
        documentId - The document identifier.
        inputDoc - The input document.
        Returns:
      • exportAnnotationsToDocument

        public InputStream exportAnnotationsToDocument(long documentId,
                                              InputStream inputDoc,
                                              String password)

        Exports the annotations to document.

        Parameters:
        documentId - The document identifier.
        inputDoc - The input document.
        password - The password.
        Returns:
      • exportAnnotationsToDocument

        public InputStream exportAnnotationsToDocument(long documentId,
                                              InputStream inputDoc,
                                              int type,
                                              long userId)

        Exports the annotations.

        Parameters:
        documentId - The document identifier.
        inputDoc - The input document.
        type - The type.
        userId - The user identifier.
        Returns:
      • exportAnnotationsToDocument

        public InputStream exportAnnotationsToDocument(long documentId,
                                              InputStream inputDoc,
                                              int type,
                                              long userId,
                                              String password)

        Exports the annotations to document.

        Parameters:
        documentId - The document identifier.
        inputDoc - The input document.
        type - The type.
        userId - The user identifier.
        password - The password.
        Returns:
      • exportAnnotationsToDocument

        public InputStream exportAnnotationsToDocument(long documentId,
                                              InputStream inputDoc,
                                              int type)

        Exports the annotations to document.

        Parameters:
        documentId - The document identifier.
        inputDoc - The input document.
        type - The type.
        Returns:
      • exportAnnotationsToDocument

        public InputStream exportAnnotationsToDocument(long documentId,
                                              InputStream inputDoc,
                                              int type,
                                              String password)

        Exports the annotations to document.

        Parameters:
        documentId - The document identifier.
        inputDoc - The input document.
        type - The type.
        password - The password.
        Returns:
      • exportAnnotationsToDocument

        public InputStream exportAnnotationsToDocument(InputStream inputDocument,
                                              List<AnnotationInfo> annotations,
                                              int documentType)

        Exports the annotations to document.

        Parameters:
        inputDocument - The input document.
        annotations - The annotations.
        documentType - Type of the document.
        Returns:
      • exportAnnotationsToDocument

        public InputStream exportAnnotationsToDocument(InputStream inputDocument,
                                              List<AnnotationInfo> annotations,
                                              int documentType,
                                              String password)

        Exports the annotations to document.

        Parameters:
        inputDocument - The input document.
        annotations - The annotations.
        documentType - Type of the document.
        password - The password.
        Returns:
      • importAnnotations

        public void importAnnotations(long documentId,
                             InputStream inputDocument,
                             long userId)

        Imports the annotations.

        Parameters:
        documentId - The document identifier.
        inputDocument - The input document.
        userId - The user identifier.
      • importAnnotations

        public void importAnnotations(long documentId,
                             InputStream inputDocument,
                             long userId,
                             String password)

        Imports the annotations.

        Parameters:
        documentId - The document identifier.
        inputDocument - The input document.
        userId - The user identifier.
        password - The password.
      • importAnnotations_Rename_Namesake

        public AnnotationInfo[] importAnnotations_Rename_Namesake(InputStream inputDocument,
                                                         long userId,
                                                         String password)

        Imports the annotations.

        Parameters:
        inputDocument - The input document.
        userId - The user identifier.
        password - The password.
        Returns:
      • importAnnotations_Rename_Namesake

        public AnnotationInfo[] importAnnotations_Rename_Namesake(InputStream inputDocument,
                                                         long userId)

        Imports the annotations.

        Parameters:
        inputDocument - The input document.
        userId - The user identifier.
        Returns:
      • importAnnotations

        public AnnotationInfo[] importAnnotations(InputStream inputDocument)

        Imports the annotations.

        Parameters:
        inputDocument - The input document.
        Returns:
      • importAnnotations

        public AnnotationInfo[] importAnnotations(InputStream inputDocument,
                                         String password)

        Imports the annotations.

        Parameters:
        inputDocument - The input document.
        password - The password.
        Returns:
      • importAnnotations

        public AnnotationInfo[] importAnnotations(InputStream inputDoc,
                                         int type,
                                         long userId)

        Imports the annotations.

        Parameters:
        inputDoc - The input document.
        type - The type.
        userId - The user identifier.
        Returns:
      • importAnnotations

        public AnnotationInfo[] importAnnotations(InputStream inputDoc,
                                         int type,
                                         long userId,
                                         String password)

        Imports the annotations.

        Parameters:
        inputDoc - The input document.
        type - The type.
        userId - The user identifier.
        password - The password.
        Returns:
      • importAnnotations

        public AnnotationInfo[] importAnnotations(InputStream inputDoc,
                                         int documentType)

        Imports the annotations.

        Parameters:
        inputDoc - The input document.
        documentType - Type of the document.
        Returns:
      • importAnnotations

        public AnnotationInfo[] importAnnotations(InputStream inputDoc,
                                         int documentType,
                                         String password)

        Imports the annotations.

        Parameters:
        inputDoc - The input document.
        documentType - Type of the document.
        password - The password.
        Returns:
      • importAnnotations

        public void importAnnotations(long documentId,
                             InputStream inputDoc,
                             int type,
                             long userId)

        Imports the annotations.

        Parameters:
        documentId - The document identifier.
        inputDoc - The input document.
        type - The type.
        userId - The user identifier.
      • importAnnotations

        public void importAnnotations(long documentId,
                             InputStream inputDoc,
                             int documentType,
                             long userId,
                             String password)

        Imports the annotations.

        Parameters:
        documentId - The document identifier.
        inputDoc - The input document.
        documentType - Type of the document.
        userId - The user identifier.
        password - The password.