org.xwiki.rest
Class Utils

java.lang.Object
  extended by org.xwiki.rest.Utils

public class Utils
extends java.lang.Object

Version:
$Id: Utils.java 21281 2009-06-13 19:22:09Z sdumitriu $

Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String getObjectId(java.lang.String wikiName, java.lang.String spaceName, java.lang.String pageName, java.lang.String className, int objectNumber)
           
static java.lang.String getPageFullName(java.lang.String wikiName, java.lang.String spaceName, java.lang.String pageName)
           
static java.lang.String getPageId(java.lang.String wikiName, java.lang.String pageFullName)
           
static java.lang.String getPageId(java.lang.String wikiName, java.lang.String spaceName, java.lang.String pageName)
           
static com.xpn.xwiki.api.Document getParentDocument(com.xpn.xwiki.api.Document doc, com.xpn.xwiki.api.XWiki xwikiApi)
          Get parent document for a given document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getPageId

public static java.lang.String getPageId(java.lang.String wikiName,
                                         java.lang.String spaceName,
                                         java.lang.String pageName)

getPageFullName

public static java.lang.String getPageFullName(java.lang.String wikiName,
                                               java.lang.String spaceName,
                                               java.lang.String pageName)

getObjectId

public static java.lang.String getObjectId(java.lang.String wikiName,
                                           java.lang.String spaceName,
                                           java.lang.String pageName,
                                           java.lang.String className,
                                           int objectNumber)

getPageId

public static java.lang.String getPageId(java.lang.String wikiName,
                                         java.lang.String pageFullName)

getParentDocument

public static com.xpn.xwiki.api.Document getParentDocument(com.xpn.xwiki.api.Document doc,
                                                           com.xpn.xwiki.api.XWiki xwikiApi)
                                                    throws com.xpn.xwiki.XWikiException
Get parent document for a given document.

Parameters:
doc - document to get the parent from.
xwikiApi - the xwiki api.
Returns:
parent of the given document, null if none is specified.
Throws:
com.xpn.xwiki.XWikiException - if getting the parent document has failed.


Copyright © 2004-2009 XWiki. All Rights Reserved.