Modifier and Type | Field and Description |
---|---|
static String |
CREATED |
static String |
CREATED_BY |
static String |
NAME |
Constructor and Description |
---|
Created() |
Modifier and Type | Method and Description |
---|---|
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. |
static void |
set(javax.jcr.Node node,
String userName,
Calendar created)
Sets the supplied date as the node's creation date and sets the name of the creating user.
|
public static final String NAME
public static final String CREATED
public static final String CREATED_BY
public static Calendar getCreated(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static String getCreatedBy(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static void set(javax.jcr.Node node) throws javax.jcr.RepositoryException
MgnlContext
to set the name of the creating
user. Used with nodes having the mgnl:created
mixin.javax.jcr.RepositoryException
public static void set(javax.jcr.Node node, String userName, Calendar created) throws javax.jcr.RepositoryException
mgnl:created
mixin.javax.jcr.RepositoryException
Copyright © 2003–2021 Magnolia International Ltd.. All rights reserved.