|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.oak.jcr.delegate.VersionManagerDelegate
public class VersionManagerDelegate
VersionManagerDelegate
...
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static VersionManagerDelegate create(SessionDelegate sessionDelegate)
@Nonnull public VersionDelegate checkin(@Nonnull NodeDelegate nodeDelegate) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void checkout(@Nonnull NodeDelegate nodeDelegate) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public boolean isCheckedOut(@Nonnull NodeDelegate nodeDelegate) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Nonnull public VersionHistoryDelegate createVersionHistory(@Nonnull NodeDelegate versionHistory) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Nonnull public VersionDelegate createVersion(@Nonnull NodeDelegate version) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Nonnull public VersionHistoryDelegate getVersionHistory(@Nonnull NodeDelegate versionable) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Nonnull public VersionDelegate getBaseVersion(@Nonnull NodeDelegate versionable) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Nonnull public VersionDelegate getVersionByIdentifier(@Nonnull String identifier) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void restore(@Nonnull NodeDelegate parent, @Nonnull String oakName, @Nonnull VersionDelegate vd) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void addVersionLabel(@Nonnull VersionHistoryDelegate versionHistory, @Nonnull VersionDelegate version, @Nonnull String oakVersionLabel, boolean moveLabel) throws javax.jcr.InvalidItemStateException, javax.jcr.version.LabelExistsVersionException, javax.jcr.version.VersionException, javax.jcr.RepositoryException
versionHistory
- the version history.version
- the version.oakVersionLabel
- the version label.moveLabel
- whether to move the label if it already exists.
javax.jcr.InvalidItemStateException
- if any of the nodes is stale.
javax.jcr.version.LabelExistsVersionException
- if moveLabel is false, and an attempt
is made to add a label that already exists in this version history.
javax.jcr.version.VersionException
- if the specified version does not exist in this
version history or if the specified version is the root version (jcr:rootVersion).
javax.jcr.RepositoryException
- if another error occurs.public void removeVersionLabel(@Nonnull VersionHistoryDelegate versionHistory, @Nonnull String oakVersionLabel) throws javax.jcr.InvalidItemStateException, javax.jcr.version.VersionException, javax.jcr.RepositoryException
versionHistory
- the version history.oakVersionLabel
- the version label.
javax.jcr.InvalidItemStateException
- if any of the nodes is stale.
javax.jcr.version.VersionException
- if the name label does not exist in this version history.
javax.jcr.RepositoryException
- if another error occurs.public void removeVersion(@Nonnull VersionHistoryDelegate versionHistory, @Nonnull String oakVersionName) throws javax.jcr.RepositoryException
versionHistory
- the version history delegate.oakVersionName
- the version name
javax.jcr.RepositoryException
- if an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |