BrightSide Workbench Full Report + Source Code
org.turro.wd.tree.SyncTask Class Reference
Inheritance diagram for org.turro.wd.tree.SyncTask:
Collaboration diagram for org.turro.wd.tree.SyncTask:

Public Member Functions

 SyncTask (TreeView treeView, String caption, String commentCommit, int commitAction, String commentUpdate, int updateAction)
 
- Public Member Functions inherited from org.turro.wd.tree.DefaultTask
 DefaultTask (TreeView treeView, String caption)
 
String execute () throws TaskExecutionException
 

Static Public Attributes

static final int UPDATE_DO_NOTHING = 0
 

Protected Member Functions

String done ()
 
String failed ()
 
void process (TreeDirectory dir) throws ParseException
 
void process (TreeWorkFile file) throws ParseException
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.wd.tree.DefaultTask
TreeView treeView
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 28 of file SyncTask.java.

Constructor & Destructor Documentation

◆ SyncTask()

org.turro.wd.tree.SyncTask.SyncTask ( TreeView  treeView,
String  caption,
String  commentCommit,
int  commitAction,
String  commentUpdate,
int  updateAction 
)

Definition at line 42 of file SyncTask.java.

44  {
45  super(treeView, caption);
46  this.commentCommit = commentCommit;
47  this.commitAction = commitAction;
48  this.commentUpdate = commentUpdate;
49  this.updateAction = updateAction;
50  }

Member Function Documentation

◆ done()

String org.turro.wd.tree.SyncTask.done ( )
protected

Reimplemented from org.turro.wd.tree.DefaultTask.

Definition at line 53 of file SyncTask.java.

53  {
54  return "Done sync!";
55  }

◆ failed()

String org.turro.wd.tree.SyncTask.failed ( )
protected

Reimplemented from org.turro.wd.tree.DefaultTask.

Definition at line 58 of file SyncTask.java.

58  {
59  return "Failed!";
60  }

◆ process() [1/2]

void org.turro.wd.tree.SyncTask.process ( TreeDirectory  dir) throws ParseException
protected

Reimplemented from org.turro.wd.tree.DefaultTask.

Definition at line 63 of file SyncTask.java.

63  {
64  }

◆ process() [2/2]

void org.turro.wd.tree.SyncTask.process ( TreeWorkFile  file) throws ParseException
protected

Reimplemented from org.turro.wd.tree.DefaultTask.

Definition at line 67 of file SyncTask.java.

67  {
68  WorkFile wf = file.getWorkFile();
69  if(wf.isUploadable()) {
70  wf.doUpload(commentCommit, commitAction);
71  } else if(wf.isDownloadable() || (updateAction == UPDATE_UPDATE_FOR_EDITING)) {
72  wf.doDownload(updateAction);
73  } else if(wf.isServerLocked() && commitAction == COMMIT_UNLOCK_ALL) {
74  wf.doUnlock();
75  }
76  }
Here is the call graph for this function:

Member Data Documentation

◆ UPDATE_DO_NOTHING

final int org.turro.wd.tree.SyncTask.UPDATE_DO_NOTHING = 0
static

Definition at line 34 of file SyncTask.java.


The documentation for this class was generated from the following file: