|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.jcr.util.VersionUtil
public class VersionUtil
Various utility methods useful for JCR-Versioning.
Constructor Summary | |
---|---|
VersionUtil()
|
Method Summary | |
---|---|
static javax.jcr.version.Version |
getLatestVersion(javax.jcr.Node node)
|
static javax.jcr.version.Version |
getNextVersion(javax.jcr.version.Version version)
|
static String |
getNextVersionLabel(javax.jcr.Node node,
String versionLabel)
|
static String |
getNodeTypeName(javax.jcr.Node node)
Return the NodeType-name for the provided Node. |
static javax.jcr.version.Version |
getPreviousVersion(javax.jcr.version.Version version)
|
static String |
getPreviousVersionLabel(javax.jcr.Node node,
String versionLabel)
|
static javax.jcr.version.Version |
getVersion(javax.jcr.Node node,
String versionLabel)
Returns the version object of a labelled version. |
static List<VersionInfo> |
getVersionInfoList(javax.jcr.Node node)
Returns version history of a content as a List of VersionInfo s. |
static boolean |
hasPreviousVersion(javax.jcr.Node node,
String versionLabel)
Checks if a version label of a Node has a previous version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersionUtil()
Method Detail |
---|
public static String getNodeTypeName(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static List<VersionInfo> getVersionInfoList(javax.jcr.Node node)
VersionInfo
s.
node
- Node
VersionInfo
public static javax.jcr.version.Version getVersion(javax.jcr.Node node, String versionLabel) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static String getPreviousVersionLabel(javax.jcr.Node node, String versionLabel) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static boolean hasPreviousVersion(javax.jcr.Node node, String versionLabel)
Node
has a previous version.
public static javax.jcr.version.Version getLatestVersion(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static javax.jcr.version.Version getPreviousVersion(javax.jcr.version.Version version) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static String getNextVersionLabel(javax.jcr.Node node, String versionLabel) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static javax.jcr.version.Version getNextVersion(javax.jcr.version.Version version) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |