public class LocalAttachStore extends java.lang.Object implements AttachmentStore
构造器和说明 |
---|
LocalAttachStore() |
限定符和类型 | 方法和说明 |
---|---|
Attachment |
getAttachment(java.lang.String id)
根据钥匙获取附件
|
Attachment |
getDelegateAttachment(java.lang.String id)
获取附件对象
|
void |
putAttachment(java.lang.String key,
Attachment attachment)
将附件存放到仓库
|
void |
putDelegateAttachment(java.lang.String key,
Attachment attachment)
添加附件对象
|
int |
removeAllAttach()
清空附件资源文件
|
void |
removeAttachment(java.lang.String id)
清除仓库中指定位置的附件
|
void |
removeDelegateAttachment(java.lang.String id)
删除附件对象
|
public void putAttachment(java.lang.String key, Attachment attachment)
putAttachment
在接口中 AttachmentStore
key
- 附件对应的仓库的钥匙attachment
- 附件public int removeAllAttach()
removeAllAttach
在接口中 AttachmentStore
public Attachment getAttachment(java.lang.String id)
getAttachment
在接口中 AttachmentStore
id
- 表示附件存放位置的钥匙的一个字符串public void removeAttachment(java.lang.String id)
removeAttachment
在接口中 AttachmentStore
id
- 表示附件在仓库中对应位置的钥匙的字符串public void putDelegateAttachment(java.lang.String key, Attachment attachment)
putDelegateAttachment
在接口中 AttachmentStore
attachment
- 附件key
- 索引public Attachment getDelegateAttachment(java.lang.String id)
getDelegateAttachment
在接口中 AttachmentStore
id
- 索引public void removeDelegateAttachment(java.lang.String id)
removeDelegateAttachment
在接口中 AttachmentStore
id
- 索引