@GrailsCompileStatic@grails.compiler.GrailsCompileStatic class WorkbenchPullDefaultService extends Object
默认的拉数据服务
def app = bropen.workbench.app.WorkbenchApplication.get(702774)
// 增量抓所有
def tasks = ctx.getBean("workbenchPullDefaultService").incrementPullAll(app, new Date() - 100, new Date() - 98)
// 增量抓单个用户
def tasks = ctx.getBean("workbenchPullDefaultService").incrementPullUser(app, '00002141', DateUtils.parse('2013-07-17'), DateUtils.parse('2013-07-18'))
println tasks.updatedTasks*.properties*.toString().join("\n")
| Type | Name and description |
|---|---|
static void |
bootStrapInit()初始化:设置超时策略 |
Integer |
completeToread(WorkbenchApplication app, String taskIds)@see bropen.workbench.WorkbenchPullService#completeToread |
Integer |
completeToreadByUser(WorkbenchApplication app, String username)@see bropen.workbench.WorkbenchPullService#completeToreadByUser |
Integer |
deleteDraft(WorkbenchApplication app, String taskIds)@see bropen.workbench.WorkbenchPullService#deleteDraft |
Tasks |
incrementPullAll(WorkbenchApplication app, Date startTime, Date endTime)@see bropen.workbench.WorkbenchPullService#incrementPullAll |
Tasks |
incrementPullUser(WorkbenchApplication app, String user, Date startTime, Date endTime)@see bropen.workbench.WorkbenchPullService#incrementPullUser |
Tasks |
incrementPullUserByType(WorkbenchApplication app, String user, TaskType taskType, Date startTime, Date endTime)@see bropen.workbench.WorkbenchPullService#incrementPullUserByType |
Integer |
sendToread(WorkbenchApplication app, String docIds, String taskIds, String sender, String receivers)@see bropen.workbench.WorkbenchPullService#sendToread |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
初始化:设置超时策略