Package org.compiere.model
Class AttachmentFileSystem
java.lang.Object
org.compiere.model.AttachmentFileSystem
- All Implemented Interfaces:
IAttachmentStore
File system backed implementation of
IAttachmentStore
- Author:
- juliana
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
delete
(MAttachment attach, MStorageProvider provider) Delete stored attachment contentboolean
deleteEntry
(MAttachment attach, MStorageProvider provider, int index) Delete attachment content by indexboolean
loadLOBData
(MAttachment attach, MStorageProvider prov) Load binary attachment contentboolean
save
(MAttachment attach, MStorageProvider prov) Save attachment content
-
Constructor Details
-
AttachmentFileSystem
public AttachmentFileSystem()
-
-
Method Details
-
save
Description copied from interface:IAttachmentStore
Save attachment content- Specified by:
save
in interfaceIAttachmentStore
- Returns:
- true if successfully save
-
loadLOBData
Description copied from interface:IAttachmentStore
Load binary attachment content- Specified by:
loadLOBData
in interfaceIAttachmentStore
- Returns:
- true if successfully loaded
-
delete
Description copied from interface:IAttachmentStore
Delete stored attachment content- Specified by:
delete
in interfaceIAttachmentStore
- Returns:
- true if successfully deleted
-
deleteEntry
Description copied from interface:IAttachmentStore
Delete attachment content by index- Specified by:
deleteEntry
in interfaceIAttachmentStore
index
- index of content to delete (for e.g zip entry #2 of a zip file)- Returns:
- true if successfully deleted
-