public class FileAttachmentStorage extends AttachmentStorage
| Constructor and Description |
|---|
FileAttachmentStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupStorage() |
void |
createAttachment(java.lang.String name,
byte[] data,
java.lang.String mimeType) |
void |
deleteAttachment(MboRemote doclink) |
byte[] |
getAttachment(MboRemote doclink) |
byte[] |
getAttachment(java.lang.String urlName) |
javax.activation.DataSource |
getAttachmentDatasource(java.lang.String urlName) |
java.lang.String |
getAttachmentQualifiedName(MboRemote doclink,
java.lang.String documentName) |
long |
getAttachmentSize(MboRemote doclink) |
boolean |
isAttachmentNeedsCustomDatasource(java.lang.String urlName) |
void |
setupStorage() |
java.io.InputStream |
streamAttachment(MboRemote doclink) |
isDefaultAttachmentStore, setAllowedExtsSetpublic long getAttachmentSize(MboRemote doclink) throws java.rmi.RemoteException, MXException
getAttachmentSize in class AttachmentStoragejava.rmi.RemoteExceptionMXExceptionpublic void createAttachment(java.lang.String name,
byte[] data,
java.lang.String mimeType)
throws java.rmi.RemoteException,
MXException
createAttachment in class AttachmentStoragejava.rmi.RemoteExceptionMXExceptionpublic void deleteAttachment(MboRemote doclink) throws java.rmi.RemoteException, MXException
deleteAttachment in class AttachmentStoragejava.rmi.RemoteExceptionMXExceptionpublic byte[] getAttachment(MboRemote doclink) throws java.rmi.RemoteException, MXException
getAttachment in class AttachmentStoragejava.rmi.RemoteExceptionMXExceptionpublic java.lang.String getAttachmentQualifiedName(MboRemote doclink, java.lang.String documentName) throws java.rmi.RemoteException, MXException
getAttachmentQualifiedName in class AttachmentStoragejava.rmi.RemoteExceptionMXExceptionpublic void setupStorage()
throws java.rmi.RemoteException,
MXException
setupStorage in class AttachmentStoragejava.rmi.RemoteExceptionMXExceptionpublic void cleanupStorage()
throws java.rmi.RemoteException,
MXException
cleanupStorage in class AttachmentStoragejava.rmi.RemoteExceptionMXExceptionpublic java.io.InputStream streamAttachment(MboRemote doclink) throws java.rmi.RemoteException, MXException
streamAttachment in class AttachmentStoragejava.rmi.RemoteExceptionMXExceptionpublic byte[] getAttachment(java.lang.String urlName)
throws java.rmi.RemoteException,
MXException
getAttachment in class AttachmentStoragejava.rmi.RemoteExceptionMXExceptionpublic boolean isAttachmentNeedsCustomDatasource(java.lang.String urlName)
isAttachmentNeedsCustomDatasource in class AttachmentStoragepublic javax.activation.DataSource getAttachmentDatasource(java.lang.String urlName)
getAttachmentDatasource in class AttachmentStorage