info.magnolia.jcr.util
Class NodeTypes.Versionable
java.lang.Object
info.magnolia.jcr.util.NodeTypes.Versionable
- Enclosing class:
- NodeTypes
public static class NodeTypes.Versionable
- extends Object
Represents the mixin mgnl:versionable.
Method Summary |
static String |
getComment(javax.jcr.Node node)
Returns the comment set when then node was last versioned or null if no comment has been set. |
static void |
set(javax.jcr.Node node,
String comment)
Set the versioning comment on the node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- See Also:
- Constant Field Values
COMMENT
public static final String COMMENT
- See Also:
- Constant Field Values
NodeTypes.Versionable
public NodeTypes.Versionable()
getComment
public static String getComment(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Returns the comment set when then node was last versioned or null if no comment has been set.
- Throws:
javax.jcr.RepositoryException
set
public static void set(javax.jcr.Node node,
String comment)
throws javax.jcr.RepositoryException
- Set the versioning comment on the node.
- Throws:
javax.jcr.RepositoryException
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.