info.magnolia.jcr.util
Class VersionUtil

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

public class VersionUtil
extends Object

Various utility methods useful for JCR-Versioning.

Version:
$Id$

Constructor Summary
VersionUtil()
           
 
Method Summary
static String getNodeTypeName(javax.jcr.Node node)
          Return the NodeType-name for the provided Node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionUtil

public VersionUtil()
Method Detail

getNodeTypeName

public static String getNodeTypeName(javax.jcr.Node node)
                              throws javax.jcr.RepositoryException
Return the NodeType-name for the provided Node. It it's a JCPropertiesFilteringNodeWrapper the unwrapped node will be used for retrieving the property from. As it's about versioning, the frozen primary type if existing (else primary type) will be returned.

Throws:
javax.jcr.RepositoryException


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