@Deprecated public class MetaData extends Object
NodeUtil
.Modifier and Type | Field and Description |
---|---|
static String |
ACTIVATED
Deprecated.
since 5.0 - use
NodeTypes.Activatable.ACTIVATION_STATUS instead |
static int |
ACTIVATION_STATUS_ACTIVATED
Deprecated.
since 5.0 - use
NodeTypes.Activatable.ACTIVATION_STATUS_ACTIVATED instead |
static int |
ACTIVATION_STATUS_MODIFIED
Deprecated.
since 5.0 - use
NodeTypes.Activatable.ACTIVATION_STATUS_MODIFIED instead |
static int |
ACTIVATION_STATUS_NOT_ACTIVATED
Deprecated.
since 5.0 - use
NodeTypes.Activatable.ACTIVATION_STATUS_NOT_ACTIVATED instead |
static String |
ACTIVATOR_ID
Deprecated.
since 5.0 - use
NodeTypes.Activatable.LAST_ACTIVATED_BY instead |
static String |
AUTHOR_ID
Deprecated.
since 5.0 - use
NodeTypes.LastModified.LAST_MODIFIED_BY instead |
static String |
CREATION_DATE
Deprecated.
since 5.0 - use
NodeTypes.Created.CREATED instead |
static String |
DEFAULT_META_NODE
Deprecated.
since 5.0 - there's no longer such a subnode
|
static String |
LAST_ACTION
Deprecated.
since 5.0 - use
NodeTypes.Activatable.LAST_ACTIVATED instead |
static String |
LAST_MODIFIED
Deprecated.
since 5.0 - use
NodeTypes.LastModified.LAST_MODIFIED instead |
static String |
TEMPLATE
Deprecated.
since 5.0 - use
NodeTypes.Renderable.TEMPLATE instead |
static String |
TEMPLATE_TYPE
Deprecated.
since 5.0 - no longer supported
|
static String |
TITLE
Deprecated.
since 5.0 - no longer supported
|
Modifier | Constructor and Description |
---|---|
|
MetaData(javax.jcr.Node workingNode)
Deprecated.
|
protected |
MetaData(javax.jcr.Node workingNode,
AccessManager ignoredAccessManager)
Deprecated.
since 4.5 use MetaData(Node) instead.
|
public static final String TITLE
public static final String CREATION_DATE
NodeTypes.Created.CREATED
insteadpublic static final String LAST_MODIFIED
NodeTypes.LastModified.LAST_MODIFIED
insteadpublic static final String LAST_ACTION
NodeTypes.Activatable.LAST_ACTIVATED
insteadpublic static final String AUTHOR_ID
NodeTypes.LastModified.LAST_MODIFIED_BY
insteadpublic static final String ACTIVATOR_ID
NodeTypes.Activatable.LAST_ACTIVATED_BY
insteadpublic static final String TEMPLATE
NodeTypes.Renderable.TEMPLATE
insteadpublic static final String TEMPLATE_TYPE
public static final String ACTIVATED
NodeTypes.Activatable.ACTIVATION_STATUS
insteadpublic static final String DEFAULT_META_NODE
public static final int ACTIVATION_STATUS_NOT_ACTIVATED
NodeTypes.Activatable.ACTIVATION_STATUS_NOT_ACTIVATED
insteadpublic static final int ACTIVATION_STATUS_MODIFIED
NodeTypes.Activatable.ACTIVATION_STATUS_MODIFIED
insteadpublic static final int ACTIVATION_STATUS_ACTIVATED
NodeTypes.Activatable.ACTIVATION_STATUS_ACTIVATED
insteadprotected MetaData(javax.jcr.Node workingNode, AccessManager ignoredAccessManager)
workingNode
- current Node
on which MetaData
is requestedignoredAccessManager
- no longer required hence use other constructor.public MetaData(javax.jcr.Node workingNode)
workingNode
- current Node
on which MetaData
is requestedpublic String getTitle()
public void setTitle(String value)
public void setCreationDate()
NodeTypes.Created.set(Node)
public Calendar getCreationDate()
NodeTypes.Created.getCreated(Node)
public void setActivated()
NodeTypes.Activatable.update(javax.jcr.Node, String, boolean)
public void setUnActivated()
NodeTypes.Activatable.update(javax.jcr.Node, String, boolean)
public boolean getIsActivated()
NodeTypes.Activatable.isActivated(javax.jcr.Node)
public int getActivationStatus()
NodeTypes.Activatable.getActivationStatus(javax.jcr.Node)
public void setLastActivationActionDate()
NodeTypes.Activatable.update(javax.jcr.Node, String, boolean)
public Calendar getLastActionDate()
NodeTypes.Activatable.getLastActivated(javax.jcr.Node)
public void setModificationDate()
NodeTypes.LastModified.update(javax.jcr.Node)
public Calendar getModificationDate()
NodeTypes.LastModified.getLastModified(Node)
public String getAuthorId()
NodeTypes.LastModified.getLastModifiedBy(javax.jcr.Node)
public void setAuthorId(String value)
NodeTypes.LastModified.update(javax.jcr.Node, String, java.util.Calendar)
public String getActivatorId()
NodeTypes.Activatable.getLastActivatedBy(javax.jcr.Node)
public void setActivatorId(String value)
NodeTypes.Activatable.update(javax.jcr.Node, String, boolean)
to directly set userName and true false.public String getTemplate()
NodeTypes.Renderable.getTemplate(javax.jcr.Node)
public void setTemplate(String value)
NodeTypes.Renderable.set(javax.jcr.Node, String)
public void setProperty(String name, long value)
public void setProperty(String name, double value)
public void setProperty(String name, boolean value)
public boolean getBooleanProperty(String name)
public double getDoubleProperty(String name)
public long getLongProperty(String name)
public void removeProperty(String name) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
name
- of the property to be removedjavax.jcr.PathNotFoundException
- if property does not existjavax.jcr.RepositoryException
- if unable to removeCopyright © 2003–2018 Magnolia International Ltd.. All rights reserved.