public class DeletedDocument extends Api
Constructor and Description |
---|
DeletedDocument(XWikiDeletedDocument deletedDoc,
XWikiContext context)
Simple constructor, initializes a new API object with the current
context and
the specified protected deleted document object. |
Modifier and Type | Method and Description |
---|---|
boolean |
canDelete() |
boolean |
canUndelete()
Check if the current user has the right to restore the document.
|
Date |
getDate() |
XWikiDeletedDocument |
getDeletedDocument() |
String |
getDeleter() |
Document |
getDocument() |
String |
getFullName() |
long |
getId() |
String |
getLanguage() |
convert, convert, convert, convertAttachments, getXWikiContext, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
public DeletedDocument(XWikiDeletedDocument deletedDoc, XWikiContext context)
context
and
the specified protected deleted document
object.deletedDoc
- the internal object wrapped by this APIcontext
- the current request contextpublic String getFullName()
public String getLanguage()
public Date getDate()
public String getDeleter()
public long getId()
public boolean canUndelete()
true
if the current user can restore this document, false
otherwisepublic boolean canDelete()
true
if the current user can permanently delete this document, false
otherwise@Programming public XWikiDeletedDocument getDeletedDocument()
null
.public Document getDocument()
null
otherwiseCopyright © 2004–2014 XWiki. All rights reserved.