Liferay 6.2-ce-ga5

com.liferay.portal.googleapps
Class GHelperUtil

java.lang.Object
  extended by com.liferay.portal.googleapps.GHelperUtil

public class GHelperUtil
extends Object


Field Summary
static String APPS_URL
           
 
Constructor Summary
GHelperUtil()
           
 
Method Summary
static Element addAppsProperty(Element parentElement, String name, String value)
           
static Element addAtomCategory(Element parentElement, String type)
           
static Element addAtomEntry(Document document)
           
static Namespace getAppsNamespace()
           
static QName getAppsQName(String localName)
           
static Namespace getAtomNamespace()
           
static QName getAtomQName(String localName)
           
static Document getDocument(GAuthenticator gAuthenticator, String url)
           
static String getErrorMessage(Document document)
           
static boolean hasError(Document document)
           
static void submitAdd(GAuthenticator gAuthenticator, String url, Document document)
           
static void submitDelete(GAuthenticator gAuthenticator, String url)
           
static void submitUpdate(GAuthenticator gAuthenticator, String url, Document document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPS_URL

public static final String APPS_URL
See Also:
Constant Field Values
Constructor Detail

GHelperUtil

public GHelperUtil()
Method Detail

addAppsProperty

public static Element addAppsProperty(Element parentElement,
                                      String name,
                                      String value)

addAtomCategory

public static Element addAtomCategory(Element parentElement,
                                      String type)

addAtomEntry

public static Element addAtomEntry(Document document)

getAppsNamespace

public static Namespace getAppsNamespace()

getAppsQName

public static QName getAppsQName(String localName)

getAtomNamespace

public static Namespace getAtomNamespace()

getAtomQName

public static QName getAtomQName(String localName)

getDocument

public static Document getDocument(GAuthenticator gAuthenticator,
                                   String url)
                            throws GoogleAppsException
Throws:
GoogleAppsException

getErrorMessage

public static String getErrorMessage(Document document)

hasError

public static boolean hasError(Document document)

submitAdd

public static void submitAdd(GAuthenticator gAuthenticator,
                             String url,
                             Document document)
                      throws GoogleAppsException
Throws:
GoogleAppsException

submitDelete

public static void submitDelete(GAuthenticator gAuthenticator,
                                String url)
                         throws GoogleAppsException
Throws:
GoogleAppsException

submitUpdate

public static void submitUpdate(GAuthenticator gAuthenticator,
                                String url,
                                Document document)
                         throws GoogleAppsException
Throws:
GoogleAppsException

Liferay 6.2-ce-ga5