public class XWikiDeletedDocument extends AbstractSimpleClass
XWikiRecycleBinStoreInterface
Immutable, because
we don't need modify deleted document.Modifier | Constructor and Description |
---|---|
protected |
XWikiDeletedDocument()
Default constructor.
|
|
XWikiDeletedDocument(XWikiDocument doc,
String deleter,
Date deleteDate,
XWikiContext context) |
Modifier and Type | Method and Description |
---|---|
Date |
getDate() |
String |
getDeleter() |
String |
getFullName() |
long |
getId() |
String |
getLanguage()
Deprecated.
since 8.0M1, use
getLocale() instead |
Locale |
getLocale() |
String |
getXml() |
XWikiDocument |
restoreDocument(XWikiDocument doc,
XWikiContext context) |
protected void |
setDate(Date date) |
protected void |
setDeleter(String deleter) |
protected void |
setDocument(XWikiDocument doc,
XWikiContext context)
export
XWikiDocument to XWikiDeletedDocument . |
protected void |
setFullName(String docFullName) |
protected void |
setId(long id) |
protected void |
setLanguage(String locale)
Deprecated.
since 8.0M1
|
protected void |
setXml(String xml) |
equals, hashCode, toString
protected XWikiDeletedDocument()
public XWikiDeletedDocument(XWikiDocument doc, String deleter, Date deleteDate, XWikiContext context) throws XWikiException
doc
- - deleted documentdeleter
- - user which delete documentdeleteDate
- - date of delete actioncontext
- - used for environmentXWikiException
- if any errorpublic long getId()
protected void setId(long id)
id
- - the synthetic id to set. used only in hibernate.public String getFullName()
XWikiDocument.getFullName()
protected void setFullName(String docFullName)
docFullName
- - XWikiDocument.getFullName()
to set@Deprecated public String getLanguage()
getLocale()
insteadXWikiDocument.getLanguage()
public Locale getLocale()
XWikiDocument.getLocale()
@Deprecated protected void setLanguage(String locale)
locale
- - XWikiDocument.getLanguage()
to setpublic Date getDate()
protected void setDate(Date date)
date
- - the date of delete action to setpublic String getDeleter()
protected void setDeleter(String deleter)
deleter
- - the user which has removed the document to setpublic String getXml()
XWikiDocument
protected void setXml(String xml)
xml
- - xml serialization of XWikiDocument
protected void setDocument(XWikiDocument doc, XWikiContext context) throws XWikiException
XWikiDocument
to XWikiDeletedDocument
.doc
- - deleted documentcontext
- - used in XWikiDocument.toXML(XWikiContext)
XWikiException
- in error in XWikiDocument.toXML(XWikiContext)
public XWikiDocument restoreDocument(XWikiDocument doc, XWikiContext context) throws XWikiException
doc
- - restore to this document, if not nullcontext
- - may be useful in futureXWikiException
- if error in XWikiDocument.fromXML(String)
Copyright © 2004–2016 XWiki. All rights reserved.