Ontimize Document Management 0.035EN

com.ontimize.dms.warehouse.remote
Class WarehouseServer

java.lang.Object
  extended by com.ontimize.dms.warehouse.remote.WarehouseServer
All Implemented Interfaces:
IWharehouse, IWarehouseServer

public class WarehouseServer
extends java.lang.Object
implements IWarehouseServer


Field Summary
 
Fields inherited from interface com.ontimize.dms.warehouse.remote.IWarehouseServer
INACTIVITY_GAP_SECONDS, INACTIVITY_SECONDS, PATH_BASE, PATH_BASE_TEMP
 
Fields inherited from interface com.ontimize.dms.warehouse.IWharehouse
BUFFER_LENGTH, DOWNLOAD_OPEN_MAX, TIME_VIEW_UPDATE, UPLOAD_OPEN_MAX
 
Constructor Summary
WarehouseServer(java.util.Map h)
           
 
Method Summary
 TransferResponse canDownload(Document document, java.lang.Number version, int sessionId)
           
 TransferResponse canUpload(Document document, int action, long filesize, int sessionId)
           
 TransferResponse canUpload(Document document, int action, long filesize, java.util.Map fields, int sessionId)
           
 IDataBlock downloadData(java.lang.String path, int sessionId)
           
 ServerTransfer getDownloadThread()
           
 ServerTransfer getUploadThread()
           
 boolean isDownload(Document document, int sessionId)
           
 boolean isUpload(Document document, int sessionId)
           
protected static int parseInt(java.util.Map p, java.lang.Object key)
           
 void setContainer(IContainer container)
           
 void stop()
           
 long uploadData(IDataBlock db, int sessionId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarehouseServer

public WarehouseServer(java.util.Map h)
                throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

parseInt

protected static int parseInt(java.util.Map p,
                              java.lang.Object key)

getDownloadThread

public ServerTransfer getDownloadThread()
Specified by:
getDownloadThread in interface IWarehouseServer

getUploadThread

public ServerTransfer getUploadThread()
Specified by:
getUploadThread in interface IWarehouseServer

setContainer

public void setContainer(IContainer container)

downloadData

public IDataBlock downloadData(java.lang.String path,
                               int sessionId)
                        throws java.lang.Exception
Specified by:
downloadData in interface IWarehouseServer
Throws:
java.lang.Exception

uploadData

public long uploadData(IDataBlock db,
                       int sessionId)
                throws java.lang.Exception
Specified by:
uploadData in interface IWarehouseServer
Throws:
java.lang.Exception

canDownload

public TransferResponse canDownload(Document document,
                                    java.lang.Number version,
                                    int sessionId)
                             throws java.lang.Exception
Specified by:
canDownload in interface IWarehouseServer
Throws:
java.lang.Exception

canUpload

public TransferResponse canUpload(Document document,
                                  int action,
                                  long filesize,
                                  int sessionId)
                           throws java.lang.Exception
Specified by:
canUpload in interface IWarehouseServer
Throws:
java.lang.Exception

canUpload

public TransferResponse canUpload(Document document,
                                  int action,
                                  long filesize,
                                  java.util.Map fields,
                                  int sessionId)
                           throws java.lang.Exception
Specified by:
canUpload in interface IWarehouseServer
Throws:
java.lang.Exception

isDownload

public boolean isDownload(Document document,
                          int sessionId)
                   throws java.lang.Exception
Specified by:
isDownload in interface IWarehouseServer
Throws:
java.lang.Exception

isUpload

public boolean isUpload(Document document,
                        int sessionId)
                 throws java.lang.Exception
Specified by:
isUpload in interface IWarehouseServer
Throws:
java.lang.Exception

stop

public void stop()
Specified by:
stop in interface IWarehouseServer

Ontimize Document Management