org.mule.transport.jcr.support
Class JcrPropertyUtils

java.lang.Object
  extended by org.mule.transport.jcr.support.JcrPropertyUtils

public abstract class JcrPropertyUtils
extends Object

Author:
David Dossot (david@dossot.net)

Method Summary
static Serializable getNonBinaryPropertyValue(javax.jcr.Value propertyValue, int propertyType)
           
static Map<String,Object> getPropertiesPayload(javax.jcr.PropertyIterator propertyIterator)
           
static String getPropertyNamePatternFilter(org.mule.api.routing.filter.Filter filter, Class<?> filterClass)
           
static String getPropertyRelPath(org.mule.api.MuleEvent event)
           
static javax.jcr.Value newPropertyValue(javax.jcr.Session session, Object value)
           
static javax.jcr.Value[] newPropertyValues(javax.jcr.Session session, Collection<?> objects)
           
static Serializable outputPropertyValue(String propertyPath, javax.jcr.Value propertyValue, JcrContentPayloadType contentPayloadType)
           
static void storeProperties(javax.jcr.Session session, javax.jcr.Node targetNode, Map<String,?> propertyNamesAndValues)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNonBinaryPropertyValue

public static Serializable getNonBinaryPropertyValue(javax.jcr.Value propertyValue,
                                                     int propertyType)
                                              throws javax.jcr.ValueFormatException,
                                                     javax.jcr.RepositoryException
Throws:
javax.jcr.ValueFormatException
javax.jcr.RepositoryException

getPropertiesPayload

public static Map<String,Object> getPropertiesPayload(javax.jcr.PropertyIterator propertyIterator)
                                               throws javax.jcr.RepositoryException,
                                                      javax.jcr.ValueFormatException
Throws:
javax.jcr.RepositoryException
javax.jcr.ValueFormatException

getPropertyNamePatternFilter

public static String getPropertyNamePatternFilter(org.mule.api.routing.filter.Filter filter,
                                                  Class<?> filterClass)

getPropertyRelPath

public static String getPropertyRelPath(org.mule.api.MuleEvent event)

newPropertyValue

public static javax.jcr.Value newPropertyValue(javax.jcr.Session session,
                                               Object value)
                                        throws javax.jcr.RepositoryException,
                                               IOException
Throws:
javax.jcr.RepositoryException
IOException

newPropertyValues

public static javax.jcr.Value[] newPropertyValues(javax.jcr.Session session,
                                                  Collection<?> objects)
                                           throws javax.jcr.RepositoryException,
                                                  IOException
Throws:
javax.jcr.RepositoryException
IOException

outputPropertyValue

public static Serializable outputPropertyValue(String propertyPath,
                                               javax.jcr.Value propertyValue,
                                               JcrContentPayloadType contentPayloadType)

storeProperties

public static void storeProperties(javax.jcr.Session session,
                                   javax.jcr.Node targetNode,
                                   Map<String,?> propertyNamesAndValues)
                            throws javax.jcr.RepositoryException,
                                   IOException
Throws:
javax.jcr.RepositoryException
IOException


Copyright © 2011. All Rights Reserved.