public interface AnnotationJSAPI extends Exportable Methods

void add(String documentId, Annotation annotation)

Add an annotation to the current document. Note that this annotation is not saved

  • documentId – the documentId
  • annotation – the annotation to add
List<String> getActionTypes()
List<String> getDestinationTypes()
String getPropertyFromAction(String action, String property)
String getPropertyFromDestination(String destination, String property)
boolean hasDirtyAnnotations()

Returns true if modified annotations remain

Returns:true if modified annotations remain
void refresh()

Refresh existing annotations (dirty ones still remain unsaved)

void registerFollowLinkHandler(FollowLinkHandler linkHandler)
void save()

Save current dirty annotations