|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.core.MetaData
public class MetaData
Represents the meta data of a node, its creation date, modification date, assigned template etc.
As of 5.0 the meta data is stored directly on the node itself using mixins rather than in a subnode named MetaData.
With this change this class was deprecated and replaced with corresponding methods in
NodeUtil
.
Field Summary | |
---|---|
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 |
Constructor Summary | |
---|---|
|
MetaData(javax.jcr.Node workingNode)
Deprecated. |
protected |
MetaData(javax.jcr.Node workingNode,
AccessManager ignoredAccessManager)
Deprecated. since 4.5 use MetaData(Node) instead. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
instead
public 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
insteadConstructor Detail |
---|
protected 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 requestedMethod Detail |
---|
public 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, String value)
public void setProperty(String name, long value)
public void setProperty(String name, double value)
public void setProperty(String name, boolean value)
public void setProperty(String name, Calendar value)
public boolean getBooleanProperty(String name)
public double getDoubleProperty(String name)
public long getLongProperty(String name)
public String getStringProperty(String name)
public Calendar getDateProperty(String name)
public void removeProperty(String name) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
name
- of the property to be removed
javax.jcr.PathNotFoundException
- if property does not exist
javax.jcr.RepositoryException
- if unable to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |