info.magnolia.cms.core
Class MetaData

java.lang.Object
  extended by info.magnolia.cms.core.MetaData

Deprecated. since 5.0 - use instead the corresponding methods in NodeUtil

public class MetaData
extends Object

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.
 
Method Summary
 int getActivationStatus()
          Deprecated. since 5.0 - use NodeTypes.Activatable.getActivationStatus(javax.jcr.Node)
 String getActivatorId()
          Deprecated. since 5.0 - use NodeTypes.Activatable.getLastActivatedBy(javax.jcr.Node)
 String getAuthorId()
          Deprecated. since 5.0 - use NodeTypes.LastModified.getLastModifiedBy(javax.jcr.Node)
 boolean getBooleanProperty(String name)
          Deprecated.  
 Calendar getCreationDate()
          Deprecated. since 5.0 - use NodeTypes.Created.getCreated(Node)
 Calendar getDateProperty(String name)
          Deprecated.  
 double getDoubleProperty(String name)
          Deprecated.  
 boolean getIsActivated()
          Deprecated. since 5.0 - use NodeTypes.Activatable.isActivated(javax.jcr.Node)
 Calendar getLastActionDate()
          Deprecated. since 5.0 - use NodeTypes.Activatable.getLastActivated(javax.jcr.Node)
 long getLongProperty(String name)
          Deprecated.  
 Calendar getModificationDate()
          Deprecated. since 5.0 - use NodeTypes.LastModified.getLastModified(Node)
 String getStringProperty(String name)
          Deprecated.  
 String getTemplate()
          Deprecated. since 5.0 - use NodeTypes.Renderable.getTemplate(javax.jcr.Node)
 String getTitle()
          Deprecated. since 5.0 - only for backwards compatibility.
 void removeProperty(String name)
          Deprecated. remove specified property.
 void setActivated()
          Deprecated. since 5.0 - use NodeTypes.Activatable.update(javax.jcr.Node, String, boolean)
 void setActivatorId(String value)
          Deprecated. since 5.0 - use NodeTypes.Activatable.update(javax.jcr.Node, String, boolean) to directly set userName and true false.
 void setAuthorId(String value)
          Deprecated. since 5.0 - use NodeTypes.LastModified.update(javax.jcr.Node, String, java.util.Calendar)
 void setCreationDate()
          Deprecated. since 5.0 - use NodeTypes.Created.set(Node)
 void setLastActivationActionDate()
          Deprecated. since 5.0 - use NodeTypes.Activatable.update(javax.jcr.Node, String, boolean)
 void setModificationDate()
          Deprecated. since 5.0 - use NodeTypes.LastModified.update(javax.jcr.Node)
 void setProperty(String name, boolean value)
          Deprecated.  
 void setProperty(String name, Calendar value)
          Deprecated.  
 void setProperty(String name, double value)
          Deprecated.  
 void setProperty(String name, long value)
          Deprecated.  
 void setProperty(String name, String value)
          Deprecated.  
 void setTemplate(String value)
          Deprecated. since 5.0 - use NodeTypes.Renderable.set(javax.jcr.Node, String)
 void setTitle(String value)
          Deprecated. since 5.0 - only for backwards compatibility.
 void setUnActivated()
          Deprecated. since 5.0 - use NodeTypes.Activatable.update(javax.jcr.Node, String, boolean)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE

public static final String TITLE
Deprecated. since 5.0 - no longer supported
See Also:
Constant Field Values

CREATION_DATE

public static final String CREATION_DATE
Deprecated. since 5.0 - use NodeTypes.Created.CREATED instead
See Also:
Constant Field Values

LAST_MODIFIED

public static final String LAST_MODIFIED
Deprecated. since 5.0 - use NodeTypes.LastModified.LAST_MODIFIED instead
See Also:
Constant Field Values

LAST_ACTION

public static final String LAST_ACTION
Deprecated. since 5.0 - use NodeTypes.Activatable.LAST_ACTIVATED instead
See Also:
Constant Field Values

AUTHOR_ID

public static final String AUTHOR_ID
Deprecated. since 5.0 - use NodeTypes.LastModified.LAST_MODIFIED_BY instead
See Also:
Constant Field Values

ACTIVATOR_ID

public static final String ACTIVATOR_ID
Deprecated. since 5.0 - use NodeTypes.Activatable.LAST_ACTIVATED_BY instead
See Also:
Constant Field Values

TEMPLATE

public static final String TEMPLATE
Deprecated. since 5.0 - use NodeTypes.Renderable.TEMPLATE instead
Template assigned to the node.

See Also:
Constant Field Values

TEMPLATE_TYPE

public static final String TEMPLATE_TYPE
Deprecated. since 5.0 - no longer supported
See Also:
Constant Field Values

ACTIVATED

public static final String ACTIVATED
Deprecated. since 5.0 - use NodeTypes.Activatable.ACTIVATION_STATUS instead
See Also:
Constant Field Values

DEFAULT_META_NODE

public static final String DEFAULT_META_NODE
Deprecated. since 5.0 - there's no longer such a subnode
Name of the node hosting the MetaData.

See Also:
Constant Field Values

ACTIVATION_STATUS_NOT_ACTIVATED

public static final int ACTIVATION_STATUS_NOT_ACTIVATED
Deprecated. since 5.0 - use NodeTypes.Activatable.ACTIVATION_STATUS_NOT_ACTIVATED instead
See Also:
Constant Field Values

ACTIVATION_STATUS_MODIFIED

public static final int ACTIVATION_STATUS_MODIFIED
Deprecated. since 5.0 - use NodeTypes.Activatable.ACTIVATION_STATUS_MODIFIED instead
See Also:
Constant Field Values

ACTIVATION_STATUS_ACTIVATED

public static final int ACTIVATION_STATUS_ACTIVATED
Deprecated. since 5.0 - use NodeTypes.Activatable.ACTIVATION_STATUS_ACTIVATED instead
See Also:
Constant Field Values
Constructor Detail

MetaData

protected MetaData(javax.jcr.Node workingNode,
                   AccessManager ignoredAccessManager)
Deprecated. since 4.5 use MetaData(Node) instead.

Parameters:
workingNode - current Node on which MetaData is requested
ignoredAccessManager - no longer required hence use other constructor.

MetaData

public MetaData(javax.jcr.Node workingNode)
Deprecated. 
Parameters:
workingNode - current Node on which MetaData is requested
Method Detail

getTitle

public String getTitle()
Deprecated. since 5.0 - only for backwards compatibility.

Returns:
value of property TITLE if it's around on working node

setTitle

public void setTitle(String value)
Deprecated. since 5.0 - only for backwards compatibility.

Will set value of property TITLE on working node.


setCreationDate

public void setCreationDate()
Deprecated. since 5.0 - use NodeTypes.Created.set(Node)

Part of metadata, adds creation date of the current node.


getCreationDate

public Calendar getCreationDate()
Deprecated. since 5.0 - use NodeTypes.Created.getCreated(Node)

Part of metadata, get creation date of the current node.


setActivated

public void setActivated()
Deprecated. since 5.0 - use NodeTypes.Activatable.update(javax.jcr.Node, String, boolean)

Part of metadata, adds activated status of the current node.


setUnActivated

public void setUnActivated()
Deprecated. since 5.0 - use NodeTypes.Activatable.update(javax.jcr.Node, String, boolean)

Part of metadata, adds activated status of the current node.


getIsActivated

public boolean getIsActivated()
Deprecated. since 5.0 - use NodeTypes.Activatable.isActivated(javax.jcr.Node)

Part of metadata, get last activated status of the current node.


getActivationStatus

public int getActivationStatus()
Deprecated. since 5.0 - use NodeTypes.Activatable.getActivationStatus(javax.jcr.Node)

Returns one of the ACTIVATION_STATUS_* constants.


setLastActivationActionDate

public void setLastActivationActionDate()
Deprecated. since 5.0 - use NodeTypes.Activatable.update(javax.jcr.Node, String, boolean)

Part of metadata, adds activated date of the current node.


getLastActionDate

public Calendar getLastActionDate()
Deprecated. since 5.0 - use NodeTypes.Activatable.getLastActivated(javax.jcr.Node)

Part of metadata, get last activated/de- date of the current node.


setModificationDate

public void setModificationDate()
Deprecated. since 5.0 - use NodeTypes.LastModified.update(javax.jcr.Node)

Part of metadata, adds modification date of the current node.


getModificationDate

public Calendar getModificationDate()
Deprecated. since 5.0 - use NodeTypes.LastModified.getLastModified(Node)

Get last modified date of the node to which this meta data belongs or creation date in case content was not modified since.


getAuthorId

public String getAuthorId()
Deprecated. since 5.0 - use NodeTypes.LastModified.getLastModifiedBy(javax.jcr.Node)

Part of metadata, last known author of this node.


setAuthorId

public void setAuthorId(String value)
Deprecated. since 5.0 - use NodeTypes.LastModified.update(javax.jcr.Node, String, java.util.Calendar)

Part of metadata, current logged-in author who did some action on this page.


getActivatorId

public String getActivatorId()
Deprecated. since 5.0 - use NodeTypes.Activatable.getLastActivatedBy(javax.jcr.Node)

Part of metadata, last known activator of this node.


setActivatorId

public void setActivatorId(String value)
Deprecated. since 5.0 - use NodeTypes.Activatable.update(javax.jcr.Node, String, boolean) to directly set userName and true false.

Part of metadata, current logged-in author who last activated this page.


getTemplate

public String getTemplate()
Deprecated. since 5.0 - use NodeTypes.Renderable.getTemplate(javax.jcr.Node)

Part of metadata, template which will be used to render content of this node.


setTemplate

public void setTemplate(String value)
Deprecated. since 5.0 - use NodeTypes.Renderable.set(javax.jcr.Node, String)

Part of metadata, template which will be used to render content of this node.


setProperty

public void setProperty(String name,
                        String value)
Deprecated. 

setProperty

public void setProperty(String name,
                        long value)
Deprecated. 

setProperty

public void setProperty(String name,
                        double value)
Deprecated. 

setProperty

public void setProperty(String name,
                        boolean value)
Deprecated. 

setProperty

public void setProperty(String name,
                        Calendar value)
Deprecated. 

getBooleanProperty

public boolean getBooleanProperty(String name)
Deprecated. 

getDoubleProperty

public double getDoubleProperty(String name)
Deprecated. 

getLongProperty

public long getLongProperty(String name)
Deprecated. 

getStringProperty

public String getStringProperty(String name)
Deprecated. 

getDateProperty

public Calendar getDateProperty(String name)
Deprecated. 

removeProperty

public void removeProperty(String name)
                    throws javax.jcr.PathNotFoundException,
                           javax.jcr.RepositoryException
Deprecated. 
remove specified property.

Parameters:
name - of the property to be removed
Throws:
javax.jcr.PathNotFoundException - if property does not exist
javax.jcr.RepositoryException - if unable to remove


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