Package dw.xmlrpc

Class PageVersion


  • public class PageVersion
    extends java.lang.Object
    Describe a version of a page. Dokuwiki may not always return every field (because the information is already missing on Dokuwiki's side or because it isn't meant to give such field for a given query). Hence it's better to always check if a given field isn't null before using it.
    • Constructor Summary

      Constructors 
      Constructor Description
      PageVersion​(java.lang.String pageId, java.lang.String author, java.lang.String ip, java.lang.String type, java.lang.String summary, java.util.Date modified, java.lang.Integer version)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String author()
      Author of the revision
      java.lang.String ip()
      Ip who made this revision
      java.util.Date lastModified()
      Date of the revision
      java.util.Date modified()
      Alias of lastModifie Provided because it's called this way by the xmlrpc query
      java.lang.String pageId()
      Page id (namespace + name)
      java.lang.String summary()
      Summary of the revision
      java.lang.String toString()  
      java.lang.String type()
      Type of revision (creation, edition, ...)
      java.lang.String user()
      Alias of author() Provided because this is how this fields is named by the xmlrpc query
      java.lang.Integer version()
      Version of the revision, as a timestamp Should correspond to modified()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PageVersion

        public PageVersion​(java.lang.String pageId,
                           java.lang.String author,
                           java.lang.String ip,
                           java.lang.String type,
                           java.lang.String summary,
                           java.util.Date modified,
                           java.lang.Integer version)
    • Method Detail

      • pageId

        public java.lang.String pageId()
        Page id (namespace + name)
      • author

        public java.lang.String author()
        Author of the revision
      • user

        public java.lang.String user()
        Alias of author() Provided because this is how this fields is named by the xmlrpc query
      • ip

        public java.lang.String ip()
        Ip who made this revision
      • type

        public java.lang.String type()
        Type of revision (creation, edition, ...)
      • summary

        public java.lang.String summary()
        Summary of the revision
      • lastModified

        public java.util.Date lastModified()
        Date of the revision
      • modified

        public java.util.Date modified()
        Alias of lastModifie Provided because it's called this way by the xmlrpc query
      • version

        public java.lang.Integer version()
        Version of the revision, as a timestamp Should correspond to modified()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object