Uses of Class
com.xpn.xwiki.doc.XWikiAttachment
-
Packages that use XWikiAttachment 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 org.xwiki.store -
-
Uses of XWikiAttachment in com.xpn.xwiki
Methods in com.xpn.xwiki that return types with arguments of type XWikiAttachment Modifier and Type Method 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 -
Uses of XWikiAttachment in com.xpn.xwiki.api
Methods in com.xpn.xwiki.api that return XWikiAttachment Modifier and Type Method Description XWikiAttachment
Attachment. getAttachment()
Methods in com.xpn.xwiki.api with parameters of type XWikiAttachment Modifier and Type Method Description protected Attachment
Api. convert(XWikiAttachment xattach)
Convert an internal representation of an attachment to the public api Attachment.Method parameters in com.xpn.xwiki.api with type arguments of type XWikiAttachment Modifier and Type Method 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.Constructors in com.xpn.xwiki.api with parameters of type XWikiAttachment Constructor Description Attachment(Document doc, XWikiAttachment attachment, XWikiContext context)
-
Uses of XWikiAttachment in com.xpn.xwiki.doc
Methods in com.xpn.xwiki.doc that return XWikiAttachment Modifier and Type Method Description XWikiAttachment
XWikiDocument. addAttachment(String fileName, byte[] content, XWikiContext context)
Deprecated.XWikiAttachment
XWikiDocument. addAttachment(String fileName, InputStream content, XWikiContext context)
Deprecated.XWikiAttachment
XWikiAttachment. clone()
XWikiAttachment
XWikiAttachment. clone(String name, XWikiContext context)
Clone the attachment and its history to a new name, and attach it to a new document.XWikiAttachment
XWikiAttachmentArchive. getAttachment()
XWikiAttachment
XWikiAttachmentContent. getAttachment()
XWikiAttachment
XWikiDocument. getAttachment(String filename)
Return the first attachment of the attachment list either exactly matching the provided filename or that matches the provided filename with a n arbitrary extension (i.e., filename.ext).XWikiAttachment
XWikiDocument.XWikiAttachmentToRemove. getAttachment()
XWikiAttachment
XWikiAttachment. getAttachmentRevision(String rev, XWikiContext context)
XWikiAttachment
XWikiDocument. getExactAttachment(String filename)
Return the attachment that exactly matches the provided file.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 aXWikiAttachment
from aDeletedAttachment
.XWikiAttachment
DeletedAttachment. restoreAttachment(XWikiAttachment attachment, XWikiContext context)
Deprecated.since 9.9RC1, useDeletedAttachment.restoreAttachment(XWikiAttachment)
insteadXWikiAttachment
XWikiDocument. setAttachment(XWikiAttachment attachment)
Insert passed attachment in the document and return any pre-existing attachment with the same name.XWikiAttachment
XWikiDocument. setAttachment(String fileName, InputStream content, XWikiContext context)
Create or update attachment with the passed name with the passed content.Methods in com.xpn.xwiki.doc that return types with arguments of type XWikiAttachment Modifier and Type Method Description List<XWikiAttachment>
XWikiDocument. getAttachmentList()
Methods in com.xpn.xwiki.doc with parameters of type XWikiAttachment Modifier and Type Method Description void
XWikiDocument. addAttachment(XWikiAttachment attachment)
Deprecated.useXWikiDocument.setAttachment(XWikiAttachment)
insteadboolean
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.XWikiAttachmentArchive
XWikiAttachmentArchive. clone(XWikiAttachment attachment, XWikiContext context)
Clone the attachment archive while replacing the name and the document of the revisions to the one of the attachment passed in parameter.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.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 aXWikiAttachment
from aDeletedAttachment
.XWikiAttachment
DeletedAttachment. restoreAttachment(XWikiAttachment attachment, XWikiContext context)
Deprecated.since 9.9RC1, useDeletedAttachment.restoreAttachment(XWikiAttachment)
insteadvoid
XWikiDocument. saveAttachmentContent(XWikiAttachment attachment, boolean updateParent, boolean transaction, XWikiContext context)
Deprecated.should not be used, save the document insteadvoid
XWikiDocument. saveAttachmentContent(XWikiAttachment attachment, XWikiContext context)
Deprecated.should not be used, save the document insteadprotected void
DeletedAttachment. setAttachment(XWikiAttachment attachment, XWikiContext context)
Deprecated.since 9.9RC1, useDeletedAttachment(long, String, String, String, String, Date, DeletedAttachmentContent)
insteadvoid
XWikiAttachmentArchive. setAttachment(XWikiAttachment attachment)
Set the attachment to associate with this archive.void
XWikiAttachmentContent. setAttachment(XWikiAttachment attachment)
XWikiAttachment
XWikiDocument. setAttachment(XWikiAttachment attachment)
Insert passed attachment in the document and return any pre-existing attachment with the same name.Method parameters in com.xpn.xwiki.doc with type arguments of type XWikiAttachment Modifier and Type Method Description void
XWikiDocument. saveAttachmentsContent(List<XWikiAttachment> attachments, XWikiContext context)
Deprecated.should not be used, save the document insteadvoid
XWikiDocument. setAttachmentList(List<XWikiAttachment> list)
Constructors in com.xpn.xwiki.doc with parameters of type XWikiAttachment Constructor 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)
-
Uses of XWikiAttachment in com.xpn.xwiki.plugin
Methods in com.xpn.xwiki.plugin that return XWikiAttachment Modifier and Type Method Description XWikiAttachment
XWikiDefaultPlugin. downloadAttachment(XWikiAttachment attachment, XWikiContext context)
Deprecated.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
XWikiPluginManager. downloadAttachment(XWikiAttachment attachment, XWikiContext context)
Methods in com.xpn.xwiki.plugin with parameters of type XWikiAttachment Modifier and Type Method Description XWikiAttachment
XWikiDefaultPlugin. downloadAttachment(XWikiAttachment attachment, XWikiContext context)
Deprecated.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
XWikiPluginManager. downloadAttachment(XWikiAttachment attachment, XWikiContext context)
-
Uses of XWikiAttachment in com.xpn.xwiki.store
Methods in com.xpn.xwiki.store that return XWikiAttachment Modifier and Type Method 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).Methods in com.xpn.xwiki.store with parameters of type XWikiAttachment Modifier and Type Method Description default boolean
XWikiAttachmentStoreInterface. attachmentContentExists(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
boolean
XWikiHibernateAttachmentStore. attachmentContentExists(XWikiAttachment attachment, XWikiContext inputxcontext, 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
XWikiAttachmentStoreInterface. deleteXWikiAttachment(XWikiAttachment attachment, boolean parentUpdate, XWikiContext context, boolean bTransaction)
void
XWikiAttachmentStoreInterface. deleteXWikiAttachment(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
void
XWikiHibernateAttachmentStore. deleteXWikiAttachment(XWikiAttachment attachment, boolean parentUpdate, XWikiContext inputxcontext, boolean bTransaction)
void
XWikiHibernateAttachmentStore. 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
XWikiAttachmentStoreInterface. loadAttachmentContent(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
void
XWikiHibernateAttachmentStore. loadAttachmentContent(XWikiAttachment attachment, XWikiContext inputxcontext, 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
XWikiAttachmentStoreInterface. saveAttachmentContent(XWikiAttachment attachment, boolean bParentUpdate, XWikiContext context, boolean bTransaction)
void
XWikiAttachmentStoreInterface. saveAttachmentContent(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
void
XWikiHibernateAttachmentStore. saveAttachmentContent(XWikiAttachment attachment, boolean parentUpdate, XWikiContext inputxcontext, boolean bTransaction)
void
XWikiHibernateAttachmentStore. 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.Method parameters in com.xpn.xwiki.store with type arguments of type XWikiAttachment Modifier and Type Method Description void
XWikiAttachmentStoreInterface. saveAttachmentsContent(List<XWikiAttachment> attachments, XWikiDocument doc, boolean bParentUpdate, XWikiContext context, boolean bTransaction)
void
XWikiHibernateAttachmentStore. saveAttachmentsContent(List<XWikiAttachment> attachments, XWikiDocument doc, boolean bParentUpdate, XWikiContext inputxcontext, boolean bTransaction)
Constructors in com.xpn.xwiki.store with parameters of type XWikiAttachment Constructor Description VoidAttachmentArchive(XWikiAttachment attachment)
Helper constructor. -
Uses of XWikiAttachment in com.xpn.xwiki.store.hibernate
Methods in com.xpn.xwiki.store.hibernate that return XWikiAttachment Modifier and Type Method Description XWikiAttachment
HibernateAttachmentRecycleBinStore. restoreFromRecycleBin(XWikiAttachment attachment, long index, XWikiContext inputxcontext, boolean bTransaction)
Methods in com.xpn.xwiki.store.hibernate with parameters of type XWikiAttachment Modifier and Type Method 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)
-
Uses of XWikiAttachment in com.xpn.xwiki.web
Methods in com.xpn.xwiki.web that return XWikiAttachment Modifier and Type Method Description XWikiAttachment
XWikiServletURLFactory. findAttachmentForDocRevision(XWikiDocument doc, String docRevision, String filename, XWikiContext context)
Methods in com.xpn.xwiki.web with parameters of type XWikiAttachment Modifier and Type Method Description protected void
DownloadAction. sendContent(XWikiAttachment attachment, XWikiRequest request, XWikiResponse response, XWikiContext context)
Send the attachment content in the response. -
Uses of XWikiAttachment in org.xwiki.store
Methods in org.xwiki.store that return XWikiAttachment Modifier and Type Method Description XWikiAttachment
TemporaryAttachmentSessionsManager. uploadAttachment(DocumentReference documentReference, javax.servlet.http.Part part)
XWikiAttachment
TemporaryAttachmentSessionsManager. uploadAttachment(DocumentReference documentReference, javax.servlet.http.Part part, String filename)
Methods in org.xwiki.store that return types with arguments of type XWikiAttachment Modifier and Type Method Description default Optional<XWikiAttachment>
TemporaryAttachmentSessionsManager. getUploadedAttachment(AttachmentReference attachmentReference)
Retrieve a specific temporary attachment related to the given document reference and matching the given filename.Optional<XWikiAttachment>
TemporaryAttachmentSessionsManager. getUploadedAttachment(DocumentReference documentReference, String filename)
Retrieve a specific temporary attachment related to the given document reference and matching the given filename.Collection<XWikiAttachment>
TemporaryAttachmentSessionsManager. getUploadedAttachments(DocumentReference documentReference)
Retrieve all temporary attachments related to the given document reference in the current user session.Methods in org.xwiki.store with parameters of type XWikiAttachment Modifier and Type Method Description void
TemporaryAttachmentSessionsManager. temporarilyAttach(XWikiAttachment attachment, DocumentReference documentReference)
Allow to temporarily attach the given instance ofXWikiAttachment
to the given document reference.
-