| java.lang.Object org.apache.lenya.cms.scheduler.xml.TriggerHelper
TriggerHelper | final public class TriggerHelper (Code) | | Utility class to work with trigger XML.
|
Method Summary | |
public static Trigger | createCronTrigger(String jobName, String jobGroup, String cron_expression) Creates a cron trigger.
Parameters: jobName - The job name. Parameters: jobGroup - The job group. Parameters: cron_expression - Seconds, Minutes, Hours, Day of Month, Months, Day of Week (e.g. | public static Element | createElement(NamespaceHelper helper, Trigger trigger) Creates an XML element containing trigger information.
Parameters: helper - The namespace helper to use. Parameters: trigger - The trigger. | public static Trigger | createSimpleTrigger(String jobName, String jobGroup, Date date) Creates a simple trigger.
Parameters: jobName - The job name. Parameters: jobGroup - The job group. Parameters: date - The trigger date. | public static Trigger | createTrigger(Element element, String jobName, String jobGroup) Creates a trigger from an XML element.
Parameters: element - The XML element. Parameters: jobName - The job name. Parameters: jobGroup - The job group. | protected static String | createUniqueTriggerId() Creates a unique trigger ID. | public static Date | getDate(NamespaceMap schedulerParameters) Extracts the date from the scheduler parameters.
Parameters: schedulerParameters - The scheduler parameters. |
CRON_EXPRESSION | final public static String CRON_EXPRESSION(Code) | | CRON_EXPRESSION The cron expression
|
MINUTE | final public static String MINUTE(Code) | | MINUTE The minute
|
PREFIX | final public static String PREFIX(Code) | | PREFIX The prefix
|
REPEATED | final public static String REPEATED(Code) | | REPEATED Repeated
|
TRIGGER_TYPE | final public static String TRIGGER_TYPE(Code) | | TRIGGER_TYPE The trigger type
|
createCronTrigger | public static Trigger createCronTrigger(String jobName, String jobGroup, String cron_expression)(Code) | | Creates a cron trigger.
Parameters: jobName - The job name. Parameters: jobGroup - The job group. Parameters: cron_expression - Seconds, Minutes, Hours, Day of Month, Months, Day of Week (e.g. 34?) A trigger. |
createElement | public static Element createElement(NamespaceHelper helper, Trigger trigger)(Code) | | Creates an XML element containing trigger information.
Parameters: helper - The namespace helper to use. Parameters: trigger - The trigger. An XML element. |
createSimpleTrigger | public static Trigger createSimpleTrigger(String jobName, String jobGroup, Date date)(Code) | | Creates a simple trigger.
Parameters: jobName - The job name. Parameters: jobGroup - The job group. Parameters: date - The trigger date. The trigger |
createTrigger | public static Trigger createTrigger(Element element, String jobName, String jobGroup)(Code) | | Creates a trigger from an XML element.
Parameters: element - The XML element. Parameters: jobName - The job name. Parameters: jobGroup - The job group. A trigger. |
createUniqueTriggerId | protected static String createUniqueTriggerId()(Code) | | Creates a unique trigger ID.
A string. |
getDate | public static Date getDate(NamespaceMap schedulerParameters) throws IOException(Code) | | Extracts the date from the scheduler parameters.
Parameters: schedulerParameters - The scheduler parameters. A date. throws: IOException - when something went wrong. |
|
|