public class GoogleAppsService extends Object implements IWritableService
Modifier and Type | Field and Description |
---|---|
static String |
DATASET_NAME_ADMIN |
static String |
DATASET_NAME_AGREEDTOTERMS |
static String |
DATASET_NAME_CREATETS |
static String |
DATASET_NAME_GIVENNAME |
static String |
DATASET_NAME_ID |
static String |
DATASET_NAME_LOGIN |
static String |
DATASET_NAME_MAIL |
static String |
DATASET_NAME_MODIFYTS |
static String |
DATASET_NAME_NICKNAME |
static String |
DATASET_NAME_PASSWORD |
static String |
DATASET_NAME_PASSWORD_HASH |
static String |
DATASET_NAME_QUOTA |
static String |
DATASET_NAME_SURNAME |
static String |
DATASET_NAME_SUSPENDED |
static String |
DATASET_NAME_WHITELISTED |
Constructor and Description |
---|
GoogleAppsService(TaskType task) |
Modifier and Type | Method and Description |
---|---|
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry |
addAdminPrivilege(String username)
Set admin privilege for user.
|
boolean |
apply(LscModifications lm)
Apply lsc modifications.
|
com.google.gdata.data.appsforyourdomain.provisioning.NicknameEntry |
createNickname(String username,
String nickname)
Creates a nickname for the username.
|
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry |
createUser(String username,
String givenName,
String familyName,
String password)
Creates a new user with an email account.
|
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry |
createUser(String username,
String givenName,
String familyName,
String password,
Integer quotaLimitInMb)
Creates a new user with an email account.
|
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry |
createUser(String username,
String givenName,
String familyName,
String password,
String passwordHashFunction)
Creates a new user with an email account.
|
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry |
createUser(String username,
String givenName,
String familyName,
String password,
String passwordHashFunction,
Integer quotaLimitInMb)
Creates a new user with an email account.
|
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry |
createUser(String username,
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry entry) |
void |
deleteNickname(String nickname)
Deletes a nickname.
|
void |
deleteUser(String username)
Deletes a user.
|
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry |
forceUserToChangePassword(String username)
Require a user to change password at next login.
|
IBean |
getBean(String pivotName,
LscDatasets pivotAttributes,
boolean fromSameService)
The simple object getter according to its identifier.
|
Map<String,LscDatasets> |
getListPivots()
Returns a list of all the objects' identifiers.
|
List<String> |
getWriteDatasetIds() |
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry |
removeAdminPrivilege(String username)
Remove admin privilege for user.
|
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry |
restoreUser(String username)
Restores a user.
|
com.google.gdata.data.appsforyourdomain.provisioning.NicknameFeed |
retrieveAllNicknames()
Retrieves all nicknames in domain.
|
com.google.gdata.data.appsforyourdomain.provisioning.UserFeed |
retrieveAllUsers()
Retrieves all users in domain.
|
com.google.gdata.data.appsforyourdomain.provisioning.NicknameEntry |
retrieveNickname(String nickname)
Retrieves a nickname.
|
com.google.gdata.data.appsforyourdomain.provisioning.NicknameFeed |
retrieveNicknames(String username)
Retrieves all nicknames for the given username.
|
com.google.gdata.data.appsforyourdomain.provisioning.NicknameFeed |
retrievePageOfNicknames(String startNickname)
Retrieves one page (100) of nicknames in domain.
|
com.google.gdata.data.appsforyourdomain.provisioning.UserFeed |
retrievePageOfUsers(String startUsername)
Retrieves one page (100) of users in domain.
|
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry |
retrieveUser(String username)
Retrieves a user.
|
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry |
suspendUser(String username)
Suspends a user.
|
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry |
updateUser(String username,
com.google.gdata.data.appsforyourdomain.provisioning.UserEntry userEntry)
Updates a user.
|
public static final String DATASET_NAME_ID
public static final String DATASET_NAME_MAIL
public static final String DATASET_NAME_LOGIN
public static final String DATASET_NAME_PASSWORD
public static final String DATASET_NAME_PASSWORD_HASH
public static final String DATASET_NAME_SUSPENDED
public static final String DATASET_NAME_ADMIN
public static final String DATASET_NAME_AGREEDTOTERMS
public static final String DATASET_NAME_WHITELISTED
public static final String DATASET_NAME_GIVENNAME
public static final String DATASET_NAME_SURNAME
public static final String DATASET_NAME_QUOTA
public static final String DATASET_NAME_CREATETS
public static final String DATASET_NAME_MODIFYTS
public static final String DATASET_NAME_NICKNAME
public GoogleAppsService(TaskType task) throws LscServiceException
LscServiceException
public IBean getBean(String pivotName, LscDatasets pivotAttributes, boolean fromSameService) throws LscServiceException
IService
getBean
in interface IService
pivotName
- Name of the entry to be returned, which is the name returned by
IService.getListPivots()
(used for display only)pivotAttributes
- Map of attribute names and values, which is the data identifier in the
source such as returned by IService.getListPivots()
. It must identify a unique
entry in the source.fromSameService
- are the pivot attributes provided by the same serviceLscServiceException
public Map<String,LscDatasets> getListPivots() throws LscServiceException
IService
getListPivots
in interface IService
LscServiceException
public boolean apply(LscModifications lm) throws LscServiceException
IWritableService
apply
in interface IWritableService
lm
- Modifications to apply in a LscModifications
object.LscServiceException
- thrown if an error is encounteredpublic List<String> getWriteDatasetIds()
getWriteDatasetIds
in interface IWritableService
public com.google.gdata.data.appsforyourdomain.provisioning.UserEntry createUser(String username, String givenName, String familyName, String password) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The username of the new user.givenName
- The given name for the new user.familyName
- the family name for the new user.password
- The password for the new user.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.UserEntry createUser(String username, String givenName, String familyName, String password, Integer quotaLimitInMb) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The username of the new user.givenName
- The given name for the new user.familyName
- the family name for the new user.password
- The password for the new user.quotaLimitInMb
- User's quota limit in megabytes. This field is only used for domains with custom quota
limits.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.UserEntry createUser(String username, String givenName, String familyName, String password, String passwordHashFunction) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The username of the new user.givenName
- The given name for the new user.familyName
- the family name for the new user.password
- The password for the new user.passwordHashFunction
- The name of the hash function to hash the passwordcom.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.UserEntry createUser(String username, String givenName, String familyName, String password, String passwordHashFunction, Integer quotaLimitInMb) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The username of the new user.givenName
- The given name for the new user.familyName
- the family name for the new user.password
- The password for the new user.passwordHashFunction
- Specifies the hash format of the password parameterquotaLimitInMb
- User's quota limit in megabytes. This field is only used for domains with custom quota
limits.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.UserEntry createUser(String username, com.google.gdata.data.appsforyourdomain.provisioning.UserEntry entry) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, IOException, com.google.gdata.util.ServiceException
com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
IOException
com.google.gdata.util.ServiceException
public com.google.gdata.data.appsforyourdomain.provisioning.UserEntry retrieveUser(String username) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The user you wish to retrieve.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.UserFeed retrieveAllUsers() throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.UserFeed retrievePageOfUsers(String startUsername) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
startUsername
- The starting point of the page (optional).com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.UserEntry updateUser(String username, com.google.gdata.data.appsforyourdomain.provisioning.UserEntry userEntry) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The user to update.userEntry
- The updated UserEntry for the user.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public void deleteUser(String username) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The user you wish to delete.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.UserEntry suspendUser(String username) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The user you wish to suspend.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.UserEntry restoreUser(String username) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The user you wish to restore.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.UserEntry addAdminPrivilege(String username) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The user you wish to make an admin.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific error occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.UserEntry removeAdminPrivilege(String username) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The user you wish to remove admin privileges.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific error occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.UserEntry forceUserToChangePassword(String username) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The user who must change his or her password.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.NicknameEntry createNickname(String username, String nickname) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The user for which we want to create a nickname.nickname
- The nickname you wish to create.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.NicknameEntry retrieveNickname(String nickname) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
nickname
- The nickname you wish to retrieve.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.NicknameFeed retrieveNicknames(String username) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
username
- The user for which you want all nicknames.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.NicknameFeed retrievePageOfNicknames(String startNickname) throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
startNickname
- The starting point of the page (optional).com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public com.google.gdata.data.appsforyourdomain.provisioning.NicknameFeed retrieveAllNicknames() throws com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException, IOException
com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.public void deleteNickname(String nickname) throws IOException, com.google.gdata.data.appsforyourdomain.AppsForYourDomainException, com.google.gdata.util.ServiceException
nickname
- The nickname you wish to delete.com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
- If a Provisioning API specific occurs.com.google.gdata.util.ServiceException
- If a generic GData framework error occurs.IOException
- If an error occurs communicating with the GData service.Copyright © 2005-2024 LSC project. All Rights Reserved.