com.liferay.portal.googleapps
Class GUserManagerImpl

java.lang.Object
  extended by com.liferay.portal.googleapps.GBaseManagerImpl
      extended by com.liferay.portal.googleapps.GUserManagerImpl
All Implemented Interfaces:
com.liferay.portal.googleapps.GUserManager

public class GUserManagerImpl
extends GBaseManagerImpl
implements com.liferay.portal.googleapps.GUserManager

View Source

Author:
Brian Wing Shun Chan

Field Summary
protected  java.lang.String userURL
           
 
Fields inherited from class com.liferay.portal.googleapps.GBaseManagerImpl
APPS_URL, googleApps
 
Constructor Summary
GUserManagerImpl(GoogleApps googleApps)
           
 
Method Summary
 void addGUser(long userId, java.lang.String password, java.lang.String firstName, java.lang.String lastName)
           
 void deleteGUser(long userId)
           
protected  com.liferay.portal.googleapps.GUser getGUser(com.liferay.portal.kernel.xml.Element atomEntryElement)
           
 com.liferay.portal.googleapps.GUser getGUser(long userId)
           
 com.liferay.portal.googleapps.GUser getGUser(java.lang.String emailAddress)
           
 java.util.List<com.liferay.portal.googleapps.GUser> getGUsers()
           
protected  void getGUsers(java.util.List<com.liferay.portal.googleapps.GUser> gUsers, java.lang.String url)
           
protected  java.lang.String getUserURL(long userId)
           
 void updateActive(long userId, boolean active)
           
 void updatePassword(long userId, java.lang.String password)
           
 
Methods inherited from class com.liferay.portal.googleapps.GBaseManagerImpl
addAppsProperty, addAtomCategory, addAtomEntry, getAppsNamespace, getAppsQName, getAtomNamespace, getAtomQName, getCompanyId, getDocument, getErrorMessage, hasError, submitAdd, submitDelete, submitUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userURL

protected java.lang.String userURL
Constructor Detail

GUserManagerImpl

public GUserManagerImpl(GoogleApps googleApps)
Method Detail

addGUser

public void addGUser(long userId,
                     java.lang.String password,
                     java.lang.String firstName,
                     java.lang.String lastName)
              throws com.liferay.portal.googleapps.GoogleAppsException
Specified by:
addGUser in interface com.liferay.portal.googleapps.GUserManager
Throws:
com.liferay.portal.googleapps.GoogleAppsException

deleteGUser

public void deleteGUser(long userId)
                 throws com.liferay.portal.googleapps.GoogleAppsException
Specified by:
deleteGUser in interface com.liferay.portal.googleapps.GUserManager
Throws:
com.liferay.portal.googleapps.GoogleAppsException

getGUser

public com.liferay.portal.googleapps.GUser getGUser(long userId)
                                             throws com.liferay.portal.googleapps.GoogleAppsException
Specified by:
getGUser in interface com.liferay.portal.googleapps.GUserManager
Throws:
com.liferay.portal.googleapps.GoogleAppsException

getGUser

public com.liferay.portal.googleapps.GUser getGUser(java.lang.String emailAddress)
                                             throws com.liferay.portal.googleapps.GoogleAppsException
Specified by:
getGUser in interface com.liferay.portal.googleapps.GUserManager
Throws:
com.liferay.portal.googleapps.GoogleAppsException

getGUsers

public java.util.List<com.liferay.portal.googleapps.GUser> getGUsers()
                                                              throws com.liferay.portal.googleapps.GoogleAppsException
Specified by:
getGUsers in interface com.liferay.portal.googleapps.GUserManager
Throws:
com.liferay.portal.googleapps.GoogleAppsException

updateActive

public void updateActive(long userId,
                         boolean active)
                  throws com.liferay.portal.googleapps.GoogleAppsException
Specified by:
updateActive in interface com.liferay.portal.googleapps.GUserManager
Throws:
com.liferay.portal.googleapps.GoogleAppsException

updatePassword

public void updatePassword(long userId,
                           java.lang.String password)
                    throws com.liferay.portal.googleapps.GoogleAppsException
Specified by:
updatePassword in interface com.liferay.portal.googleapps.GUserManager
Throws:
com.liferay.portal.googleapps.GoogleAppsException

getGUser

protected com.liferay.portal.googleapps.GUser getGUser(com.liferay.portal.kernel.xml.Element atomEntryElement)

getGUsers

protected void getGUsers(java.util.List<com.liferay.portal.googleapps.GUser> gUsers,
                         java.lang.String url)
                  throws com.liferay.portal.googleapps.GoogleAppsException
Throws:
com.liferay.portal.googleapps.GoogleAppsException

getUserURL

protected java.lang.String getUserURL(long userId)