public class ItemResolver
extends java.lang.Object
| Constructor and Description |
|---|
ItemResolver() |
| Modifier and Type | Method and Description |
|---|---|
static ItemImpl |
findItem(SessionImpl context,
org.alfresco.service.cmr.repository.NodeRef from,
java.lang.String path)
Create an Item from a JCR Path
|
static NodeImpl |
findNode(SessionImpl context,
org.alfresco.service.cmr.repository.NodeRef from,
java.lang.String path)
Create an Node from a JCR Path
|
static org.alfresco.service.cmr.repository.NodeRef |
getNodeRef(SessionImpl context,
org.alfresco.service.cmr.repository.NodeRef from,
java.lang.String path)
Gets the Node Reference for the node at the specified path
|
static boolean |
itemExists(SessionImpl context,
org.alfresco.service.cmr.repository.NodeRef from,
java.lang.String path)
Determine if Item exists
|
static boolean |
nodeExists(SessionImpl context,
org.alfresco.service.cmr.repository.NodeRef from,
java.lang.String path)
Determine if Node exists
|
public static ItemImpl findItem(SessionImpl context, org.alfresco.service.cmr.repository.NodeRef from, java.lang.String path) throws javax.jcr.PathNotFoundException
context - session contextfrom - starting node for pathpath - the pathjavax.jcr.PathNotFoundExceptionpublic static NodeImpl findNode(SessionImpl context, org.alfresco.service.cmr.repository.NodeRef from, java.lang.String path) throws javax.jcr.PathNotFoundException
context - session contextfrom - starting node for pathpath - the pathjavax.jcr.PathNotFoundExceptionpublic static boolean itemExists(SessionImpl context, org.alfresco.service.cmr.repository.NodeRef from, java.lang.String path)
context - session contextfrom - starting node for pathpath - the pathpublic static boolean nodeExists(SessionImpl context, org.alfresco.service.cmr.repository.NodeRef from, java.lang.String path)
context - session contextfrom - starting node for pathpath - the pathpublic static org.alfresco.service.cmr.repository.NodeRef getNodeRef(SessionImpl context, org.alfresco.service.cmr.repository.NodeRef from, java.lang.String path)
context - session contextfrom - the starting node for the pathpath - the pathCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.