Class ContentVersionDocument

    • Constructor Detail

      • ContentVersionDocument

        protected ContentVersionDocument​(ContentVersionDocumentType documentType)
        Creates a new content version document based on the given type.
        Parameters:
        documentType - the document type.
        Since:
        8.1.0
    • Method Detail

      • getContentVersion

        public ContentVersionDocument.ContentVersion getContentVersion()
        Returns an API for accessing the content version fields in this document.

        If a document field value is modified without using this API, the object previously returned by this method (or its child objects) may no longer reflect the correct data in the document. In this case this method should be called again to obtain another ContentVersion object to be used.

        Returns:
        the content version fields access API.
        Since:
        8.1.0
      • setContentVersion

        public void setContentVersion​(ContentVersion coreContentVersion)
        Sets all content meta data fields in this document according to the given Content Version.
        Parameters:
        coreContentVersion - the Content Version used to set the fields in this document.
        Since:
        8.1.0