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: 0ff4dc62f1173e6fe97b100ea609c0edfdc5cfce $
    • 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