net.sf.jfilesync.engine.worker
Class PermissionsWorker

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.gnocchi.GWorker
          extended by net.sf.jfilesync.engine.worker.PermissionsWorker
All Implemented Interfaces:
java.lang.Runnable, net.sf.gnocchi.GWorkerListener, TAbstractGUIElementListener

public class PermissionsWorker
extends net.sf.gnocchi.GWorker
implements net.sf.gnocchi.GWorkerListener, TAbstractGUIElementListener


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  TAbstractWorkerGUIElement abstractGuiElement
           
private  AbstractConnectionProxy con
           
private  ConnectionDetails details
           
private  int dir_perm
           
private  int file_perm
           
private  TFileProperties[] files
           
private static java.util.logging.Logger LOGGER
           
private  java.awt.Component parent
           
private  boolean recursive
           
private  net.sf.gnocchi.GWorkerObserver workerObserver
           
 
Fields inherited from class net.sf.gnocchi.GWorker
STATE_DIED, STATE_DONE, STATE_INTERRUPTED, STATE_READY, STATE_RUNNING
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PermissionsWorker(java.awt.Component parent, AbstractConnectionProxy connection, ConnectionDetails details, TFileProperties[] files, int dir_perm, int file_perm, boolean recursive)
           
 
Method Summary
 void cancelClicked(TAbstractDialogEvent e)
           
protected  void changePermissions(TFileProperties[] files)
           
 net.sf.gnocchi.GWorkerEvent construct()
           
 void task()
           
 void updateModel(net.sf.gnocchi.GWorkerEvent e)
           
 void workerCancelled(net.sf.gnocchi.GWorkerEvent e)
           
 void workerDied(net.sf.gnocchi.GWorkerEvent e)
           
 void workerDone(net.sf.gnocchi.GWorkerEvent e)
           
 
Methods inherited from class net.sf.gnocchi.GWorker
addObserver, cancel, customCancel, getException, getObserver, getWorkerState, hasDied, isCancelled, isDone, isFinished, isRunning, run, setDied
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

private final java.awt.Component parent

con

private final AbstractConnectionProxy con

files

private final TFileProperties[] files

dir_perm

private final int dir_perm

file_perm

private final int file_perm

recursive

private final boolean recursive

details

private final ConnectionDetails details

abstractGuiElement

private TAbstractWorkerGUIElement abstractGuiElement

workerObserver

private net.sf.gnocchi.GWorkerObserver workerObserver

LOGGER

private static final java.util.logging.Logger LOGGER
Constructor Detail

PermissionsWorker

public PermissionsWorker(java.awt.Component parent,
                         AbstractConnectionProxy connection,
                         ConnectionDetails details,
                         TFileProperties[] files,
                         int dir_perm,
                         int file_perm,
                         boolean recursive)
Method Detail

task

public void task()
          throws java.lang.Exception
Specified by:
task in class net.sf.gnocchi.GWorker
Throws:
java.lang.Exception

changePermissions

protected void changePermissions(TFileProperties[] files)

construct

public net.sf.gnocchi.GWorkerEvent construct()
Specified by:
construct in class net.sf.gnocchi.GWorker

workerDone

public void workerDone(net.sf.gnocchi.GWorkerEvent e)
Specified by:
workerDone in interface net.sf.gnocchi.GWorkerListener

workerCancelled

public void workerCancelled(net.sf.gnocchi.GWorkerEvent e)
Specified by:
workerCancelled in interface net.sf.gnocchi.GWorkerListener

workerDied

public void workerDied(net.sf.gnocchi.GWorkerEvent e)
Specified by:
workerDied in interface net.sf.gnocchi.GWorkerListener

updateModel

public void updateModel(net.sf.gnocchi.GWorkerEvent e)
Specified by:
updateModel in interface net.sf.gnocchi.GWorkerListener

cancelClicked

public void cancelClicked(TAbstractDialogEvent e)
Specified by:
cancelClicked in interface TAbstractGUIElementListener