Modifier and Type | Field and Description |
---|---|
protected ConnectionDataHandler |
connectionDataHandler
Connection handler
|
protected TimerDataManager |
dataManager
Data manager
|
protected ChoremXMLRPCClient |
managementService
Web service implementation
|
Constructor and Description |
---|
WSDaemon(ChoremXMLRPCClient managementService,
TimerDataManager dataManager)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected TimerProject |
getProjectByName(String projectName)
Found project by name in local projects.
|
protected TimerTask |
getTaskByName(TimerTask task,
String taskName)
Found task by name in a task subtask
|
protected void |
refreshProjectList(String userId)
Refresh projects and task list.
|
void |
run() |
void |
setConnectionDataHandler(ConnectionDataHandler connectionDataHandler)
Set connection handler.
|
protected void |
synchronizeTask(TimerTask localTask,
TimerTask task)
Synchronize two projects.
|
cancel, scheduledExecutionTime
protected TimerDataManager dataManager
protected ChoremXMLRPCClient managementService
protected ConnectionDataHandler connectionDataHandler
public WSDaemon(ChoremXMLRPCClient managementService, TimerDataManager dataManager)
managementService
- managementService to usedataManager
- datapublic void setConnectionDataHandler(ConnectionDataHandler connectionDataHandler)
connectionDataHandler
- connection handlerprotected void refreshProjectList(String userId)
userId
- user idprotected TimerProject getProjectByName(String projectName)
projectName
- project name to findprotected TimerTask getTaskByName(TimerTask task, String taskName)
task
- tasktaskName
- task name to foundCopyright © 2007–2013 CodeLutin. All rights reserved.