com.ontimize.dms.filetransfer.client
Class FileTransferClient
java.lang.Object
com.ontimize.dms.filetransfer.client.FileTransferClient
- All Implemented Interfaces:
- IFileTransferClient, TransferClientTags, IUpdateDetected, TransferListener
public class FileTransferClient
- extends java.lang.Object
- implements TransferClientTags, IFileTransferClient, IUpdateDetected, TransferListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CHANGE_DETECTED_WINDOW_CLASS
public static final java.lang.String DEFAULT_CHANGE_DETECTED_WINDOW_CLASS
- See Also:
- Constant Field Values
CHANGE_DETECTED_WINDOW_CLASS_KEY
public static final java.lang.String CHANGE_DETECTED_WINDOW_CLASS_KEY
- See Also:
- Constant Field Values
changeDetectedClass
protected static java.lang.String changeDetectedClass
listeners
protected java.util.List listeners
last
protected IChangeDetected last
saveModel
protected SaveModel saveModel
export
protected ExportDialog export
frame
protected javax.swing.JFrame frame
baseRepository
protected java.lang.String baseRepository
showExportDialog
protected boolean showExportDialog
saveDialogColumns
protected java.util.List saveDialogColumns
saveDialogDeleteEnabled
protected boolean saveDialogDeleteEnabled
saveDialogValues
protected java.lang.String saveDialogValues
cleanList
protected java.util.List cleanList
sessionId
protected java.lang.Integer sessionId
operation
protected IRemoteOperationServer operation
transferObjectName
protected java.lang.String transferObjectName
operationObjectName
protected java.lang.String operationObjectName
transformClazz
protected java.lang.String transformClazz
transform
protected IODMSTransform transform
downloadModel
protected TransferTableModel downloadModel
uploadModel
protected TransferTableModel uploadModel
copyManager
protected CopyContextManager copyManager
dialog
protected static LocalCopyCompleteTransferDialog dialog
FileTransferClient
public FileTransferClient(java.util.Map params)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
getFileTransferClient
public static FileTransferClient getFileTransferClient()
getOperationExecutor
public static java.util.concurrent.Executor getOperationExecutor()
getTransferStatusPanel
public static TransferStatusPanel getTransferStatusPanel()
setConfiguration
public static void setConfiguration(java.util.Hashtable configuation)
getConfiguration
public static java.util.Hashtable getConfiguration()
initFileTransferClient
public static void initFileTransferClient(java.util.Hashtable h)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
clearSavePopups
protected void clearSavePopups()
getStatus
public TransferStatus getStatus()
- Specified by:
getStatus in interface IFileTransferClient
getTransferObjectName
public java.lang.String getTransferObjectName()
- Specified by:
getTransferObjectName in interface IFileTransferClient
getOperationObjectName
public java.lang.String getOperationObjectName()
- Specified by:
getOperationObjectName in interface IFileTransferClient
getTransform
public IODMSTransform getTransform()
getTransformClassName
public java.lang.String getTransformClassName()
- Specified by:
getTransformClassName in interface IFileTransferClient
getSaveDialog
public SaveDialog getSaveDialog(java.awt.Window parent)
- Specified by:
getSaveDialog in interface IFileTransferClient
doCatch
protected int doCatch(LErrorException e)
doAdd
public int doAdd(java.util.Map params,
java.io.File[] files)
throws ContextException,
java.lang.Exception
- Description copied from interface:
IFileTransferClient
Calls to IFileTransferClient.doAdd(ContextValues, File[])
- Specified by:
doAdd in interface IFileTransferClient
- Throws:
ContextException
java.lang.Exception
doAdd
public int doAdd(ContextValues context,
java.io.File[] files)
throws ContextException,
java.lang.Exception
- Description copied from interface:
IFileTransferClient
Adds the given file list to Document Manager.
The files are copied to local cache and then uploaded to remote repository.
Also allows to insert if there are files with the same name if the
target path. Possible options:
- New version.
- Overwrite
- Generate a new name.
- Specified by:
doAdd in interface IFileTransferClient
- Parameters:
context - Current context.files - List of files to insert.
- Returns:
- Codes.OK if files are inserted successfully.
- Throws:
ContextException - if context is null.
java.lang.Exception - if a undefined error ocurrs.
doAction
public int doAction(int action,
Document[] documents,
java.util.Map params)
- Specified by:
doAction in interface IFileTransferClient
doAction
public int doAction(int action,
Document[] documents,
java.util.Map params,
boolean background)
getFile
public java.io.File getFile(Document document)
- Specified by:
getFile in interface IFileTransferClient
exists
public boolean exists(Document document)
- Specified by:
exists in interface IFileTransferClient
showTransferWindow
public void showTransferWindow()
updateDetected
public void updateDetected(Document document)
- Specified by:
updateDetected in interface IUpdateDetected
addStatusListener
public void addStatusListener(TransferStatusListener listener)
statusChanged
public void statusChanged(TransferStatus status)
- Specified by:
statusChanged in interface TransferListener
clean
public void clean(ContextValues context,
EntityResult er)
- Specified by:
clean in interface IFileTransferClient
clean
protected void clean(Document[] documents)