public class JahiaJCRPathWrapperImpl extends Object implements PathWrapper
Path| Constructor and Description |
|---|
JahiaJCRPathWrapperImpl(org.apache.jackrabbit.spi.Path path,
org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver pathResolver,
JahiaSystemSession securitySession) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
PathWrapper |
getAncestor()
Get the direct parent path wrapped
|
Object |
getInnerObject()
get the original object behind the wrapper
|
javax.jcr.Item |
getItem()
Get the item for the current path in the wrapper
|
int |
getLength()
get the length of the current path in the wrapper
|
PathWrapper |
getNewPathWrapper(String path)
Get a new wrapped path
|
String |
getNodeName()
Get the node name for the current path in the wrapper
|
String |
getPathStr()
Get the string representation of the current path in the wrapper
|
int |
hashCode() |
boolean |
isRoot()
Check if the current path in the wrapper is the root path
|
boolean |
itemExist()
Check if the item exist for the current path in the wrapper
|
public JahiaJCRPathWrapperImpl(org.apache.jackrabbit.spi.Path path,
org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver pathResolver,
JahiaSystemSession securitySession)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic Object getInnerObject()
PathWrappergetInnerObject in interface PathWrapperpublic int getLength()
PathWrappergetLength in interface PathWrapperpublic boolean isRoot()
PathWrapperisRoot in interface PathWrapperpublic String getPathStr()
PathWrappergetPathStr in interface PathWrapperpublic String getNodeName() throws javax.jcr.NamespaceException
PathWrappergetNodeName in interface PathWrapperjavax.jcr.NamespaceExceptionpublic boolean itemExist()
throws javax.jcr.RepositoryException
PathWrapperitemExist in interface PathWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic javax.jcr.Item getItem()
throws javax.jcr.RepositoryException
PathWrappergetItem in interface PathWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic PathWrapper getAncestor() throws javax.jcr.RepositoryException
PathWrappergetAncestor in interface PathWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic PathWrapper getNewPathWrapper(String path) throws javax.jcr.RepositoryException
PathWrappergetNewPathWrapper in interface PathWrapperpath - the path to be wrappedjavax.jcr.RepositoryException - in case of JCR-related errorsCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.