public abstract class AttachmentStorage
extends java.lang.Object
Constructor and Description |
---|
AttachmentStorage() |
Modifier and Type | Method and Description |
---|---|
abstract void |
cleanupStorage() |
abstract void |
createAttachment(java.lang.String name,
byte[] data,
java.lang.String mimeType) |
abstract void |
deleteAttachment(MboRemote doclink) |
abstract byte[] |
getAttachment(MboRemote doclink) |
abstract byte[] |
getAttachment(java.lang.String urlName) |
abstract javax.activation.DataSource |
getAttachmentDatasource(java.lang.String urlName) |
abstract java.lang.String |
getAttachmentQualifiedName(MboRemote doclink,
java.lang.String name) |
long |
getAttachmentSize(MboRemote doclink) |
static boolean |
isAllowedType(java.lang.String fileExtension) |
abstract boolean |
isAttachmentNeedsCustomDatasource(java.lang.String urlName) |
static boolean |
isDefaultAttachmentStore() |
static boolean |
isPrintable(java.lang.String fileExt) |
static void |
setAllowedExtsSet(java.util.Set allowedExtsSet1) |
abstract void |
setupStorage() |
abstract java.io.InputStream |
streamAttachment(MboRemote doclink) |
protected void |
validateFileName(MXLogger logger,
java.lang.String fileName) |
public static void setAllowedExtsSet(java.util.Set allowedExtsSet1)
public static boolean isPrintable(java.lang.String fileExt)
public static boolean isAllowedType(java.lang.String fileExtension)
public abstract java.lang.String getAttachmentQualifiedName(MboRemote doclink, java.lang.String name) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public abstract void createAttachment(java.lang.String name, byte[] data, java.lang.String mimeType) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public abstract void deleteAttachment(MboRemote doclink) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public abstract byte[] getAttachment(MboRemote doclink) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public abstract byte[] getAttachment(java.lang.String urlName) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public abstract java.io.InputStream streamAttachment(MboRemote doclink) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public abstract void setupStorage() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public abstract void cleanupStorage() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public long getAttachmentSize(MboRemote doclink) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static boolean isDefaultAttachmentStore()
public abstract boolean isAttachmentNeedsCustomDatasource(java.lang.String urlName)
public abstract javax.activation.DataSource getAttachmentDatasource(java.lang.String urlName)
protected void validateFileName(MXLogger logger, java.lang.String fileName) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException