Package | Description |
---|---|
com.xpn.xwiki | |
com.xpn.xwiki.api | |
com.xpn.xwiki.doc | |
com.xpn.xwiki.plugin | |
com.xpn.xwiki.store | |
com.xpn.xwiki.store.hibernate | |
com.xpn.xwiki.web |
Modifier and Type | Method and Description |
---|---|
List<XWikiAttachment> |
XWiki.searchAttachments(String parametrizedSqlClause,
boolean checkRight,
int nb,
int start,
List<?> parameterValues,
XWikiContext context)
Deprecated.
since 9.7RC1, use the QueryManager instead along with the "attachment" query filter
|
Modifier and Type | Method and Description |
---|---|
XWikiAttachment |
Attachment.getAttachment() |
Modifier and Type | Method and Description |
---|---|
protected Attachment |
Api.convert(XWikiAttachment xattach)
Convert an internal representation of an attachment to the public api Attachment.
|
Modifier and Type | Method and Description |
---|---|
protected List<Attachment> |
Api.convertAttachments(List<XWikiAttachment> xattaches)
Convert a list of attachments in their internal form to a list of public api Attachments.
|
Constructor and Description |
---|
Attachment(Document doc,
XWikiAttachment attachment,
XWikiContext context) |
Modifier and Type | Method and Description |
---|---|
XWikiAttachment |
XWikiDocument.addAttachment(String fileName,
byte[] content,
XWikiContext context)
Deprecated.
|
XWikiAttachment |
XWikiDocument.addAttachment(String fileName,
InputStream content,
XWikiContext context)
Deprecated.
since 9.10RC1, use
XWikiDocument.setAttachment(String, InputStream, XWikiContext) instead |
XWikiAttachment |
XWikiAttachment.clone() |
XWikiAttachment |
XWikiDocument.XWikiAttachmentToRemove.getAttachment() |
XWikiAttachment |
XWikiAttachmentContent.getAttachment() |
XWikiAttachment |
XWikiAttachmentArchive.getAttachment() |
XWikiAttachment |
XWikiDocument.getAttachment(String filename) |
XWikiAttachment |
XWikiAttachment.getAttachmentRevision(String rev,
XWikiContext context) |
XWikiAttachment |
AttachmentDiff.getNewAttachment() |
XWikiAttachment |
AttachmentDiff.getOrigAttachment() |
XWikiAttachment |
XWikiAttachmentArchive.getRevision(XWikiAttachment attachment,
String rev,
XWikiContext context)
Get an old revision of the attachment which this is an archive of.
|
XWikiAttachment |
DeletedAttachmentContent.getXWikiAttachment(XWikiAttachment attachment) |
XWikiAttachment |
XWikiDocument.removeAttachment(XWikiAttachment attachment)
Remove the attachment from the document attachment list and put it in the list of attachments to remove for next
document save.
|
XWikiAttachment |
XWikiDocument.removeAttachment(XWikiAttachment attachmentToRemove,
boolean toRecycleBin)
Remove the attachment from the document attachment list and put it in the list of attachments to remove for next
document save.
|
XWikiAttachment |
DeletedAttachment.restoreAttachment() |
XWikiAttachment |
DeletedAttachment.restoreAttachment(XWikiAttachment attachment)
Restore a
XWikiAttachment from a DeletedAttachment . |
XWikiAttachment |
DeletedAttachment.restoreAttachment(XWikiAttachment attachment,
XWikiContext context)
Deprecated.
since 9.9RC1, use
DeletedAttachment.restoreAttachment(XWikiAttachment) instead |
XWikiAttachment |
XWikiDocument.setAttachment(String fileName,
InputStream content,
XWikiContext context)
Create or update attachment with the passed name with the passed content.
|
XWikiAttachment |
XWikiDocument.setAttachment(XWikiAttachment attachment)
Insert passed attachment in the document and return any pre-existing attachment with the same name.
|
Modifier and Type | Method and Description |
---|---|
List<XWikiAttachment> |
XWikiDocument.getAttachmentList() |
Modifier and Type | Method and Description |
---|---|
void |
XWikiDocument.addAttachment(XWikiAttachment attachment)
Deprecated.
since 9.10RC1, use
XWikiDocument.setAttachment(XWikiAttachment) instead |
boolean |
XWikiAttachment.apply(XWikiAttachment attachment)
Apply the provided attachment so that the current one contains the same informations and indicate if it was
necessary to modify it in any way.
|
boolean |
XWikiAttachment.equalsData(XWikiAttachment otherAttachment,
XWikiContext xcontext) |
XWikiAttachment |
XWikiAttachmentArchive.getRevision(XWikiAttachment attachment,
String rev,
XWikiContext context)
Get an old revision of the attachment which this is an archive of.
|
XWikiAttachment |
DeletedAttachmentContent.getXWikiAttachment(XWikiAttachment attachment) |
void |
XWikiDocument.loadAttachmentContent(XWikiAttachment attachment,
XWikiContext context)
Deprecated.
since 9.9RC1, use
loadContent(XWikiContext) |
void |
XWikiAttachment.merge(XWikiAttachment previousAttachment,
XWikiAttachment nextAttachment,
MergeConfiguration configuration,
XWikiContext xcontext,
MergeResult mergeResult) |
void |
XWikiAttachment.AttachmentContainer.onAttachmentNameModified(String previousAttachmentName,
XWikiAttachment attachment) |
XWikiAttachment |
XWikiDocument.removeAttachment(XWikiAttachment attachment)
Remove the attachment from the document attachment list and put it in the list of attachments to remove for next
document save.
|
XWikiAttachment |
XWikiDocument.removeAttachment(XWikiAttachment attachmentToRemove,
boolean toRecycleBin)
Remove the attachment from the document attachment list and put it in the list of attachments to remove for next
document save.
|
XWikiAttachment |
DeletedAttachment.restoreAttachment(XWikiAttachment attachment)
Restore a
XWikiAttachment from a DeletedAttachment . |
XWikiAttachment |
DeletedAttachment.restoreAttachment(XWikiAttachment attachment,
XWikiContext context)
Deprecated.
since 9.9RC1, use
DeletedAttachment.restoreAttachment(XWikiAttachment) instead |
void |
XWikiDocument.saveAttachmentContent(XWikiAttachment attachment,
boolean updateParent,
boolean transaction,
XWikiContext context)
Deprecated.
should not be used, save the document instead
|
void |
XWikiDocument.saveAttachmentContent(XWikiAttachment attachment,
XWikiContext context)
Deprecated.
should not be used, save the document instead
|
XWikiAttachment |
XWikiDocument.setAttachment(XWikiAttachment attachment)
Insert passed attachment in the document and return any pre-existing attachment with the same name.
|
void |
XWikiAttachmentContent.setAttachment(XWikiAttachment attachment) |
void |
XWikiAttachmentArchive.setAttachment(XWikiAttachment attachment)
Set the attachment to associate with this archive.
|
protected void |
DeletedAttachment.setAttachment(XWikiAttachment attachment,
XWikiContext context)
Deprecated.
since 9.9RC1, use
DeletedAttachment(long, String, String, String, String, Date, DeletedAttachmentContent)
instead |
Modifier and Type | Method and Description |
---|---|
void |
XWikiDocument.saveAttachmentsContent(List<XWikiAttachment> attachments,
XWikiContext context)
Deprecated.
should not be used, save the document instead
|
void |
XWikiDocument.setAttachmentList(List<XWikiAttachment> list) |
Constructor and Description |
---|
AttachmentDiff(String fileName,
org.xwiki.diff.Delta.Type type,
XWikiAttachment origAttachment,
XWikiAttachment newAttachment) |
DeletedAttachment(XWikiAttachment attachment,
String deleter,
Date deleteDate,
XWikiContext context)
A constructor with all the information about the deleted attachment.
|
XWikiAttachmentContent(XWikiAttachment attachment)
Constructor with associated attachment specified.
|
XWikiAttachmentContent(XWikiAttachment attachment,
org.apache.commons.fileupload.FileItem f) |
XWikiAttachmentToRemove(XWikiAttachment attachment,
boolean toRecycleBin) |
Modifier and Type | Method and Description |
---|---|
XWikiAttachment |
XWikiPluginManager.downloadAttachment(XWikiAttachment attachment,
XWikiContext context) |
XWikiAttachment |
XWikiPluginInterface.downloadAttachment(XWikiAttachment attachment,
XWikiContext context)
Deprecated.
Plugin extension point allowing the plugin to perform modifications to an attachment when the user opens a
document attachment.
|
XWikiAttachment |
XWikiDefaultPlugin.downloadAttachment(XWikiAttachment attachment,
XWikiContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
XWikiAttachment |
XWikiPluginManager.downloadAttachment(XWikiAttachment attachment,
XWikiContext context) |
XWikiAttachment |
XWikiPluginInterface.downloadAttachment(XWikiAttachment attachment,
XWikiContext context)
Deprecated.
Plugin extension point allowing the plugin to perform modifications to an attachment when the user opens a
document attachment.
|
XWikiAttachment |
XWikiDefaultPlugin.downloadAttachment(XWikiAttachment attachment,
XWikiContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
XWikiAttachment |
VoidAttachmentVersioningStore.VoidAttachmentArchive.getRevision(XWikiAttachment attachment,
String rev,
XWikiContext context) |
XWikiAttachment |
AttachmentRecycleBinStore.restoreFromRecycleBin(XWikiAttachment attachment,
long index,
XWikiContext context,
boolean bTransaction)
Restore an attachment from the recycle bin (with full history).
|
Modifier and Type | Method and Description |
---|---|
boolean |
XWikiHibernateAttachmentStore.attachmentContentExists(XWikiAttachment attachment,
XWikiContext inputxcontext,
boolean bTransaction) |
default boolean |
XWikiAttachmentStoreInterface.attachmentContentExists(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction) |
void |
AttachmentVersioningStore.deleteArchive(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
Permanently delete attachment archive.
|
void |
VoidAttachmentVersioningStore.deleteArchive(XWikiAttachment attachment,
XWikiContext context,
boolean transaction) |
void |
XWikiHibernateAttachmentStore.deleteXWikiAttachment(XWikiAttachment attachment,
boolean parentUpdate,
XWikiContext inputxcontext,
boolean bTransaction) |
void |
XWikiAttachmentStoreInterface.deleteXWikiAttachment(XWikiAttachment attachment,
boolean parentUpdate,
XWikiContext context,
boolean bTransaction) |
void |
XWikiHibernateAttachmentStore.deleteXWikiAttachment(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction) |
void |
XWikiAttachmentStoreInterface.deleteXWikiAttachment(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction) |
List<DeletedAttachment> |
AttachmentRecycleBinStore.getAllDeletedAttachments(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
Get all the deleted attachments from the database matching an attachment template (document name and filename).
|
XWikiAttachment |
VoidAttachmentVersioningStore.VoidAttachmentArchive.getRevision(XWikiAttachment attachment,
String rev,
XWikiContext context) |
XWikiAttachmentArchive |
AttachmentVersioningStore.loadArchive(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
Load attachment archive from store.
|
XWikiAttachmentArchive |
VoidAttachmentVersioningStore.loadArchive(XWikiAttachment attachment,
XWikiContext context,
boolean transaction) |
void |
XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiAttachment attachment,
XWikiContext inputxcontext,
boolean bTransaction) |
void |
XWikiAttachmentStoreInterface.loadAttachmentContent(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction) |
XWikiAttachment |
AttachmentRecycleBinStore.restoreFromRecycleBin(XWikiAttachment attachment,
long index,
XWikiContext context,
boolean bTransaction)
Restore an attachment from the recycle bin (with full history).
|
void |
AttachmentRecycleBinContentStore.save(XWikiAttachment attachment,
Date deleteDate,
long index,
boolean bTransaction)
Save attachment to recycle bin.
|
void |
XWikiHibernateAttachmentStore.saveAttachmentContent(XWikiAttachment attachment,
boolean parentUpdate,
XWikiContext inputxcontext,
boolean bTransaction) |
void |
XWikiAttachmentStoreInterface.saveAttachmentContent(XWikiAttachment attachment,
boolean bParentUpdate,
XWikiContext context,
boolean bTransaction) |
void |
XWikiHibernateAttachmentStore.saveAttachmentContent(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction) |
void |
XWikiAttachmentStoreInterface.saveAttachmentContent(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction) |
void |
AttachmentRecycleBinStore.saveToRecycleBin(XWikiAttachment attachment,
String deleter,
Date date,
XWikiContext context,
boolean bTransaction)
Save attachment to recycle bin, with full history.
|
Modifier and Type | Method and Description |
---|---|
void |
XWikiHibernateAttachmentStore.saveAttachmentsContent(List<XWikiAttachment> attachments,
XWikiDocument doc,
boolean bParentUpdate,
XWikiContext inputxcontext,
boolean bTransaction) |
void |
XWikiAttachmentStoreInterface.saveAttachmentsContent(List<XWikiAttachment> attachments,
XWikiDocument doc,
boolean bParentUpdate,
XWikiContext context,
boolean bTransaction) |
Constructor and Description |
---|
VoidAttachmentArchive(XWikiAttachment attachment)
Helper constructor.
|
Modifier and Type | Method and Description |
---|---|
XWikiAttachment |
HibernateAttachmentRecycleBinStore.restoreFromRecycleBin(XWikiAttachment attachment,
long index,
XWikiContext inputxcontext,
boolean bTransaction) |
Modifier and Type | Method and Description |
---|---|
void |
HibernateAttachmentVersioningStore.deleteArchive(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction) |
List<DeletedAttachment> |
HibernateAttachmentRecycleBinStore.getAllDeletedAttachments(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction) |
XWikiAttachmentArchive |
HibernateAttachmentVersioningStore.loadArchive(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction) |
XWikiAttachment |
HibernateAttachmentRecycleBinStore.restoreFromRecycleBin(XWikiAttachment attachment,
long index,
XWikiContext inputxcontext,
boolean bTransaction) |
void |
HibernateAttachmentRecycleBinStore.saveToRecycleBin(XWikiAttachment attachment,
String deleter,
Date date,
XWikiContext inputxcontext,
boolean bTransaction) |
Modifier and Type | Method and Description |
---|---|
XWikiAttachment |
XWikiServletURLFactory.findAttachmentForDocRevision(XWikiDocument doc,
String docRevision,
String filename,
XWikiContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
DownloadAction.sendContent(XWikiAttachment attachment,
XWikiRequest request,
XWikiResponse response,
XWikiContext context)
Send the attachment content in the response.
|
Copyright © 2004–2021 XWiki. All rights reserved.