|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.jcr.util.NodeTypes.Created
public static class NodeTypes.Created
Represents the mixin mgnl:created.
Field Summary | |
---|---|
static String |
CREATED
|
static String |
CREATED_BY
|
static String |
NAME
|
Constructor Summary | |
---|---|
NodeTypes.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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAME
public static final String CREATED
public static final String CREATED_BY
Constructor Detail |
---|
public NodeTypes.Created()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |