Class VersionHistoryDelegate


  • public class VersionHistoryDelegate
    extends NodeDelegate
    VersionHistoryDelegate...
    • Method Detail

      • getVersionableIdentifier

        public java.lang.String getVersionableIdentifier()
                                                  throws javax.jcr.InvalidItemStateException
        Throws:
        javax.jcr.InvalidItemStateException
      • getRootVersion

        @NotNull
        public @NotNull VersionDelegate getRootVersion()
                                                throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getVersion

        @NotNull
        public @NotNull VersionDelegate getVersion​(@NotNull
                                                   @NotNull java.lang.String versionName)
                                            throws javax.jcr.version.VersionException,
                                                   javax.jcr.RepositoryException
        Gets the version with the given name.
        Parameters:
        versionName - a version name.
        Returns:
        the version delegate.
        Throws:
        javax.jcr.version.VersionException - if there is no version with the given name.
        javax.jcr.RepositoryException - if another error occurs.
      • getVersionByLabel

        @NotNull
        public @NotNull VersionDelegate getVersionByLabel​(@NotNull
                                                          @NotNull java.lang.String label)
                                                   throws javax.jcr.version.VersionException,
                                                          javax.jcr.RepositoryException
        Throws:
        javax.jcr.version.VersionException
        javax.jcr.RepositoryException
      • getVersionLabels

        @NotNull
        public @NotNull java.lang.Iterable<java.lang.String> getVersionLabels()
                                                                       throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getVersionLabels

        @NotNull
        public @NotNull java.lang.Iterable<java.lang.String> getVersionLabels​(@NotNull
                                                                              @NotNull java.lang.String identifier)
                                                                       throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getAllVersions

        @NotNull
        public @NotNull java.util.Iterator<VersionDelegate> getAllVersions()
                                                                    throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getAllLinearVersions

        @NotNull
        public @NotNull java.util.Iterator<VersionDelegate> getAllLinearVersions()
                                                                          throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • addVersionLabel

        public void addVersionLabel​(@NotNull
                                    @NotNull VersionDelegate version,
                                    @NotNull
                                    @NotNull java.lang.String oakVersionLabel,
                                    boolean moveLabel)
                             throws javax.jcr.version.LabelExistsVersionException,
                                    javax.jcr.version.VersionException,
                                    javax.jcr.RepositoryException
        Throws:
        javax.jcr.version.LabelExistsVersionException
        javax.jcr.version.VersionException
        javax.jcr.RepositoryException
      • removeVersionLabel

        public void removeVersionLabel​(@NotNull
                                       @NotNull java.lang.String oakVersionLabel)
                                throws javax.jcr.version.VersionException,
                                       javax.jcr.RepositoryException
        Throws:
        javax.jcr.version.VersionException
        javax.jcr.RepositoryException
      • removeVersion

        public void removeVersion​(@NotNull
                                  @NotNull java.lang.String oakVersionName)
                           throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException