|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.event.impl.jobs.jcr.JCRHelper
public abstract class JCRHelper
Helper class defining some constants and utility methods.
Field Summary | |
---|---|
static String |
EVENT_NODE_TYPE
|
static String |
EVENT_PREFIX
The namespace prefix. |
static String |
JOB_NODE_TYPE
|
static String |
NODE_PROPERTY_APPLICATION
|
static String |
NODE_PROPERTY_CREATED
|
static String |
NODE_PROPERTY_FINISHED
|
static String |
NODE_PROPERTY_JOBID
|
static String |
NODE_PROPERTY_LOCK_OWNER
The property for locks. |
static String |
NODE_PROPERTY_PROCESSOR
|
static String |
NODE_PROPERTY_PROPERTIES
|
static String |
NODE_PROPERTY_TE_DATE
|
static String |
NODE_PROPERTY_TE_EXPRESSION
|
static String |
NODE_PROPERTY_TE_PERIOD
|
static String |
NODE_PROPERTY_TOPIC
|
static String |
NODETYPE_FOLDER
The nodetype for newly created intermediate folders |
static String |
NODETYPE_ORDERED_FOLDER
The nodetype for newly created folders |
static String |
TIMED_EVENT_NODE_TYPE
|
Constructor Summary | |
---|---|
JCRHelper()
|
Method Summary | |
---|---|
static String |
getNodePropertyName(String name)
Return the converted repository property name |
static javax.jcr.Value |
getNodePropertyValue(javax.jcr.ValueFactory valueFactory,
Object eventValue)
Return the converted repository property value |
static Dictionary<String,Object> |
readEventProperties(javax.jcr.Node node,
ClassLoader objectClassLoader,
boolean forceLoad)
Read event properties from a repository node and create a property map (dictionary). |
static void |
writeEventProperties(javax.jcr.Node node,
org.osgi.service.event.Event event)
Add all java properties as properties to the node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EVENT_PREFIX
public static final String NODE_PROPERTY_TOPIC
public static final String NODE_PROPERTY_APPLICATION
public static final String NODE_PROPERTY_CREATED
public static final String NODE_PROPERTY_PROPERTIES
public static final String NODE_PROPERTY_PROCESSOR
public static final String NODE_PROPERTY_JOBID
public static final String NODE_PROPERTY_FINISHED
public static final String NODE_PROPERTY_TE_EXPRESSION
public static final String NODE_PROPERTY_TE_DATE
public static final String NODE_PROPERTY_TE_PERIOD
public static final String EVENT_NODE_TYPE
public static final String JOB_NODE_TYPE
public static final String TIMED_EVENT_NODE_TYPE
public static final String NODETYPE_FOLDER
public static final String NODETYPE_ORDERED_FOLDER
public static final String NODE_PROPERTY_LOCK_OWNER
Constructor Detail |
---|
public JCRHelper()
Method Detail |
---|
public static void writeEventProperties(javax.jcr.Node node, org.osgi.service.event.Event event) throws javax.jcr.RepositoryException
node
- The node where all properties are added toevent
- The event.
javax.jcr.RepositoryException
public static Dictionary<String,Object> readEventProperties(javax.jcr.Node node, ClassLoader objectClassLoader, boolean forceLoad) throws javax.jcr.RepositoryException, ClassNotFoundException
javax.jcr.RepositoryException
ClassNotFoundException
public static String getNodePropertyName(String name)
name
- The java object property name
public static javax.jcr.Value getNodePropertyValue(javax.jcr.ValueFactory valueFactory, Object eventValue)
valueFactory
- The value factoryeventValue
- The event value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |