info.magnolia.jcr.util
Class NodeTypes.Created
java.lang.Object
info.magnolia.jcr.util.NodeTypes.Created
- Enclosing class:
- NodeTypes
public static class NodeTypes.Created
- extends Object
Represents the mixin mgnl:created.
Method Summary |
static Calendar |
getCreated(javax.jcr.Node node)
Returns the creation date of a node or null if creation date isn't set. |
static String |
getCreatedBy(javax.jcr.Node node)
Returns the name of the user that created a node. |
static void |
set(javax.jcr.Node node)
Sets the current date as the node's creation date and uses MgnlContext to set the name of the creating
user. |
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
CREATED
public static final String CREATED
- See Also:
- Constant Field Values
CREATED_BY
public static final String CREATED_BY
- See Also:
- Constant Field Values
NodeTypes.Created
public NodeTypes.Created()
getCreated
public static Calendar getCreated(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Returns the creation date of a node or null if creation date isn't set.
- Throws:
javax.jcr.RepositoryException
getCreatedBy
public static String getCreatedBy(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Returns the name of the user that created a node.
- Throws:
javax.jcr.RepositoryException
set
public static void set(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Sets the current date as the node's creation date and uses
MgnlContext
to set the name of the creating
user. Used with nodes having the mgnl:created
mixin.
- Throws:
javax.jcr.RepositoryException
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.