Class XWikiDeletedDocument


  • public class XWikiDeletedDocument
    extends AbstractSimpleClass
    Archive of deleted document, stored in XWikiRecycleBinStoreInterface. Immutable, because we don't need modify deleted document.
    Since:
    1.2M1
    Version:
    $Id: cfc107dd95ca1ababd110b9577f7322055e9fbb3 $
    • Constructor Detail

      • XWikiDeletedDocument

        protected XWikiDeletedDocument()
        Default constructor. Used only in hibernate.
      • XWikiDeletedDocument

        public XWikiDeletedDocument​(XWikiDocument doc,
                                    String deleter,
                                    Date deleteDate,
                                    XWikiContext context)
                             throws XWikiException
        Parameters:
        doc - - deleted document
        deleter - - user which delete document
        deleteDate - - date of delete action
        context - - used for environment
        Throws:
        XWikiException - if any error
      • XWikiDeletedDocument

        public XWikiDeletedDocument​(String fullName,
                                    Locale locale,
                                    String storeType,
                                    String deleter,
                                    Date deleteDate,
                                    XWikiDeletedDocumentContent content)
                             throws XWikiException
        Parameters:
        fullName - the local reference of the document
        locale - the locale of the document
        storeType - the way to store the document
        deleter - the user who delete document
        deleteDate - date of delete action
        content - the stored deleted document
        Throws:
        XWikiException - if any error
        Since:
        9.0RC1
      • XWikiDeletedDocument

        public XWikiDeletedDocument​(String fullName,
                                    Locale locale,
                                    String storeType,
                                    String deleter,
                                    Date deleteDate,
                                    XWikiDeletedDocumentContent content,
                                    String batchId)
                             throws XWikiException
        Parameters:
        fullName - the local reference of the document
        locale - the locale of the document
        storeType - the way to store the document
        deleter - the user who delete document
        deleteDate - date of delete action
        content - the stored deleted document
        batchId - the id of the batch deletion
        Throws:
        XWikiException - if any error
        Since:
        9.4RC1