info.magnolia.jcr.util
Class MetaDataUtil

java.lang.Object
  extended by info.magnolia.jcr.util.MetaDataUtil

Deprecated. since 5.0 - use NodeTypes instead.

public class MetaDataUtil
extends Object

Collection of utilities to simplify working with the JCR API. In contrast to info.magnolia.cms.core.Content it is - from a caller perspective - independent from Content API. Internally content API is still used for now, but this will most probably change quite soon.


Constructor Summary
MetaDataUtil()
          Deprecated.  
 
Method Summary
static Calendar getLastModification(javax.jcr.Node node)
          Deprecated. since 5.0 use NodeTypes.LastModified.getLastModified(javax.jcr.Node).
static MetaData getMetaData(javax.jcr.Node node)
          Deprecated. since 5.0 use NodeTypes
static String getTemplate(javax.jcr.Node node)
          Deprecated. since 5.0 use NodeTypes.RenderableMixin#getTemplate(Node)
static void updateMetaData(javax.jcr.Node node)
          Deprecated. since 5.0 use NodeTypes.LastModified.update(javax.jcr.Node).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataUtil

public MetaDataUtil()
Deprecated. 
Method Detail

getMetaData

public static MetaData getMetaData(javax.jcr.Node node)
Deprecated. since 5.0 use NodeTypes


updateMetaData

public static void updateMetaData(javax.jcr.Node node)
                           throws javax.jcr.RepositoryException
Deprecated. since 5.0 use NodeTypes.LastModified.update(javax.jcr.Node).

Throws:
javax.jcr.RepositoryException

getLastModification

public static Calendar getLastModification(javax.jcr.Node node)
                                    throws javax.jcr.PathNotFoundException,
                                           javax.jcr.RepositoryException,
                                           javax.jcr.ValueFormatException
Deprecated. since 5.0 use NodeTypes.LastModified.getLastModified(javax.jcr.Node).

Returns:
the lastModification or null it it was not set in JCR.
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
javax.jcr.ValueFormatException

getTemplate

public static String getTemplate(javax.jcr.Node node)
Deprecated. since 5.0 use NodeTypes.RenderableMixin#getTemplate(Node)



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