org.mule.transport.jcr.support
Class JcrNodeUtils
java.lang.Object
org.mule.transport.jcr.support.JcrNodeUtils
public abstract class JcrNodeUtils
- extends Object
Utility class that provides methods for "detaching" JCR events and content from
the container so they can be used as payload that survives the closing of the
session.
- Author:
- David Dossot (david@dossot.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_DATE_FORMAT
public static final String DEFAULT_DATE_FORMAT
- See Also:
- Constant Field Values
getItemPayload
public static Object getItemPayload(javax.jcr.Item item)
throws IllegalStateException,
javax.jcr.ValueFormatException,
javax.jcr.RepositoryException
- Throws:
IllegalStateException
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
getNodeRelPath
public static String getNodeRelPath(org.mule.api.MuleEvent event)
getNodeTypeName
public static String getNodeTypeName(org.mule.api.MuleEvent event)
getNodeUUID
public static String getNodeUUID(org.mule.api.MuleEvent event)
getRawContentFromNode
public static Object getRawContentFromNode(javax.jcr.Item targetItem,
String nodeNamePatternFilter,
String propertyNamePatternFilter)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getRawContentFromProperty
public static Object getRawContentFromProperty(javax.jcr.Item targetItem)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getTargetItem
public static javax.jcr.Item getTargetItem(javax.jcr.Session session,
org.mule.api.endpoint.ImmutableEndpoint endpoint,
org.mule.api.MuleEvent event,
boolean navigateRelativePaths)
throws javax.jcr.RepositoryException,
javax.jcr.PathNotFoundException
- Throws:
javax.jcr.RepositoryException
javax.jcr.PathNotFoundException
newJcrMessage
public static JcrMessage newJcrMessage(javax.jcr.observation.Event event,
javax.jcr.Session session,
JcrContentPayloadType contentPayloadType)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
Copyright © 2011. All Rights Reserved.