|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.jcr.util.NodeTypes.LastModified
public static class NodeTypes.LastModified
Represents the mixin mgnl:lastModified.
Field Summary | |
---|---|
static String |
LAST_MODIFIED
|
static String |
LAST_MODIFIED_BY
|
static String |
NAME
|
Constructor Summary | |
---|---|
NodeTypes.LastModified()
|
Method Summary | |
---|---|
static Calendar |
getLastModified(javax.jcr.Node node)
Returns the date when this node was last modified. |
static String |
getLastModifiedBy(javax.jcr.Node node)
Returns the name of the user that last modified the node. |
static void |
update(javax.jcr.Node node)
Sets the date of modification to current Calendar and uses MgnlContext to set the name of the user. |
static void |
update(javax.jcr.Node node,
String userName,
Calendar lastModified)
Sets the date of modification and the name of the user modifying a node. |
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 LAST_MODIFIED
public static final String LAST_MODIFIED_BY
Constructor Detail |
---|
public NodeTypes.LastModified()
Method Detail |
---|
public static Calendar getLastModified(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static String getLastModifiedBy(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static void update(javax.jcr.Node node) throws javax.jcr.RepositoryException
MgnlContext
to set the name of the user.
javax.jcr.RepositoryException
public static void update(javax.jcr.Node node, String userName, Calendar lastModified) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |