com.xpn.xwiki.doc
Class XWikiDocument.XWikiAttachmentToRemove

java.lang.Object
  extended by com.xpn.xwiki.doc.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: d7af364513a4c10fdfe2c869eb393ee6f72d4e87 $

Constructor Summary
XWikiDocument.XWikiAttachmentToRemove(XWikiAttachment attachment, boolean toRecycleBin)
           
 
Method Summary
 boolean equals(Object obj)
           
 XWikiAttachment getAttachment()
           
 int hashCode()
           
 boolean isToRecycleBin()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XWikiDocument.XWikiAttachmentToRemove

public XWikiDocument.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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004–2014 XWiki. All rights reserved.