public class XWikiHibernateDeletedDocumentContent extends Object implements XWikiDeletedDocumentContent
Constructor and Description |
---|
XWikiHibernateDeletedDocumentContent(String xml) |
XWikiHibernateDeletedDocumentContent(XWikiDocument document) |
Modifier and Type | Method and Description |
---|---|
String |
getContentAsString() |
XWikiDocument |
getXWikiDocument(XWikiDocument document) |
public XWikiHibernateDeletedDocumentContent(XWikiDocument document) throws XWikiException
document
- the deleted documentXWikiException
- when failing to serialize documentpublic XWikiHibernateDeletedDocumentContent(String xml) throws IOException
xml
- the serialized document as XMLIOException
- when failing to store xmlpublic String getContentAsString() throws IOException
getContentAsString
in interface XWikiDeletedDocumentContent
IOException
- when failing to get the String
contentpublic XWikiDocument getXWikiDocument(XWikiDocument document) throws XWikiException, IOException
getXWikiDocument
in interface XWikiDeletedDocumentContent
document
- the document to write to or null to create a new oneXWikiException
- if error in XWikiDocument.fromXML(String)
IOException
- when failing to read the contentCopyright © 2004–2017 XWiki. All rights reserved.