public class COSAttachmentStorage extends AttachmentStorage
Constructor and Description |
---|
COSAttachmentStorage() |
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 name) |
long |
getAttachmentSize(MboRemote doclink) |
boolean |
isAttachmentNeedsCustomDatasource(java.lang.String urlName) |
void |
setupStorage() |
java.io.InputStream |
streamAttachment(MboRemote doclink) |
isDefaultAttachmentStore, setAllowedExtsSet
public long getAttachmentSize(MboRemote doclink) throws java.rmi.RemoteException, MXException
getAttachmentSize
in class AttachmentStorage
java.rmi.RemoteException
MXException
public void createAttachment(java.lang.String name, byte[] data, java.lang.String mimeType) throws java.rmi.RemoteException, MXException
createAttachment
in class AttachmentStorage
java.rmi.RemoteException
MXException
public void deleteAttachment(MboRemote doclink) throws java.rmi.RemoteException, MXException
deleteAttachment
in class AttachmentStorage
java.rmi.RemoteException
MXException
public byte[] getAttachment(MboRemote doclink) throws java.rmi.RemoteException, MXException
getAttachment
in class AttachmentStorage
java.rmi.RemoteException
MXException
public byte[] getAttachment(java.lang.String urlName) throws java.rmi.RemoteException, MXException
getAttachment
in class AttachmentStorage
java.rmi.RemoteException
MXException
public java.lang.String getAttachmentQualifiedName(MboRemote doclink, java.lang.String name) throws java.rmi.RemoteException, MXException
getAttachmentQualifiedName
in class AttachmentStorage
java.rmi.RemoteException
MXException
public void setupStorage() throws java.rmi.RemoteException, MXException
setupStorage
in class AttachmentStorage
java.rmi.RemoteException
MXException
public void cleanupStorage() throws java.rmi.RemoteException, MXException
cleanupStorage
in class AttachmentStorage
java.rmi.RemoteException
MXException
public java.io.InputStream streamAttachment(MboRemote doclink) throws java.rmi.RemoteException, MXException
streamAttachment
in class AttachmentStorage
java.rmi.RemoteException
MXException
public boolean isAttachmentNeedsCustomDatasource(java.lang.String urlName)
isAttachmentNeedsCustomDatasource
in class AttachmentStorage
public javax.activation.DataSource getAttachmentDatasource(java.lang.String urlName)
getAttachmentDatasource
in class AttachmentStorage