Ontimize Document Management 0.035EN

com.ontimize.dms.warehouse.local
Class UploadClient

java.lang.Object
  extended by java.lang.Thread
      extended by com.ontimize.dms.warehouse.local.TransferThread
          extended by com.ontimize.dms.warehouse.local.UploadClient
All Implemented Interfaces:
ITraceable, IUpload, IFinishListener, java.lang.Runnable

public class UploadClient
extends TransferThread
implements IUpload


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  CopyUtil copy
           
protected  boolean lockOnUpload
           
 
Fields inherited from class com.ontimize.dms.warehouse.local.TransferThread
cancelled, DEFAULT_OPEN_MAX, finished, lfinishedListener, list, modelAdapter, openMax, queue, transferListener, transferStatusPanel
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
UploadClient(IRemoteTransfer irs, java.lang.String basePath, java.lang.String tempPath, int sessionId)
           
 
Method Summary
 TransferStatus getStatus()
           
 boolean hasLockOnUpload()
           
 void run()
           
 void setLockOnUpload(boolean enabled)
           
 int size()
           
 int upload(Document document, int action)
           
 int upload(Document document, int action, java.util.Map fields)
           
 
Methods inherited from class com.ontimize.dms.warehouse.local.TransferThread
addFinishedListener, addModelListener, addTransferListener, clearFinishedListener, create, create, fireFinishedListeners, fireModelEvent, fireTransferListener, getBasePath, getStatus, getTempPath, haveToUpdate, removeFinishedListener, removeModelListener, setOpenMax, setTransferTrace, start
 
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

copy

protected CopyUtil copy

lockOnUpload

protected boolean lockOnUpload
Constructor Detail

UploadClient

public UploadClient(IRemoteTransfer irs,
                    java.lang.String basePath,
                    java.lang.String tempPath,
                    int sessionId)
Method Detail

hasLockOnUpload

public boolean hasLockOnUpload()

setLockOnUpload

public void setLockOnUpload(boolean enabled)

upload

public int upload(Document document,
                  int action)
           throws java.lang.Exception
Specified by:
upload in interface IUpload
Throws:
java.lang.Exception

upload

public int upload(Document document,
                  int action,
                  java.util.Map fields)
           throws java.lang.Exception
Specified by:
upload in interface IUpload
Throws:
java.lang.Exception

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

size

public int size()

getStatus

public TransferStatus getStatus()
Specified by:
getStatus in class TransferThread

Ontimize Document Management