Class UpdateDocumentInfo

All Implemented Interfaces:
Serializable

public class UpdateDocumentInfo extends DocumentInfo
Bean to hold information for UpdateDocument method.
Author:
tfr
See Also:
  • Field Details

    • hDoc

      protected String hDoc
    • doCheckin

      protected Boolean doCheckin
  • Constructor Details

    • UpdateDocumentInfo

      public UpdateDocumentInfo(String ddcName, String documentHDoc, Properties nameValuePairs, ContentStream[] content, String versionComment)
      Creates a new UpdateDocumentInfo.
      Parameters:
      ddcName - The name of the database definition
      documentHDoc - The ID of the document (HDOC)
      nameValuePairs - A properties object containing the metadata. Only the contained properties will be updated.
      content - Multiple content data. If the array is empty, all content of the document will be removed. If null, the content will not be changed. Otherwise only the contained elements will be replaced.
      versionComment - The comment for the version
    • UpdateDocumentInfo

      public UpdateDocumentInfo(String ddcName, String documentHDoc, Map<String,Object> nameValuePairs, ContentStream[] content, String versionComment)
      Creates a new UpdateDocumentInfo.
      Parameters:
      ddcName - The name of the database definition
      documentHDoc - The ID of the document (HDOC)
      nameValuePairs - A Map object containing the metadata. Only the contained properties will be updated.
      content - Multiple content data. If the array is empty, all content of the document will be removed. If null, the content will not be changed. Otherwise only the contained elements will be replaced.
      versionComment - The comment for the version
  • Method Details

    • getDocumentHDoc

      public String getDocumentHDoc()
      Returns:
      document's hDoc
    • getResolveLinks

      public Boolean getResolveLinks()
      Returns:
      if links should be resolved
    • setResolveLinks

      public DocumentInfo setResolveLinks(boolean resolveLinks)
      Parameters:
      resolveLinks - resolveLinks
      Returns:
      UpdateDocumentInfo
    • getCheckin

      public Boolean getCheckin()
      Returns:
      if document should be checked-in
    • setCheckin

      public UpdateDocumentInfo setCheckin(Boolean checkin)
      Parameters:
      checkin - if set to true, the document will be checked-in
      Returns:
      UpdateDocumentInfo
    • setMetadata

      public UpdateDocumentInfo setMetadata(Map<String,Object> metadatas)
      Sets the metadata.
      Parameters:
      metadatas - A properties object containing the metadata.
      Returns:
      UpdateDocumentInfo
    • addVariable

      public UpdateDocumentInfo addVariable(String name, String value)
      Adds a variable to the document.
      Overrides:
      addVariable in class DocumentInfo
      Parameters:
      name - The name of the variable.
      value - The value of the variable.
      Returns:
      UpdateDocumentInfo