Class HistorisedDocument

    • Method Detail

      • getVersionMaster

        public HistorisedDocument getVersionMaster()
        Description copied from class: SimpleDocument
        Returns the master of versioned document. If not versionned, it returns itself. If versioned, it returns the master of versioned document (the last created or updated in other words).
        Overrides:
        getVersionMaster in class SimpleDocument
        Returns:
        the master version of this document.
      • isVersioned

        public boolean isVersioned()
        Description copied from interface: Attachment
        Is this attachment versioned? A document is versioned if each change is historized and comes to a new minor or major version.
        Specified by:
        isVersioned in interface Attachment
        Overrides:
        isVersioned in class SimpleDocument
        Returns:
        true if this attachment is versioned, false otherwise.
      • getVersionIdentifiedBy

        public SimpleDocumentVersion getVersionIdentifiedBy​(String id)
        Gets from the history the version identified by the given identifier.
        Parameters:
        id - the identifier of the searched version.
        Returns:
        the version of the simple document which the identifier is the one specified, null otherwise.
      • getFunctionalHistory

        public List<SimpleDocumentVersion> getFunctionalHistory()
        Returns functional history based on versions and indexes.
        Returns:
      • getLastPublicVersion

        public SimpleDocument getLastPublicVersion()
        Returns the more recent public version of this document - null if none exists.
        Overrides:
        getLastPublicVersion in class SimpleDocument
        Returns:
        the more recent public version of this document - null if none exists.