|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.event.impl.jobs.Utility
public abstract class Utility
Field Summary | |
---|---|
static String |
PROPERTY_TIME
Event property containing the time for job start and job finished events. |
Constructor Summary | |
---|---|
Utility()
|
Method Summary | |
---|---|
static String |
filter(String nodeName)
Filter the node name for not allowed characters and replace them. |
static StringBuilder |
getAnonPath(Calendar now)
|
static String |
getUniquePath(String jobTopic,
String jobId)
Create a unique node path (folder and name) for the job. |
static String |
md5(String data)
Calculate an MD5 hash of the string given using 'utf-8' encoding. |
static void |
sendNotification(EnvironmentComponent environment,
String topic,
org.osgi.service.event.Event job,
Long time)
Helper method for sending the notification events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_TIME
Constructor Detail |
---|
public Utility()
Method Detail |
---|
public static String filter(String nodeName)
nodeName
- The suggested node name.
public static String md5(String data)
data
- the data to encode
public static String getUniquePath(String jobTopic, String jobId)
public static StringBuilder getAnonPath(Calendar now)
public static void sendNotification(EnvironmentComponent environment, String topic, org.osgi.service.event.Event job, Long time)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |