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.
|
String |
getBatchId() |
Date |
getDate() |
XWikiDeletedDocument |
getDeletedDocument() |
String |
getDeleter() |
DocumentReference |
getDeleterReference() |
Document |
getDocument() |
DocumentReference |
getDocumentReference() |
String |
getFullName() |
long |
getId() |
String |
getLanguage()
Deprecated.
since 8.0M1, use
getLocale() instead |
Locale |
getLocale() |
convert, convert, convert, convertAttachments, getAuthorizationManager, getContextualAuthorizationManager, getXWikiContext, hasAccess, 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()
@Deprecated public String getLanguage()
getLocale()
insteadpublic Locale getLocale()
public Date getDate()
public String getDeleter()
public DocumentReference getDeleterReference()
public long getId()
public String getBatchId()
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
otherwisepublic DocumentReference getDocumentReference()
Copyright © 2004–2022 XWiki. All rights reserved.