|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ogre.dms.util.client.PhysicalDocumentTransferTool
public class PhysicalDocumentTransferTool
This is a utility class for DMS client to upload or download physical document through PhysicalDocumentAccessService.
Constructor Summary | |
---|---|
PhysicalDocumentTransferTool(PhysicalDocumentAccessService pdaService)
|
Method Summary | |
---|---|
void |
downloadEFromPhysicalDocument(String userID,
String pDocKey,
OutputStream os,
String downloadType,
boolean ignoreLock)
Download PhysicalDocumentItem from EForm. |
void |
downloadEFromPhysicalDocument(String userID,
String pDocKey,
OutputStream os,
String downloadType,
boolean ignoreLock,
String mainDocKey)
|
void |
downloadExtPhysicalDocument(String userID,
String pDocKey,
OutputStream os,
String downloadType,
boolean ignoreLock,
String shortcutID)
|
void |
downloadPasoPdf(String userID,
String pasoID,
OutputStream os)
|
void |
downloadPhysicalDocument(String userID,
String pDocKey,
OutputStream os)
|
void |
downloadPhysicalDocument(String userID,
String pDocKey,
OutputStream os,
String downloadType,
boolean ignoreLock)
|
void |
generateWatermarkOnSample(String templateID,
String typeName,
OutputStream os)
|
String |
getDownloadFileName(String userID,
String pdocKey,
String downloadType,
String EFORMMode)
|
String |
getDownloadFileName(String userID,
String pdocKey,
String downloadType,
String EFORMMode,
String mainDocKey)
|
String |
getSubName(String fileName)
|
void |
uploadNewPhysicalDocument(String userID,
String documentKey,
String extension,
String originalFileName,
InputStream is)
Upload a file (PhysicalDocumentItem) for a document. |
String |
uploadPasoFile(String userID,
String originalFileName,
int originalFileSize,
InputStream is)
|
void |
uploadPhysicalDocument(String userID,
String pDocKey,
InputStream is)
Replace a file (PhysicalDocumentItem). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PhysicalDocumentTransferTool(PhysicalDocumentAccessService pdaService)
Method Detail |
---|
public void uploadNewPhysicalDocument(String userID, String documentKey, String extension, String originalFileName, InputStream is)
userID
- -
UserID of the user who try to upload a new physical document
for the specified documentdocumentKey
- -
the key of the document which the user wanna upload a new
physical document for itextension
- -
the type of the uploading physical documentoriginalFileName
- -
the original file name of the uploading physical documentis
- -
the InputStream of the target uploading filepublic void uploadPhysicalDocument(String userID, String pDocKey, InputStream is)
userID
- -
UserID of the user who try to upload (update) a physical
document to the serverpDocKey
- -
Key of target uploading physical documentis
- -
the InputStream of the target uploading filepublic String uploadPasoFile(String userID, String originalFileName, int originalFileSize, InputStream is)
userID
- - Member IDis
- - the InputStream of the target uploading fileextension
- - the type of the uploading physical documentoriginalFileName
- - the original file name of the uploading physical documentpublic void downloadPasoPdf(String userID, String pasoID, OutputStream os) throws Exception
Exception
public String getSubName(String fileName)
public void downloadPhysicalDocument(String userID, String pDocKey, OutputStream os)
public void downloadPhysicalDocument(String userID, String pDocKey, OutputStream os, String downloadType, boolean ignoreLock)
userID
- -
UserID of the user who try to download a physical document
from serverpDocKey
- -
Key of target downloading physical documentos
- -
the OutpuStream to write the download physical documentpublic void downloadEFromPhysicalDocument(String userID, String pDocKey, OutputStream os, String downloadType, boolean ignoreLock)
PhysicalDocumentItem
from EForm.
userID
- pDocKey
- os
- downloadType
- ignoreLock
- public void downloadEFromPhysicalDocument(String userID, String pDocKey, OutputStream os, String downloadType, boolean ignoreLock, String mainDocKey)
public void downloadExtPhysicalDocument(String userID, String pDocKey, OutputStream os, String downloadType, boolean ignoreLock, String shortcutID)
userID
- -
UserID of the user who try to download a physical document
from serverpDocKey
- -
Key of target downloading physical documentos
- -
the OutpuStream to write the download physical documentshortcutID
- -
id of shortcutpublic String getDownloadFileName(String userID, String pdocKey, String downloadType, String EFORMMode) throws Exception
Exception
public String getDownloadFileName(String userID, String pdocKey, String downloadType, String EFORMMode, String mainDocKey) throws Exception
Exception
public void generateWatermarkOnSample(String templateID, String typeName, OutputStream os) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |