Class XWikiDocument.XWikiAttachmentToRemove

  • Enclosing class:
    XWikiDocument

    public static class XWikiDocument.XWikiAttachmentToRemove
    extends Object
    An attachment waiting to be deleted at next document save.
    Since:
    5.2M1
    Version:
    $Id: 5e54ebd4578f367596ad0543e3819a590d58e92e $
    • Constructor Detail

      • XWikiAttachmentToRemove

        public XWikiAttachmentToRemove​(XWikiAttachment attachment,
                                       boolean toRecycleBin)
        Parameters:
        attachment - the attachment to delete
        toRecycleBin - true of the attachment should be moved to the recycle bin
    • Method Detail

      • getAttachment

        public XWikiAttachment getAttachment()
        Returns:
        the attachment to delete
      • isToRecycleBin

        public boolean isToRecycleBin()
        Returns:
        true of the attachment should be moved to the recycle bin
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object