info.magnolia.jcr.util
Class NodeTypes.Deleted

java.lang.Object
  extended by info.magnolia.jcr.util.NodeTypes.Deleted
Enclosing class:
NodeTypes

public static class NodeTypes.Deleted
extends Object

Represents the mixin mgnl:deleted.


Field Summary
static String COMMENT
           
static String DELETED
           
static String DELETED_BY
           
static String NAME
           
 
Constructor Summary
NodeTypes.Deleted()
           
 
Method Summary
static String getComment(javax.jcr.Node node)
          Returns the comment set when then node was last deleted or null if no comment has been set.
static Calendar getDeleted(javax.jcr.Node node)
          Returns the date when the node was deleted or null if no deletion date has been stored on the node.
static String getDeletedBy(javax.jcr.Node node)
          Returns the name of the user that deleted the node or null if no deleting user has been stored on the node.
static void set(javax.jcr.Node node, String comment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

DELETED

public static final String DELETED
See Also:
Constant Field Values

DELETED_BY

public static final String DELETED_BY
See Also:
Constant Field Values

COMMENT

public static final String COMMENT
See Also:
Constant Field Values
Constructor Detail

NodeTypes.Deleted

public NodeTypes.Deleted()
Method Detail

getDeleted

public static Calendar getDeleted(javax.jcr.Node node)
                           throws javax.jcr.RepositoryException
Returns the date when the node was deleted or null if no deletion date has been stored on the node.

Throws:
javax.jcr.RepositoryException

getDeletedBy

public static String getDeletedBy(javax.jcr.Node node)
                           throws javax.jcr.RepositoryException
Returns the name of the user that deleted the node or null if no deleting user has been stored on the node.

Throws:
javax.jcr.RepositoryException

getComment

public static String getComment(javax.jcr.Node node)
                         throws javax.jcr.RepositoryException
Returns the comment set when then node was last deleted 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
Throws:
javax.jcr.RepositoryException


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.