Modifier and Type | Field and Description |
---|---|
static String |
ACTIVATION_STATUS |
static int |
ACTIVATION_STATUS_ACTIVATED |
static int |
ACTIVATION_STATUS_MODIFIED |
static int |
ACTIVATION_STATUS_NOT_ACTIVATED |
static String |
LAST_ACTIVATED |
static String |
LAST_ACTIVATED_BY |
static String |
NAME |
Constructor and Description |
---|
NodeTypes.Activatable() |
Modifier and Type | Method and Description |
---|---|
static int |
getActivationStatus(javax.jcr.Node node)
Returns the activation status of the node.
|
static Calendar |
getLastActivated(javax.jcr.Node node)
Returns the date when the node was last activated or null if no activation date has been stored on the node.
|
static String |
getLastActivatedBy(javax.jcr.Node node)
Returns the name of the user that last activated the node or null if no activating user has been stored on the node.
|
static boolean |
isActivated(javax.jcr.Node node)
Returns true if the node has been activated.
|
static void |
update(javax.jcr.Node node,
String userName,
boolean isActivated)
Sets the name of the user that performed the most recent activation as well as to current time.
|
public static final String NAME
public static final String LAST_ACTIVATED
public static final String LAST_ACTIVATED_BY
public static final String ACTIVATION_STATUS
public static final int ACTIVATION_STATUS_NOT_ACTIVATED
public static final int ACTIVATION_STATUS_MODIFIED
public static final int ACTIVATION_STATUS_ACTIVATED
public static int getActivationStatus(javax.jcr.Node node) throws javax.jcr.RepositoryException
ACTIVATION_STATUS_NOT_ACTIVATED
if the node has not been activatedACTIVATION_STATUS_MODIFIED
has been activated and subsequently modifiedACTIVATION_STATUS_ACTIVATED
has been activated and not modified sincejavax.jcr.RepositoryException
public static boolean isActivated(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static Calendar getLastActivated(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static String getLastActivatedBy(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static void update(javax.jcr.Node node, String userName, boolean isActivated) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.