public class ViewReportletJob extends ReportletJob
限定符和类型 | 类和说明 |
---|---|
class |
ViewReportletJob.ScheduleReportletRequestImpl |
限定符和类型 | 字段和说明 |
---|---|
protected java.lang.String |
currentUserName |
static long |
EMPTY_USERID |
protected java.io.File |
saveDirectory |
protected ViewScheduleSavedInfo |
viewScheduleSavedInfo |
arrayParaList, fireTimeAndTaskID, jobDataMap, MILLISECOND, MINUTES, record_list, reportlet, reportPath, scheduledFireTime, scheduleTask, taskID
构造器和说明 |
---|
ViewReportletJob() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
addParameterAndResultBook(java.util.Map parameterMap,
ResultWorkBook book) |
protected void |
addUserName(java.util.Map parameterMap) |
protected void |
dealWithException(java.lang.Exception e)
记录带用户名的错误信息
|
protected void |
dealWithFileActions(boolean sendEmailByUsername,
boolean sendAttach,
ScheduledOutput scheduledoutput,
java.util.List attachFileList,
java.io.File[] exported_files) |
protected void |
dealWithInfo(ScheduleTask scheduleTask,
java.io.File[] exported_files,
java.util.Map parameterMap,
java.util.List attachFileList,
java.lang.String username) |
protected java.io.File[] |
dealWithResultFiles(java.lang.String[] arrayParaName,
java.lang.String reportName,
ScheduledOutput scheduledoutput,
java.util.List attachFileList,
java.io.File[] exported_files,
java.util.Map parameterMap,
ResultWorkBook book)
生成结果文件,处理文件
|
protected java.lang.String |
excuteSendMailByUserName(ScheduledOutput scheduledoutput,
java.util.List attachFileList,
java.io.File[] exported_files) |
protected void |
executeReport()
执行报表
|
protected java.lang.String |
executeReportByUsername(java.util.List record_list,
java.lang.String[] arrayParaName,
boolean sendEmailByUsername,
boolean sendAttach) |
protected void |
executeScheduledOutput() |
protected PageWorkBook |
fastUserNameFilter(java.util.Map parameterMap,
TemplateWorkBook wbTpl,
boolean sendAttach)
快速分发
|
java.lang.String |
getCurrentUserName() |
protected java.io.File |
getFilePath(java.util.Map parameterMap)
获取文件路径
|
java.io.File |
getSaveDirectory() |
protected TemplateWorkBook |
getTemplateWorkBook(java.lang.String reportPath,
java.util.Map parameterMap)
获取TemplateWorkBook
|
ViewScheduleSavedInfo |
getViewScheduleSavedInfo() |
protected void |
modifyBookBeforeExecute(TemplateWorkBook wbTpl) |
void |
sendMessage()
发送消息
|
void |
sendMessageByName(java.lang.String userName,
ScheduleMessageAction scheduleMessageAction)
发送平台消息
|
void |
sendMessageByUser()
根据用户发送消息
|
void |
sendSMSByName(java.lang.String userName)
发送短信
|
void |
setCurrentUserName(java.lang.String currentUserName) |
void |
setSaveDirectory(java.io.File saveDirectory) |
void |
setViewScheduleSavedInfo(ViewScheduleSavedInfo viewScheduleSavedInfo) |
checkExecuteFormula, doDispatch, evaluateFormula, execute, exportViewScheduleSavedInfo, getExecuteFailLog, getExecuteParameter, getScheduleTask, logReportPathError, logTipInfo, restartTask
public static final long EMPTY_USERID
protected ViewScheduleSavedInfo viewScheduleSavedInfo
protected java.io.File saveDirectory
protected java.lang.String currentUserName
protected void executeReport()
ReportletJob
executeReport
在类中 ReportletJob
protected void executeScheduledOutput() throws java.lang.Exception
java.lang.Exception
protected void addParameterAndResultBook(java.util.Map parameterMap, ResultWorkBook book)
protected java.lang.String executeReportByUsername(java.util.List record_list, java.lang.String[] arrayParaName, boolean sendEmailByUsername, boolean sendAttach) throws java.lang.Exception
java.lang.Exception
protected void dealWithFileActions(boolean sendEmailByUsername, boolean sendAttach, ScheduledOutput scheduledoutput, java.util.List attachFileList, java.io.File[] exported_files) throws java.lang.Exception
java.lang.Exception
protected TemplateWorkBook getTemplateWorkBook(java.lang.String reportPath, java.util.Map parameterMap)
reportPath
- parameterMap
- protected java.io.File[] dealWithResultFiles(java.lang.String[] arrayParaName, java.lang.String reportName, ScheduledOutput scheduledoutput, java.util.List attachFileList, java.io.File[] exported_files, java.util.Map parameterMap, ResultWorkBook book) throws java.lang.Exception
arrayParaName
- reportName
- scheduledoutput
- attachFileList
- exported_files
- parameterMap
- book
- java.lang.Exception
protected java.io.File getFilePath(java.util.Map parameterMap)
parameterMap
- protected PageWorkBook fastUserNameFilter(java.util.Map parameterMap, TemplateWorkBook wbTpl, boolean sendAttach)
parameterMap
- wbTpl
- sendAttach
- protected void addUserName(java.util.Map parameterMap)
protected void modifyBookBeforeExecute(TemplateWorkBook wbTpl)
protected java.lang.String excuteSendMailByUserName(ScheduledOutput scheduledoutput, java.util.List attachFileList, java.io.File[] exported_files) throws java.lang.Exception
java.lang.Exception
protected void dealWithInfo(ScheduleTask scheduleTask, java.io.File[] exported_files, java.util.Map parameterMap, java.util.List attachFileList, java.lang.String username)
protected void dealWithException(java.lang.Exception e)
dealWithException
在类中 ReportletJob
public java.io.File getSaveDirectory()
public void setSaveDirectory(java.io.File saveDirectory)
public java.lang.String getCurrentUserName()
public void setCurrentUserName(java.lang.String currentUserName)
public ViewScheduleSavedInfo getViewScheduleSavedInfo()
public void setViewScheduleSavedInfo(ViewScheduleSavedInfo viewScheduleSavedInfo)
public void sendMessage()
public void sendMessageByUser()
public void sendMessageByName(java.lang.String userName, ScheduleMessageAction scheduleMessageAction)
userName
- scheduleMessageAction
- public void sendSMSByName(java.lang.String userName)
userName
-