|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.schedule.ScheduleAction
public abstract class ScheduleAction
This class represents an action which will be done when a task has been
executed. There are five actions coming with the i-net Scheduler which
will render the reports, send these as e-mail, print on a printer or save in
a certain directory on the file system or to a FTP server.
You can also overwrite this class to implement an own action. The only
necessary method which needs to be overwritten is
action(ExecutedTask). This method will be called when the task is
executed. You could then render the reports of this task. The five
pre-defined actions you can find here:
CacheAction: This will need a hard disk or a database cache of i-net Clear Reports.
The rendered reports will be stored in the cache.EmailAcction: The mail API and the activation framework are required for this action. The reports will be rendered if they should be attached to
the e-mail sent. You can also send an confirmation e-mail that the reports in the cache have been refreshed if you want to.FileAction: The rendered reports will be saved in a given directory.FtpAction: The rendered reports will uploaded to a FTP server.PrintAction: The rendered reports will be printed on a selected printer or the default printer.
action(ExecutedTask)| Field Summary | |
|---|---|
static int |
TYPE_CACHE
This constant identifies that a ScheduleAction is an instance of CacheAction. |
static int |
TYPE_CUSTOM
This constant identifies that a ScheduleAction is an CustomAction. |
static int |
TYPE_EMAIL
This constant identifies that a ScheduleAction is an instance of EmailAction. |
static int |
TYPE_FILE
This constant identifies that a ScheduleAction is an instance of FileAction. |
static int |
TYPE_FTP
This constant identifies that a ScheduleAction is an instance of FtpAction. |
static int |
TYPE_PRINT
This constant identifies that a ScheduleAction is an instance of PrintAction. |
| Constructor Summary | |
|---|---|
protected |
ScheduleAction()
Constructor which has to be called by sub classes. |
| Method Summary | |
|---|---|
abstract void |
action(ExecutedTask task)
Will be invoked when an action is executed. |
java.lang.String[] |
getErrorMessages()
Has to be overridden to provide error information and to determine the behavior of isValid(). |
int |
getType()
Returns the type of this ScheduleAction. |
boolean |
isValid()
Every ScheduleAction can be checked whether it is valid. |
java.lang.String |
toString()
Returns a string representation of this ScheduleAction. |
| Field Detail |
|---|
public static final int TYPE_EMAIL
EmailAction,
getType(),
Constant Field Valuespublic static final int TYPE_FILE
FileAction,
getType(),
Constant Field Valuespublic static final int TYPE_PRINT
PrintAction,
getType(),
Constant Field Valuespublic static final int TYPE_CUSTOM
getType(),
Constant Field Valuespublic static final int TYPE_CACHE
CacheAction,
getType(),
Constant Field Valuespublic static final int TYPE_FTP
FtpAction,
getType(),
Constant Field Values| Constructor Detail |
|---|
protected ScheduleAction()
| Method Detail |
|---|
public abstract void action(ExecutedTask task)
task - The executed task including all reports which can be executed.public final boolean isValid()
public java.lang.String[] getErrorMessages()
public final int getType()
e-mail, file, print, cache, ftp or
custom.TYPE_CACHE,
TYPE_CUSTOM,
TYPE_EMAIL,
TYPE_FILE,
TYPE_FTP,
TYPE_PRINTpublic java.lang.String toString()
getErrorMessages().
toString in class java.lang.Object
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||