当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
VersionUtil - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.cms.impl.jcr.util
Class VersionUtil
java.lang.Object
org.jboss.portal.cms.impl.jcr.util.VersionUtil
- public class VersionUtil
- extends java.lang.Object
Utility class for Versioning
Method Summary |
static void |
createContentVersion(javax.jcr.Node node,
boolean isLive)
|
static void |
createFileVersion(javax.jcr.Node node,
boolean isLive)
|
static void |
createFolderVersion(javax.jcr.Node node,
boolean isLive)
|
static void |
createVersion(javax.jcr.Node node,
boolean isLive)
Creates a new node, with a new node label and checks it in. |
static void |
print(javax.jcr.Node node)
Prints to std out, version node and properties information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionUtil
public VersionUtil()
createVersion
public static void createVersion(javax.jcr.Node node,
boolean isLive)
throws CMSException
- Creates a new node, with a new node label and checks it in.
- Parameters:
node
-
- Throws:
CMSException
createContentVersion
public static void createContentVersion(javax.jcr.Node node,
boolean isLive)
throws CMSException
- Throws:
CMSException
createFileVersion
public static void createFileVersion(javax.jcr.Node node,
boolean isLive)
throws CMSException
- Throws:
CMSException
createFolderVersion
public static void createFolderVersion(javax.jcr.Node node,
boolean isLive)
throws CMSException
- Throws:
CMSException
print
public static void print(javax.jcr.Node node)
- Prints to std out, version node and properties information.
- Parameters:
node
-