public class XWikiDeletedDocument extends AbstractSimpleClass
XWikiRecycleBinStoreInterface. Immutable, because
we don't need modify deleted document.| Modifier | Constructor and Description |
|---|---|
protected |
XWikiDeletedDocument()
Default constructor.
|
|
XWikiDeletedDocument(String fullName,
Locale locale,
String storeType,
String deleter,
Date deleteDate,
XWikiDeletedDocumentContent content) |
|
XWikiDeletedDocument(String fullName,
Locale locale,
String storeType,
String deleter,
Date deleteDate,
XWikiDeletedDocumentContent content,
String batchId) |
|
XWikiDeletedDocument(XWikiDocument doc,
String deleter,
Date deleteDate,
XWikiContext context) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBatchId() |
Date |
getDate() |
String |
getDeleter() |
DocumentReference |
getDeleterReference() |
DocumentReference |
getDocumentReference() |
String |
getFullName() |
long |
getId() |
String |
getLanguage()
Deprecated.
since 8.0M1, use
getLocale() instead |
Locale |
getLocale() |
String |
getXml()
Only used in Hibernate.
|
String |
getXmlStore() |
XWikiDocument |
restoreDocument(XWikiContext context) |
XWikiDocument |
restoreDocument(XWikiDocument doc,
XWikiContext context) |
protected void |
setBatchId(String batchId) |
protected void |
setDate(Date date) |
protected void |
setDeleter(String deleter) |
protected void |
setDocument(XWikiDocument doc,
XWikiContext context)
Deprecated.
since 9.0RC1, use
instead |
protected void |
setFullName(String docFullName) |
protected void |
setId(long id) |
protected void |
setLanguage(String locale)
Deprecated.
since 8.0M1
|
protected void |
setXml(String xml)
Only used in Hibernate.
|
protected void |
setXmlStore(String xmlStore) |
equals, hashCode, toStringprotected 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 XWikiDeletedDocument(String fullName, Locale locale, String storeType, String deleter, Date deleteDate, XWikiDeletedDocumentContent content) throws XWikiException
fullName - the local reference of the documentlocale - the locale of the documentstoreType - the way to store the documentdeleter - the user who delete documentdeleteDate - date of delete actioncontent - the stored deleted documentXWikiException - if any errorpublic XWikiDeletedDocument(String fullName, Locale locale, String storeType, String deleter, Date deleteDate, XWikiDeletedDocumentContent content, String batchId) throws XWikiException
fullName - the local reference of the documentlocale - the locale of the documentstoreType - the way to store the documentdeleter - the user who delete documentdeleteDate - date of delete actioncontent - the stored deleted documentbatchId - the id of the batch deletionXWikiException - 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 setpublic DocumentReference getDocumentReference()
@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()
public DocumentReference getDeleterReference()
protected void setDeleter(String deleter)
deleter - - the user which has removed the document to setpublic String getXmlStore()
protected void setXmlStore(String xmlStore)
xmlStore - the type of store (supported values are null/"hibernate" and "file")public String getXml()
XWikiDocumentprotected void setXml(String xml)
xml - - xml serialization of XWikiDocument@Deprecated protected void setDocument(XWikiDocument doc, XWikiContext context) throws XWikiException
insteadXWikiDocument to XWikiDeletedDocument.doc - - the deleted documentcontext - - used in XWikiDocument.toXML(XWikiContext)XWikiException - in error in XWikiDocument.toXML(XWikiContext)public XWikiDocument restoreDocument(XWikiDocument doc, XWikiContext context) throws XWikiException
doc - optional object where to put the document data, if not nullcontext - the current contextXWikiException - if error in XWikiDocument.fromXML(String)public XWikiDocument restoreDocument(XWikiContext context) throws XWikiException
context - the current contextXWikiException - if error in XWikiDocument.fromXML(String)protected void setBatchId(String batchId)
batchId - batch operation ID to setpublic String getBatchId()
Copyright © 2004–2021 XWiki. All rights reserved.