Ontimize Document Management 0.035EN

com.ontimize.dms.filetransfer.server
Class FileTransferServer

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by com.ontimize.dms.filetransfer.server.FileTransferServer
All Implemented Interfaces:
IRemoteControl, IRemoteTransfer, java.io.Serializable, java.rmi.Remote

public class FileTransferServer
extends java.rmi.server.UnicastRemoteObject
implements IRemoteTransfer, IRemoteControl

See Also:
Serialized Form

Field Summary
static java.lang.String CHANGED_LISTENER_FILE_KEY
           
protected static java.lang.String CONTAINER_BASE_PATH
           
protected static java.lang.String CONTAINER_DATA_PATH
           
protected static java.lang.String CONTAINER_TEMP_PATH
           
static java.lang.String DEFAULT_CHANGED_LISTENER_FILE
           
protected static CompleteTransferDialog dialog
           
protected  TransferTableModel downModel
           
static java.util.Map iKeys
          Conversion from the external keys to internal keys (new to old format)
static java.lang.String KEY_CONCURRENT_DOWNLOADS
           
static java.lang.String KEY_CONCURRENT_UPLOADS
           
static java.lang.String KEY_CONTAINER_PATH
           
static java.lang.String KEY_DOCUMENT_ENTITY
           
static java.lang.String KEY_GENERATE_THUMBNAIL
           
static java.lang.String KEY_INACTIVITY_GAP
           
static java.lang.String KEY_INACTIVITY_INTERVAL
           
static java.lang.String KEY_LOG_ENTITY
           
static java.lang.String KEY_REFRESH_INTERVAL
           
protected  TransferTableModel uploadModel
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface com.ontimize.dms.warehouse.IRemoteTransfer
INTERNAL_ID
 
Constructor Summary
FileTransferServer(int port, EntityReferenceLocator locator, java.util.Hashtable properties)
           
 
Method Summary
 void addFileChangedListener(FileChanged file)
           
 ITransferResponse canDownload(Document document, java.lang.Number version, int sessionId)
           
 ITransferResponse canUpload(Document doc, int action, long filesize, int sessionId)
           
 ITransferResponse canUpload(Document doc, int action, long filesize, java.util.Map fields, int sessionId)
           
protected static java.util.Map convert(java.util.Map alias, java.util.Map map)
           
 java.util.Hashtable createNewDirectory(Document document)
           
 java.util.Hashtable deleteDirectory(Document document)
           
 java.util.Hashtable deleteFile(Document document, java.util.Vector versionsNumber)
           
 java.util.Hashtable deleteVersion(Document doc, java.util.Vector versionNumber)
           
 IDataBlock downloadData(java.lang.String path, int sessionId)
           
protected  void init(EntityReferenceLocator locator, java.util.Hashtable properties)
           
 boolean isUpload(Document document, int sessionId)
           
 java.util.Hashtable moveDocument(Document newDocument, Document oldDocument, java.util.Vector versions)
           
 java.util.Hashtable renameDirectory(Document document, java.lang.String newName)
           
 java.util.Hashtable renameFile(Document document, java.lang.String newName, java.util.Vector versionNumber)
           
 void setVisible(java.awt.Frame parent, java.lang.Boolean visible)
           
 void stop()
           
 long uploadData(IDataBlock db, int sessionId)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY_CONTAINER_PATH

public static final java.lang.String KEY_CONTAINER_PATH
See Also:
Constant Field Values

KEY_CONCURRENT_DOWNLOADS

public static final java.lang.String KEY_CONCURRENT_DOWNLOADS
See Also:
Constant Field Values

KEY_CONCURRENT_UPLOADS

public static final java.lang.String KEY_CONCURRENT_UPLOADS
See Also:
Constant Field Values

KEY_INACTIVITY_INTERVAL

public static final java.lang.String KEY_INACTIVITY_INTERVAL
See Also:
Constant Field Values

KEY_INACTIVITY_GAP

public static final java.lang.String KEY_INACTIVITY_GAP
See Also:
Constant Field Values

KEY_REFRESH_INTERVAL

public static final java.lang.String KEY_REFRESH_INTERVAL
See Also:
Constant Field Values

KEY_GENERATE_THUMBNAIL

public static final java.lang.String KEY_GENERATE_THUMBNAIL
See Also:
Constant Field Values

KEY_DOCUMENT_ENTITY

public static final java.lang.String KEY_DOCUMENT_ENTITY
See Also:
Constant Field Values

KEY_LOG_ENTITY

public static final java.lang.String KEY_LOG_ENTITY
See Also:
Constant Field Values

CONTAINER_DATA_PATH

protected static final java.lang.String CONTAINER_DATA_PATH
See Also:
Constant Field Values

CONTAINER_BASE_PATH

protected static final java.lang.String CONTAINER_BASE_PATH
See Also:
Constant Field Values

CONTAINER_TEMP_PATH

protected static final java.lang.String CONTAINER_TEMP_PATH
See Also:
Constant Field Values

iKeys

public static java.util.Map iKeys

Conversion from the external keys to internal keys (new to old format)


DEFAULT_CHANGED_LISTENER_FILE

public static final java.lang.String DEFAULT_CHANGED_LISTENER_FILE
See Also:
Constant Field Values

CHANGED_LISTENER_FILE_KEY

public static final java.lang.String CHANGED_LISTENER_FILE_KEY
See Also:
Constant Field Values

downModel

protected TransferTableModel downModel

uploadModel

protected TransferTableModel uploadModel

dialog

protected static CompleteTransferDialog dialog
Constructor Detail

FileTransferServer

public FileTransferServer(int port,
                          EntityReferenceLocator locator,
                          java.util.Hashtable properties)
                   throws java.rmi.RemoteException,
                          java.lang.Exception
Throws:
java.rmi.RemoteException
java.lang.Exception
Method Detail

convert

protected static java.util.Map convert(java.util.Map alias,
                                       java.util.Map map)

init

protected void init(EntityReferenceLocator locator,
                    java.util.Hashtable properties)
             throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

canDownload

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

canUpload

public ITransferResponse canUpload(Document doc,
                                   int action,
                                   long filesize,
                                   int sessionId)
                            throws java.lang.Exception
Specified by:
canUpload in interface IRemoteTransfer
Throws:
java.lang.Exception

canUpload

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

isUpload

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

downloadData

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

uploadData

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

deleteVersion

public java.util.Hashtable deleteVersion(Document doc,
                                         java.util.Vector versionNumber)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

deleteFile

public java.util.Hashtable deleteFile(Document document,
                                      java.util.Vector versionsNumber)

deleteDirectory

public java.util.Hashtable deleteDirectory(Document document)

createNewDirectory

public java.util.Hashtable createNewDirectory(Document document)

renameFile

public java.util.Hashtable renameFile(Document document,
                                      java.lang.String newName,
                                      java.util.Vector versionNumber)

renameDirectory

public java.util.Hashtable renameDirectory(Document document,
                                           java.lang.String newName)

moveDocument

public java.util.Hashtable moveDocument(Document newDocument,
                                        Document oldDocument,
                                        java.util.Vector versions)

addFileChangedListener

public void addFileChangedListener(FileChanged file)
                            throws java.rmi.RemoteException
Specified by:
addFileChangedListener in interface IRemoteControl
Throws:
java.rmi.RemoteException

setVisible

public void setVisible(java.awt.Frame parent,
                       java.lang.Boolean visible)
Specified by:
setVisible in interface IRemoteControl

stop

public void stop()
          throws java.lang.Exception
Throws:
java.lang.Exception

Ontimize Document Management