public class VersionUtil extends Object
Constructor and Description |
---|
VersionUtil() |
Modifier and Type | Method and Description |
---|---|
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 String |
getVersionWorkspaceForNode(RepositoryManager repositoryManager,
javax.jcr.Node node)
Get version store session.
|
static boolean |
hasPreviousVersion(javax.jcr.Node node,
String versionLabel)
Checks if a version label of a
Node has a previous version. |
static javax.jcr.version.Version |
unwrap(javax.jcr.version.Version version) |
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
- NodeVersionInfo
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
public static String getVersionWorkspaceForNode(RepositoryManager repositoryManager, javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static javax.jcr.version.Version unwrap(javax.jcr.version.Version version) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.