3.11.1.7.2. DocumentMetadataJSAPI

public class DocumentMetadataJSAPI implements Exportable

3.11.1.7.2.1. Constructors

public DocumentMetadataJSAPI(ARenderEventBus eventBus)

Simple Constructor providing the required EventBus

Parameters:
  • eventBus – the eventBus to be set and binded to

3.11.1.7.2.2. Methods

public void addDocumentMetadata(DocumentMetadata documentMetadata, String name, String value)

Add Metadata to an existing DocumentMedata object, f.e. in DocumentBuilder

Parameters:
  • documentMetadata – the DocumentMetadata object
  • name – name of the DocumentMetadata
  • value – value of the DocumentMetadata
public void getDocumentMetadata(String documentId, DocumentMetadataHandler documentMetadataHandler)

Get a document’s Metadata

Parameters:
  • documentId – the DocumentId of the document
  • documentMetadataHandler – callback when document metadata is fetched
public DocumentMetadataHelper getDocumentMetadataHelper()
public String getDocumentMetadataValue(DocumentMetadata documentMetadata, String name)

Get DocumentMetadata value based on its name

Parameters:
  • documentMetadata – the DocumentMetadata object
  • name – of the metadata
Returns:

value of the metadata, or null if no metadata matched name

public void setDocumentMetadataHelper(DocumentMetadataHelper documentMetadataHelper)