public abstract class AnnotationHandler<T extends Page> extends Object
Annotation service base class
T
:
Modifier | Constructor and Description |
---|---|
protected |
AnnotationHandler(AnnotationConfig cfg)
Initializes a new instance of the
AnnotationHandler{T} class. |
protected |
AnnotationHandler(AnnotationConfig cfg,
IInputDataHandler inputDataHandler)
Initializes a new instance of the
AnnotationHandler{T} class. |
protected |
AnnotationHandler(AnnotationConfig cfg,
IInputDataHandler inputDataHandler,
IFileDataStore fileDataStore)
Initializes a new instance of the
AnnotationHandler{T} class. |
protected |
AnnotationHandler(AnnotationConfig cfg,
IUserDataHandler userDataHandler,
IDocumentDataHandler documentDataHandler,
IAnnotationDataHandler annotationDataHandler,
IAnnotationReplyDataHandler replyDataHandler,
IAnnotationCollaboratorDataHandler collaboratorDataHandler)
Initializes a new instance of the
AnnotationHandler{T} class. |
protected |
AnnotationHandler(AnnotationConfig cfg,
IUserDataHandler userDataHandler,
IDocumentDataHandler documentDataHandler,
IAnnotationDataHandler annotationDataHandler,
IAnnotationReplyDataHandler replyDataHandler,
IAnnotationCollaboratorDataHandler collaboratorDataHandler,
IInputDataHandler inputDataHandler,
IFileDataStore fileStore)
Initializes a new instance of the
AnnotationHandler{T} class. |
Modifier and Type | Method and Description |
---|---|
SetCollaboratorsResult |
addCollaborator(long documentId,
ReviewerInfo reviewerInfo)
Adds the collaborator.
|
void |
checkReviewerPermissions(long userId,
long documentId,
long rights)
Checks the reviewer permissions.
|
void |
checkReviewerPermissions(ReviewerInfo reviewer,
long rights)
Checks the reviewer permissions.
|
CreateAnnotationResult |
createAnnotation(AnnotationInfo annotationInfo)
Creates the annotation.
|
CreateAnnotationResult |
createAnnotation(AnnotationInfo annotationInfo,
long documentId,
long userId)
Creates the annotation.
|
AddReplyResult |
createAnnotationReply(long annotationId,
String message)
Creates the annotation reply.
|
AddReplyResult |
createAnnotationReply(long annotationId,
String message,
long documentId,
long userId)
Creates the annotation reply.
|
AddReplyResult |
createAnnotationReply(long annotationId,
String message,
String parentReplyGuid)
Creates the annotation reply.
|
AddReplyResult |
createAnnotationReply(long annotationId,
String message,
String parentReplyGuid,
long documentId,
long userId)
Creates the annotation reply.
|
long |
createDocument(String documentName)
Creates the document.
|
long |
createDocument(String documentName,
int docType)
Creates the document.
|
long |
createDocument(String documentName,
int docType,
long userId)
Creates the document.
|
DeleteAnnotationResult |
deleteAnnotation(long annotationId)
Deletes the annotation.
|
DeleteAnnotationResult |
deleteAnnotation(long annotationId,
long documentId,
long userId)
Deletes the annotation.
|
void |
deleteAnnotationReplies(long annotationId)
Deletes the annotation replies.
|
void |
deleteAnnotationReplies(long annotationId,
long documentId,
long userId)
Deletes the annotation replies.
|
DeleteReplyResult |
deleteAnnotationReply(String replyGuid)
Deletes the annotation reply.
|
DeleteReplyResult |
deleteAnnotationReply(String replyGuid,
long documentId,
long userId)
Deletes the annotation reply.
|
void |
deleteAnnotations(long documentId)
Deletes the annotations.
|
void |
deleteAnnotations(long documentId,
long userId)
Deletes the annotations.
|
SetCollaboratorsResult |
deleteCollaborator(long documentId,
String email)
Deletes the collaborator.
|
EditReplyResult |
editAnnotationReply(String replyGuid,
String message)
Edits the annotation reply.
|
EditReplyResult |
editAnnotationReply(String replyGuid,
String message,
long documentId,
long userId)
Edits the annotation reply.
|
InputStream |
exportAnnotationsToDocument_Rename_Namesake(long documentId,
InputStream inputDoc,
long userId)
Exports the annotations to document.
|
InputStream |
exportAnnotationsToDocument_Rename_Namesake(long documentId,
InputStream inputDoc,
long userId,
String password)
Exports the annotations to document.
|
InputStream |
exportAnnotationsToDocument(InputStream inputDocument,
List<AnnotationInfo> annotations)
Exports the annotations to document.
|
InputStream |
exportAnnotationsToDocument(InputStream inputDocument,
List<AnnotationInfo> annotations,
int documentType)
Exports the annotations to document.
|
InputStream |
exportAnnotationsToDocument(InputStream inputDocument,
List<AnnotationInfo> annotations,
int documentType,
String password)
Exports the annotations to document.
|
InputStream |
exportAnnotationsToDocument(InputStream inputDocument,
List<AnnotationInfo> annotations,
String password)
Exports the annotations to document.
|
InputStream |
exportAnnotationsToDocument(long documentId,
InputStream inputDoc)
Exports the annotations to document.
|
InputStream |
exportAnnotationsToDocument(long documentId,
InputStream inputDoc,
int type)
Exports the annotations to document.
|
InputStream |
exportAnnotationsToDocument(long documentId,
InputStream inputDoc,
int type,
long userId)
Exports the annotations.
|
InputStream |
exportAnnotationsToDocument(long documentId,
InputStream inputDoc,
int type,
long userId,
String password)
Exports the annotations to document.
|
InputStream |
exportAnnotationsToDocument(long documentId,
InputStream inputDoc,
int type,
String password)
Exports the annotations to document.
|
InputStream |
exportAnnotationsToDocument(long documentId,
InputStream inputDoc,
String password)
Exports the annotations to document.
|
GetAnnotationResult |
getAnnotation(String guid)
Gets the annotation.
|
GetAnnotationResult |
getAnnotation(String guid,
long documentId,
long userId)
Gets the annotation.
|
IAnnotationCollaboratorDataHandler |
getAnnotationCollaboratorsDataHandler()
Gets the annotation collaborators data handler.
|
IAnnotationDataHandler |
getAnnotationDataHandler()
Gets the annotation data handler.
|
IAnnotationReplyDataHandler |
getAnnotationReplyDataHandler()
Gets the annotation reply data handler.
|
ListAnnotationsResult |
getAnnotations(long documentId)
Gets the annotations.
|
ListAnnotationsResult |
getAnnotations(long documentId,
int pageNumber)
Gets the annotations.
|
ListAnnotationsResult |
getAnnotations(long documentId,
Integer pageNumber,
Long userId)
Lists the annotations.
|
ReviewerInfo |
getCollaboratorMetadata(String userGuid)
Gets the collaborator metadata.
|
GetCollaboratorsResult |
getCollaborators(long documentId)
Gets the collaborators.
|
ReviewerInfo |
getDocumentCollaborator(long documentId,
String userName)
Gets the document collaborator.
|
IDocumentDataHandler |
getDocumentDataHandler()
Gets the document data handler.
|
DocumentInfoContainer |
getDocumentInfo(InputStream input)
Gets the document information.
|
DocumentInfoContainer |
getDocumentInfo(InputStream input,
String password)
Gets the document information.
|
DocumentInfoContainer |
getDocumentInfo(String guid)
Gets the document information.
|
DocumentInfoContainer |
getDocumentInfo(String guid,
String password)
Gets the document information.
|
FileContainer |
getFile(String guid)
Get original file
|
IFileDataStore |
getFileDataStore()
Gets the file data store.
|
IInputDataHandler |
getInputDataHandler()
Gets the input data handler.
|
protected List<T> |
getPages(InputStream fileStream,
ConverterOptions options)
Gets the pages.
|
protected List<T> |
getPages(String guid,
ConverterOptions options)
Gets the pages.
|
FileContainer |
getPdfFile(InputStream inputDoc,
String guid)
Get pdf file or convert to pdf
|
FileContainer |
getPdfFile(String guid)
Get pdf file or convert to pdf
|
IUserDataHandler |
getUserDataHandler()
Gets the user data handler.
|
AnnotationInfo[] |
importAnnotations_Rename_Namesake(InputStream inputDocument,
long userId)
Imports the annotations.
|
AnnotationInfo[] |
importAnnotations_Rename_Namesake(InputStream inputDocument,
long userId,
String password)
Imports the annotations.
|
AnnotationInfo[] |
importAnnotations(InputStream inputDocument)
Imports the annotations.
|
AnnotationInfo[] |
importAnnotations(InputStream inputDoc,
int documentType)
Imports the annotations.
|
AnnotationInfo[] |
importAnnotations(InputStream inputDoc,
int type,
long userId)
Imports the annotations.
|
AnnotationInfo[] |
importAnnotations(InputStream inputDoc,
int type,
long userId,
String password)
Imports the annotations.
|
AnnotationInfo[] |
importAnnotations(InputStream inputDoc,
int documentType,
String password)
Imports the annotations.
|
AnnotationInfo[] |
importAnnotations(InputStream inputDocument,
String password)
Imports the annotations.
|
void |
importAnnotations(long documentId,
InputStream inputDoc,
int type,
long userId)
Imports the annotations.
|
void |
importAnnotations(long documentId,
InputStream inputDoc,
int documentType,
long userId,
String password)
Imports the annotations.
|
void |
importAnnotations(long documentId,
InputStream inputDocument,
long userId)
Imports the annotations.
|
void |
importAnnotations(long documentId,
InputStream inputDocument,
long userId,
String password)
Imports the annotations.
|
ListRepliesResult |
listAnnotationReplies(long annotationId)
Lists the annotation replies.
|
ListRepliesResult |
listAnnotationReplies(long annotationId,
long documentId,
long userId)
Lists the annotation replies.
|
FileTreeContainer |
loadFileTree()
Loads files/folders structure for specified path
|
FileTreeContainer |
loadFileTree(FileTreeOptions fileTreeOptions)
Loads files/folders structure for specified path
|
MoveAnnotationResult |
moveAnnotationMarker(long annotationId,
Point position,
Integer pageNumber)
Moves the annotation marker.
|
MoveAnnotationResult |
moveAnnotationMarker(long annotationId,
Point position,
Integer pageNumber,
long documentId,
long userId)
Moves the annotation marker.
|
InputStream |
removeAnnotationStream_Rename_Namesake(InputStream inputDocument,
long userId)
Removes the annotation stream.
|
InputStream |
removeAnnotationStream_Rename_Namesake(InputStream inputDocument,
long userId,
String password)
Removes the annotation stream.
|
InputStream |
removeAnnotationStream(InputStream inputDocument)
Removes the annotation stream.
|
InputStream |
removeAnnotationStream(InputStream inputDocument,
int docType)
Removes the annotation stream.
|
InputStream |
removeAnnotationStream(InputStream inputDocument,
int docType,
long userId)
Removes the annotation stream.
|
InputStream |
removeAnnotationStream(InputStream inputDocument,
int docType,
long userId,
String password)
Removes the annotation stream.
|
InputStream |
removeAnnotationStream(InputStream inputDocument,
int docType,
String password)
Removes the annotation stream.
|
InputStream |
removeAnnotationStream(InputStream inputDocument,
String password)
Removes the annotation stream.
|
boolean |
removeDocument(String documentName)
Removes the document.
|
ResizeAnnotationResult |
resizeAnnotation(long annotationId,
AnnotationSizeInfo size)
Resizes the annotation.
|
ResizeAnnotationResult |
resizeAnnotation(long annotationId,
AnnotationSizeInfo size,
long documentId,
long userId)
Resizes the annotation.
|
SaveAnnotationTextResult |
saveTextField(long annotationId,
TextFieldInfo textFieldInfo)
Saves the text field.
|
SaveAnnotationTextResult |
saveTextField(long annotationId,
TextFieldInfo textFieldInfo,
long documentId,
long userId)
Saves the text field.
|
SaveAnnotationTextResult |
setAnnotationBackgroundColor(long annotationId,
int color)
Sets the color of the annotation background.
|
SaveAnnotationTextResult |
setAnnotationBackgroundColor(long annotationId,
int color,
long documentId,
long userId)
Sets the color of the annotation background.
|
void |
setCulture(Locale culture)
Sets the culture.
|
void |
setCulture(String culture)
Sets the culture.
|
void |
setDocumentAccessRights(long documentId,
long rights)
Sets the document access rights.
|
SaveAnnotationTextResult |
setTextFieldColor(long annotationId,
int fontColor)
Sets the color of the text field.
|
SaveAnnotationTextResult |
setTextFieldColor(long annotationId,
int fontColor,
long documentId,
long userId)
Sets the color of the text field.
|
SetCollaboratorsResult |
updateCollaborator(long documentId,
ReviewerInfo reviewerInfo)
Updates the collaborator.
|
protected AnnotationHandler(AnnotationConfig cfg)
Initializes a new instance of the AnnotationHandler{T}
class.
cfg
- The CFG.protected AnnotationHandler(AnnotationConfig cfg, IInputDataHandler inputDataHandler)
Initializes a new instance of the AnnotationHandler{T}
class.
cfg
- The CFG.inputDataHandler
- The input data handler.protected AnnotationHandler(AnnotationConfig cfg, IInputDataHandler inputDataHandler, IFileDataStore fileDataStore)
Initializes a new instance of the AnnotationHandler{T}
class.
cfg
- The CFG.inputDataHandler
- The input data handler.fileDataStore
- The file data store.protected AnnotationHandler(AnnotationConfig cfg, IUserDataHandler userDataHandler, IDocumentDataHandler documentDataHandler, IAnnotationDataHandler annotationDataHandler, IAnnotationReplyDataHandler replyDataHandler, IAnnotationCollaboratorDataHandler collaboratorDataHandler)
Initializes a new instance of the AnnotationHandler{T}
class.
cfg
- Annotation configuserDataHandler
- The user storage.documentDataHandler
- The document storage.annotationDataHandler
- The annotation storage.replyDataHandler
- The reply storage.collaboratorDataHandler
- The collaborator storage.protected AnnotationHandler(AnnotationConfig cfg, IUserDataHandler userDataHandler, IDocumentDataHandler documentDataHandler, IAnnotationDataHandler annotationDataHandler, IAnnotationReplyDataHandler replyDataHandler, IAnnotationCollaboratorDataHandler collaboratorDataHandler, IInputDataHandler inputDataHandler, IFileDataStore fileStore)
Initializes a new instance of the AnnotationHandler{T}
class.
cfg
- Annotation configinputDataHandler
- The input data handler.userDataHandler
- The user storage.documentDataHandler
- The document storage.annotationDataHandler
- The annotation storage.replyDataHandler
- The reply storage.collaboratorDataHandler
- The collaborator storage.fileStore
- The file store.public IInputDataHandler getInputDataHandler()
Gets the input data handler.
public IUserDataHandler getUserDataHandler()
Gets the user data handler.
public IDocumentDataHandler getDocumentDataHandler()
Gets the document data handler.
public IAnnotationDataHandler getAnnotationDataHandler()
Gets the annotation data handler.
public IAnnotationReplyDataHandler getAnnotationReplyDataHandler()
Gets the annotation reply data handler.
public IAnnotationCollaboratorDataHandler getAnnotationCollaboratorsDataHandler()
Gets the annotation collaborators data handler.
public IFileDataStore getFileDataStore()
Gets the file data store.
public void setCulture(Locale culture)
Sets the culture.
culture
- The culture.AnnotatorException
- Locale in not supported.public void setCulture(String culture)
Sets the culture.
culture
- The culture.AnnotatorException
- Locale in not supported.protected List<T> getPages(String guid, ConverterOptions options)
Gets the pages.
guid
- The unique identifier.options
- The options.protected List<T> getPages(InputStream fileStream, ConverterOptions options)
Gets the pages.
fileStream
- The file stream.options
- The options.public DocumentInfoContainer getDocumentInfo(String guid)
Gets the document information.
guid
- The unique identifier.public DocumentInfoContainer getDocumentInfo(String guid, String password)
Gets the document information.
guid
- The unique identifier.password
- The password.com.aspose.ms.System.ArgumentException
- File must have extension.public DocumentInfoContainer getDocumentInfo(InputStream input, String password)
Gets the document information.
input
- Input stream.password
- Password of current document.public DocumentInfoContainer getDocumentInfo(InputStream input)
Gets the document information.
input
- Input stream.public FileTreeContainer loadFileTree()
Loads files/folders structure for specified path
T:GroupDocs.Annotation.Domain.Containers.FileTreeContainer
for
detailed information.public FileTreeContainer loadFileTree(FileTreeOptions fileTreeOptions)
Loads files/folders structure for specified path
fileTreeOptions
- T:GroupDocs.Annotation.Domain.Options.FileTreeOptions
for
detailed information.T:GroupDocs.Annotation.Domain.Containers.FileTreeContainer
for
detailed information.public FileContainer getFile(String guid)
Get original file
guid
- Document guid (file path, etc)com.aspose.ms.System.ArgumentNullException
- Guid cannot be null.public FileContainer getPdfFile(String guid)
Get pdf file or convert to pdf
guid
- Document guid (file path, etc)com.aspose.ms.System.ArgumentNullException
- Guid cannot be null.public FileContainer getPdfFile(InputStream inputDoc, String guid)
Get pdf file or convert to pdf
inputDoc
- Stream of document to convertguid
- Document guid (file path, etc)com.aspose.ms.System.ArgumentNullException
- Guid cannot be null.public long createDocument(String documentName, int docType, long userId)
Creates the document.
documentName
- Name of the document.docType
- Type of the documentuserId
- The user identifier.AnnotatorException
- Unable to add an document data to the
database.public long createDocument(String documentName)
Creates the document.
documentName
- Name of the document.public long createDocument(String documentName, int docType)
Creates the document.
documentName
- Name of the document.docType
- Type of the document.public boolean removeDocument(String documentName)
Removes the document.
documentName
- Name of the document.public void setDocumentAccessRights(long documentId, long rights)
Sets the document access rights.
documentId
- The document identifier.rights
- The rights.public void deleteAnnotations(long documentId, long userId)
Deletes the annotations.
documentId
- The document identifier.userId
- The user identifier.public void deleteAnnotations(long documentId)
Deletes the annotations.
documentId
- The document identifier.public GetAnnotationResult getAnnotation(String guid, long documentId, long userId)
Gets the annotation.
guid
- The unique identifier.documentId
- The document identifier.userId
- The user identifier.public GetAnnotationResult getAnnotation(String guid)
Gets the annotation.
guid
- The unique identifier.public CreateAnnotationResult createAnnotation(AnnotationInfo annotationInfo, long documentId, long userId)
Creates the annotation.
annotationInfo
- The annotation information.documentId
- The document identifier.userId
- The user identifier.public CreateAnnotationResult createAnnotation(AnnotationInfo annotationInfo)
Creates the annotation.
annotationInfo
- The annotation information.AnnotatorException
public ListAnnotationsResult getAnnotations(long documentId, Integer pageNumber, Long userId)
Lists the annotations.
documentId
- The document identifier.pageNumber
- The page number.userId
- The user identifier.public ListAnnotationsResult getAnnotations(long documentId)
Gets the annotations.
documentId
- The document identifier.public ListAnnotationsResult getAnnotations(long documentId, int pageNumber)
Gets the annotations.
documentId
- The document identifier.pageNumber
- The page number.public DeleteAnnotationResult deleteAnnotation(long annotationId, long documentId, long userId)
Deletes the annotation.
annotationId
- The annotation identifier.documentId
- The document identifier.userId
- The user identifier.public DeleteAnnotationResult deleteAnnotation(long annotationId)
Deletes the annotation.
annotationId
- The annotation identifier.public AddReplyResult createAnnotationReply(long annotationId, String message, String parentReplyGuid, long documentId, long userId)
Creates the annotation reply.
annotationId
- The annotation identifier.message
- The reply message.parentReplyGuid
- The parent reply unique identifier.documentId
- The document identifier.userId
- The user identifier.public AddReplyResult createAnnotationReply(long annotationId, String message)
Creates the annotation reply.
annotationId
- The annotation identifier.message
- The message.public AddReplyResult createAnnotationReply(long annotationId, String message, long documentId, long userId)
Creates the annotation reply.
annotationId
- The annotation identifier.message
- The message.documentId
- The document identifier.userId
- The user identifier.public AddReplyResult createAnnotationReply(long annotationId, String message, String parentReplyGuid)
Creates the annotation reply.
annotationId
- The annotation identifier.message
- The message.parentReplyGuid
- The parent reply unique identifier.public InputStream removeAnnotationStream_Rename_Namesake(InputStream inputDocument, long userId)
Removes the annotation stream.
inputDocument
- The input document.userId
- The user identifier.public InputStream removeAnnotationStream_Rename_Namesake(InputStream inputDocument, long userId, String password)
Removes the annotation stream.
inputDocument
- The input document.userId
- The user identifier.password
- The password.public InputStream removeAnnotationStream(InputStream inputDocument)
Removes the annotation stream.
inputDocument
- The input document.public InputStream removeAnnotationStream(InputStream inputDocument, String password)
Removes the annotation stream.
inputDocument
- The input document.password
- The password.public InputStream removeAnnotationStream(InputStream inputDocument, int docType, long userId)
Removes the annotation stream.
inputDocument
- The input document.docType
- Type of the document.userId
- The user identifier.public InputStream removeAnnotationStream(InputStream inputDocument, int docType, long userId, String password)
Removes the annotation stream.
inputDocument
- The input document.docType
- Type of the document.userId
- The user identifier.password
- The password.public InputStream removeAnnotationStream(InputStream inputDocument, int docType)
Removes the annotation stream.
inputDocument
- The input document.docType
- Type of the document.public InputStream removeAnnotationStream(InputStream inputDocument, int docType, String password)
Removes the annotation stream.
inputDocument
- The input document.docType
- Type of the document.password
- The password.public EditReplyResult editAnnotationReply(String replyGuid, String message, long documentId, long userId)
Edits the annotation reply.
replyGuid
- The reply unique identifier.message
- The message.documentId
- The document identifier.userId
- The user identifier.public EditReplyResult editAnnotationReply(String replyGuid, String message)
Edits the annotation reply.
replyGuid
- The reply unique identifier.message
- The message.AnnotatorException
public void deleteAnnotationReplies(long annotationId, long documentId, long userId)
Deletes the annotation replies.
annotationId
- The annotation identifier.documentId
- The document identifier.userId
- The user identifier.public void deleteAnnotationReplies(long annotationId)
Deletes the annotation replies.
annotationId
- The annotation identifier.public DeleteReplyResult deleteAnnotationReply(String replyGuid, long documentId, long userId)
Deletes the annotation reply.
replyGuid
- The reply unique identifier.documentId
- The document identifier.userId
- The user identifier.public DeleteReplyResult deleteAnnotationReply(String replyGuid)
Deletes the annotation reply.
replyGuid
- The reply unique identifier.AnnotatorException
public ListRepliesResult listAnnotationReplies(long annotationId, long documentId, long userId)
Lists the annotation replies.
annotationId
- The annotation identifier.documentId
- The document identifier.userId
- The user identifier.public ListRepliesResult listAnnotationReplies(long annotationId)
Lists the annotation replies.
annotationId
- The annotation identifier.public ResizeAnnotationResult resizeAnnotation(long annotationId, AnnotationSizeInfo size, long documentId, long userId)
Resizes the annotation.
annotationId
- The annotation identifier.size
- The size.documentId
- The document identifier.userId
- The user identifier.public ResizeAnnotationResult resizeAnnotation(long annotationId, AnnotationSizeInfo size)
Resizes the annotation.
annotationId
- The annotation identifier.size
- The size.public MoveAnnotationResult moveAnnotationMarker(long annotationId, Point position, Integer pageNumber, long documentId, long userId)
Moves the annotation marker.
annotationId
- The annotation identifier.position
- The position.pageNumber
- The page number.documentId
- The document identifier.userId
- The user identifier.public MoveAnnotationResult moveAnnotationMarker(long annotationId, Point position, Integer pageNumber)
Moves the annotation marker.
annotationId
- The annotation identifier.position
- The position.pageNumber
- The page number.public SaveAnnotationTextResult saveTextField(long annotationId, TextFieldInfo textFieldInfo, long documentId, long userId)
Saves the text field.
annotationId
- The annotation identifier.textFieldInfo
- The text field information.documentId
- The document identifier.userId
- The user identifier.public SaveAnnotationTextResult saveTextField(long annotationId, TextFieldInfo textFieldInfo)
Saves the text field.
annotationId
- The annotation identifier.textFieldInfo
- The text field information.public SaveAnnotationTextResult setTextFieldColor(long annotationId, int fontColor, long documentId, long userId)
Sets the color of the text field.
annotationId
- The annotation identifier.fontColor
- Color of the font.documentId
- The document identifier.userId
- The user identifier.public SaveAnnotationTextResult setTextFieldColor(long annotationId, int fontColor)
Sets the color of the text field.
annotationId
- The annotation identifier.fontColor
- Color of the font.public SaveAnnotationTextResult setAnnotationBackgroundColor(long annotationId, int color, long documentId, long userId)
Sets the color of the annotation background.
annotationId
- The annotation identifier.color
- The color.documentId
- The document identifier.userId
- The user identifier.public SaveAnnotationTextResult setAnnotationBackgroundColor(long annotationId, int color)
Sets the color of the annotation background.
annotationId
- The annotation identifier.color
- The color.public GetCollaboratorsResult getCollaborators(long documentId)
Gets the collaborators.
documentId
- The document identifier.public SetCollaboratorsResult addCollaborator(long documentId, ReviewerInfo reviewerInfo)
Adds the collaborator.
documentId
- The document identifier.reviewerInfo
- The reviewer information.public SetCollaboratorsResult updateCollaborator(long documentId, ReviewerInfo reviewerInfo)
Updates the collaborator.
documentId
- The document identifier.reviewerInfo
- The reviewer information.AnnotatorException
public SetCollaboratorsResult deleteCollaborator(long documentId, String email)
Deletes the collaborator.
documentId
- The document identifier.email
- The email.public ReviewerInfo getCollaboratorMetadata(String userGuid)
Gets the collaborator metadata.
userGuid
- The user unique identifier.public ReviewerInfo getDocumentCollaborator(long documentId, String userName)
Gets the document collaborator.
documentId
- The document identifier.userName
- Name of the user.AnnotatorException
public void checkReviewerPermissions(long userId, long documentId, long rights)
Checks the reviewer permissions.
userId
- The user identifier.documentId
- The document identifier.rights
- The rights.public void checkReviewerPermissions(ReviewerInfo reviewer, long rights)
Checks the reviewer permissions.
reviewer
- The reviewer.rights
- The rights.AnnotatorException
public InputStream exportAnnotationsToDocument_Rename_Namesake(long documentId, InputStream inputDoc, long userId, String password)
Exports the annotations to document.
documentId
- The document identifier.inputDoc
- The input document.userId
- The user identifier.password
- The password.public InputStream exportAnnotationsToDocument_Rename_Namesake(long documentId, InputStream inputDoc, long userId)
Exports the annotations to document.
documentId
- The document identifier.inputDoc
- The input document.userId
- The user identifier.public InputStream exportAnnotationsToDocument(InputStream inputDocument, List<AnnotationInfo> annotations)
Exports the annotations to document.
inputDocument
- The input document.annotations
- The annotations.public InputStream exportAnnotationsToDocument(InputStream inputDocument, List<AnnotationInfo> annotations, String password)
Exports the annotations to document.
inputDocument
- The input document.annotations
- The annotations.password
- The password.public InputStream exportAnnotationsToDocument(long documentId, InputStream inputDoc)
Exports the annotations to document.
documentId
- The document identifier.inputDoc
- The input document.public InputStream exportAnnotationsToDocument(long documentId, InputStream inputDoc, String password)
Exports the annotations to document.
documentId
- The document identifier.inputDoc
- The input document.password
- The password.public InputStream exportAnnotationsToDocument(long documentId, InputStream inputDoc, int type, long userId)
Exports the annotations.
documentId
- The document identifier.inputDoc
- The input document.type
- The type.userId
- The user identifier.public InputStream exportAnnotationsToDocument(long documentId, InputStream inputDoc, int type, long userId, String password)
Exports the annotations to document.
documentId
- The document identifier.inputDoc
- The input document.type
- The type.userId
- The user identifier.password
- The password.public InputStream exportAnnotationsToDocument(long documentId, InputStream inputDoc, int type)
Exports the annotations to document.
documentId
- The document identifier.inputDoc
- The input document.type
- The type.public InputStream exportAnnotationsToDocument(long documentId, InputStream inputDoc, int type, String password)
Exports the annotations to document.
documentId
- The document identifier.inputDoc
- The input document.type
- The type.password
- The password.public InputStream exportAnnotationsToDocument(InputStream inputDocument, List<AnnotationInfo> annotations, int documentType)
Exports the annotations to document.
inputDocument
- The input document.annotations
- The annotations.documentType
- Type of the document.public InputStream exportAnnotationsToDocument(InputStream inputDocument, List<AnnotationInfo> annotations, int documentType, String password)
Exports the annotations to document.
inputDocument
- The input document.annotations
- The annotations.documentType
- Type of the document.password
- The password.public void importAnnotations(long documentId, InputStream inputDocument, long userId)
Imports the annotations.
documentId
- The document identifier.inputDocument
- The input document.userId
- The user identifier.public void importAnnotations(long documentId, InputStream inputDocument, long userId, String password)
Imports the annotations.
documentId
- The document identifier.inputDocument
- The input document.userId
- The user identifier.password
- The password.public AnnotationInfo[] importAnnotations_Rename_Namesake(InputStream inputDocument, long userId, String password)
Imports the annotations.
inputDocument
- The input document.userId
- The user identifier.password
- The password.public AnnotationInfo[] importAnnotations_Rename_Namesake(InputStream inputDocument, long userId)
Imports the annotations.
inputDocument
- The input document.userId
- The user identifier.public AnnotationInfo[] importAnnotations(InputStream inputDocument)
Imports the annotations.
inputDocument
- The input document.public AnnotationInfo[] importAnnotations(InputStream inputDocument, String password)
Imports the annotations.
inputDocument
- The input document.password
- The password.public AnnotationInfo[] importAnnotations(InputStream inputDoc, int type, long userId)
Imports the annotations.
inputDoc
- The input document.type
- The type.userId
- The user identifier.public AnnotationInfo[] importAnnotations(InputStream inputDoc, int type, long userId, String password)
Imports the annotations.
inputDoc
- The input document.type
- The type.userId
- The user identifier.password
- The password.public AnnotationInfo[] importAnnotations(InputStream inputDoc, int documentType)
Imports the annotations.
inputDoc
- The input document.documentType
- Type of the document.public AnnotationInfo[] importAnnotations(InputStream inputDoc, int documentType, String password)
Imports the annotations.
inputDoc
- The input document.documentType
- Type of the document.password
- The password.public void importAnnotations(long documentId, InputStream inputDoc, int type, long userId)
Imports the annotations.
documentId
- The document identifier.inputDoc
- The input document.type
- The type.userId
- The user identifier.public void importAnnotations(long documentId, InputStream inputDoc, int documentType, long userId, String password)
Imports the annotations.
documentId
- The document identifier.inputDoc
- The input document.documentType
- Type of the document.userId
- The user identifier.password
- The password.Copyright © 2018. All rights reserved.