1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package com.xpn.xwiki.store; |
21 |
|
|
22 |
|
import java.util.List; |
23 |
|
|
24 |
|
import org.xwiki.component.annotation.Role; |
25 |
|
|
26 |
|
import com.xpn.xwiki.XWikiContext; |
27 |
|
import com.xpn.xwiki.XWikiException; |
28 |
|
import com.xpn.xwiki.doc.XWikiAttachment; |
29 |
|
import com.xpn.xwiki.doc.XWikiDocument; |
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
@version |
35 |
|
|
36 |
|
@Role |
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
37 |
|
public interface XWikiAttachmentStoreInterface |
38 |
|
{ |
39 |
|
void saveAttachmentContent(XWikiAttachment attachment, XWikiContext context, boolean bTransaction) |
40 |
|
throws XWikiException; |
41 |
|
|
42 |
|
void saveAttachmentContent(XWikiAttachment attachment, boolean bParentUpdate, XWikiContext context, |
43 |
|
boolean bTransaction) throws XWikiException; |
44 |
|
|
45 |
|
void saveAttachmentsContent(List<XWikiAttachment> attachments, XWikiDocument doc, boolean bParentUpdate, |
46 |
|
XWikiContext context, boolean bTransaction) throws XWikiException; |
47 |
|
|
48 |
|
void loadAttachmentContent(XWikiAttachment attachment, XWikiContext context, boolean bTransaction) |
49 |
|
throws XWikiException; |
50 |
|
|
51 |
|
void deleteXWikiAttachment(XWikiAttachment attachment, XWikiContext context, boolean bTransaction) |
52 |
|
throws XWikiException; |
53 |
|
|
54 |
|
void deleteXWikiAttachment(XWikiAttachment attachment, boolean parentUpdate, XWikiContext context, |
55 |
|
boolean bTransaction) throws XWikiException; |
56 |
|
|
57 |
|
void cleanUp(XWikiContext context); |
58 |
|
} |