|
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
com.inet.report.schedule.FileAction
public class FileAction
This action will render the reports and save them to a given directory.
If a report does not contain an export format "pdf" will be used as default.
| Field Summary |
|---|
| Fields inherited from class com.inet.report.schedule.ScheduleAction |
|---|
TYPE_CACHE, TYPE_CUSTOM, TYPE_EMAIL, TYPE_FILE, TYPE_FTP, TYPE_PRINT |
| Constructor Summary | |
|---|---|
FileAction()
Creates an instance of FileAction. |
|
| Method Summary | |
|---|---|
void |
action(ExecutedTask task)
This will render the reports of the task and save them to the given directory. |
java.lang.String |
getDateFormat()
Returns the current date format which will be used to append to the file name. |
java.lang.String[] |
getErrorMessages()
Returns an array of error messaged indicating if the file action is valid or not. |
java.lang.String |
getPath()
Returns the directory where the rendered reports should be saved. |
boolean |
isAppendDate()
Returns whether the current date will be added to the file names of the rendered reports. |
boolean |
isAppendTime()
Returns whether the current time will be added to the file names of the rendered reports. |
void |
setAppendDate(boolean appendDate)
Set whether the current date should be added to the file names of the rendered reports. |
void |
setAppendTime(boolean appendTime)
Set whether the current time should be added to the file names of the rendered reports. |
void |
setDateFormat(java.lang.String dateFormat)
Sets the date format which should be used if the date, time or datetime should be appended to the file name. |
void |
setPath(java.lang.String path)
Sets the directory where the rendered reports should be saved. |
java.lang.String |
toString()
Returns a string representation of this FileAction. |
| Methods inherited from class com.inet.report.schedule.ScheduleAction |
|---|
getType, isValid |
| Constructor Detail |
|---|
public FileAction()
| Method Detail |
|---|
public void setDateFormat(java.lang.String dateFormat)
dateFormat - The date format which should be set.getDateFormat(),
isAppendDate(),
isAppendTime()public java.lang.String getDateFormat()
setDateFormat(String),
isAppendDate(),
isAppendTime()public boolean isAppendDate()
True if the date will be added or false otherwise.setAppendDate(boolean)public void setAppendDate(boolean appendDate)
appendDate - True if the date should be added or falseisAppendDate()public boolean isAppendTime()
True if the time will be added or false otherwise.setAppendTime(boolean)public void setAppendTime(boolean appendTime)
appendTime - True if the time should be added or falseisAppendTime()public java.lang.String[] getErrorMessages()
getErrorMessages in class ScheduleActionScheduleAction.isValid()public java.lang.String getPath()
setPath(String)public void setPath(java.lang.String path)
path - The directory where the reports should be saved.getPath()public void action(ExecutedTask task)
action in class ScheduleActiontask - The executed task including all reports which can be executed.public java.lang.String toString()
ScheduleAction.getErrorMessages() if available.
toString in class ScheduleAction
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||