Interface Version

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    VersionImpl

    @AlfrescoPublicApi
    public interface Version
    extends Serializable
    Version interface. Allows access to version property values and frozen state node references. The version history tree can also be navigated.
    Author:
    Roy Wetherall, janv
    • Method Detail

      • getCreatedDate

        Date getCreatedDate()
        Deprecated.
        use getFrozenModifiedDate
        Helper method to get the created date from the version property data.
        Returns:
        the date the version was created
      • getCreator

        String getCreator()
        Deprecated.
        use getFrozenModifier
        Helper method to get the creator of the version.
        Returns:
        the creator of the version
      • getFrozenModifiedDate

        Date getFrozenModifiedDate()
        Helper method to get the frozen (original) modified date for this version of the node
        Returns:
        the modified date
      • getFrozenModifier

        String getFrozenModifier()
        Helper method to get the frozen (original) modifier for this version of the node
        Returns:
        the modifier
      • getVersionLabel

        String getVersionLabel()
        Helper method to get the version label from the version property data.
        Returns:
        the version label
      • getVersionType

        VersionType getVersionType()
        Helper method to get the version type.
        Returns:
        the value of the version type as an enum value
      • getDescription

        String getDescription()
        Helper method to get the version description.
        Returns:
        the version description
      • getVersionProperties

        Map<String,​Serializable> getVersionProperties()
        Get the map containing the version property values
        Returns:
        the map containing the version properties
      • getVersionProperty

        Serializable getVersionProperty​(String name)
        Gets the value of a named version property.
        Parameters:
        name - the name of the property
        Returns:
        the value of the property
      • getVersionedNodeRef

        org.alfresco.service.cmr.repository.NodeRef getVersionedNodeRef()
        Gets a reference to the node that this version was created from.

        Note that this reference will be to the current state of the versioned node which may now correspond to a later version.

        Returns:
        a node reference (to the versioned node in the 'live' store)
      • getFrozenStateNodeRef

        org.alfresco.service.cmr.repository.NodeRef getFrozenStateNodeRef()
        Gets the reference to the node that contains the frozen state of the version.
        Returns:
        a node reference (to the version node in the 'version' store)