info.magnolia.jcr.util
Class MetaDataUtil

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

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.

Version:
$Id$

Constructor Summary
MetaDataUtil()
           
 
Method Summary
static Calendar getLastModification(javax.jcr.Node node)
           
static MetaData getMetaData(javax.jcr.Node node)
           
static String getTemplate(javax.jcr.Node node)
           
static void updateMetaData(javax.jcr.Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataUtil

public MetaDataUtil()
Method Detail

getMetaData

public static MetaData getMetaData(javax.jcr.Node node)

updateMetaData

public static void updateMetaData(javax.jcr.Node node)
                           throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getLastModification

public static Calendar getLastModification(javax.jcr.Node node)
                                    throws javax.jcr.PathNotFoundException,
                                           javax.jcr.RepositoryException,
                                           javax.jcr.ValueFormatException
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)


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