info.magnolia.jcr.util
Class MetaDataUtil
java.lang.Object
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$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaDataUtil
public MetaDataUtil()
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
updateMetaData
public static void updateMetaData(javax.jcr.Node node,
String author)
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 if 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–2014 Magnolia International Ltd.. All rights reserved.