public class JcrHelper extends Object
Modifier and Type | Method and Description |
---|---|
static javax.jcr.Item |
getPrimaryItem(javax.jcr.Node node)
Retrieve the primary item of a node, according to the primary node type hierarchy.
|
static javax.jcr.version.Version |
getVersionParent(javax.jcr.version.Version version)
Find the first checked-in version of the parent of a node that contains a particular version of the child.
|
static boolean |
isNodeType(javax.jcr.Node node,
String type)
Determine whether node is of the specified type, by using the jcr:mixinTypes property.
|
static boolean |
isVirtualNode(javax.jcr.Node node)
Determine whether node in question is a virtual node.
|
static boolean |
isVirtualRoot(javax.jcr.Node node)
Determine whether the node is a virtual root node (facet search or facet navigation)
|
public static boolean isNodeType(javax.jcr.Node node, String type) throws javax.jcr.RepositoryException
node
- type
- javax.jcr.RepositoryException
public static javax.jcr.version.Version getVersionParent(javax.jcr.version.Version version) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
version
- javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public static javax.jcr.Item getPrimaryItem(javax.jcr.Node node) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
node
- javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public static boolean isVirtualNode(javax.jcr.Node node) throws javax.jcr.RepositoryException
node
- the node to check for virtualityjavax.jcr.RepositoryException
public static boolean isVirtualRoot(javax.jcr.Node node) throws javax.jcr.RepositoryException
node
- javax.jcr.RepositoryException
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.