|
BlackBerry Administration API v5.0.3.29 |
||||||||
| PREV CLASS NEXT CLASS | dispatcherws.BAADispatcher NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface BAADispatcher
Web service that contains APIs for all dispatcher related activities.
| Method Summary | |
|---|---|
ClearActivationPasswordResult |
clearActivationPassword(int userId)
Clears an enterprise activation password for a user. |
GenerateActivationPasswordResult |
generateActivationPassword(int userId,
java.lang.String locale,
BASEnumBaseDTO messageTypeEnum)
Generates an enterprise activation password for a user and notifies the user. |
GetDispatcherNamesResult |
getDispatcherNames(java.lang.String locale)
Gets a list of Dispatchers in the BlackBerry domain |
SetActivationPasswordResult |
setActivationPassword(int userId,
java.lang.String password,
int expiryHours)
Sets an enterprise activation password for a user. |
SetExternalServicesStateForUserResult |
setExternalServicesStateForUser(int userId,
boolean enableExternalServices)
Specifies whether to turn on or off external services for a user. |
java.lang.String |
test(java.lang.String input)
|
| Method Detail |
|---|
GetDispatcherNamesResult getDispatcherNames(java.lang.String locale)
locale - the locale of the returned Dispatcher names
Java CXF
String locale="en_US";
GetDispatcherNamesResult result= dispatcherWebService.getDispatcherNames(locale);
if (result.getGetDispatcherNamesReturnStatus().getCode() != GetDispatcherNamesReturnStatusEnumType.SUCCESS) {
System.out.println("Error occured: " + result.getGetDispatcherNamesReturnStatus().getMessage());
}
for (DispatcherHostName itr: result.getDispatcherHostNames()) {
System.out.println("Name: " + itr.getName());
System.out.println("Id: " + itr.getServiceInstanceId());
}
ClearActivationPasswordResult clearActivationPassword(int userId)
userId - the ID of the user to clear enterprise activation passwordJava CXF
ClearActivationPasswordResult result=dispatcherWebService.clearActivationPassword(5);
if (result.getClearActivationPasswordReturnStatus().getCode() != ClearActivationPasswordReturnStatusEnumType.SUCCESS) {
System.out.println("Error occured: " + result.getClearActivationPasswordReturnStatus().getMessage());
return;
}
SetActivationPasswordResult setActivationPassword(int userId,
java.lang.String password,
int expiryHours)
userId - the ID of the user to set enterprise activation password onpassword - the password to setexpiryHours - the number hours before the password expiresJava CXF
String password="password1";
int expiryHours=48;
SetActivationPasswordResult result=dispatcherWebService.setActivationPassword(userId,password,expiryHours);
if (result.getSetActivationPasswordReturnStatus().getCode() != SetActivationPasswordReturnStatusEnumType.SUCCESS) {
System.out.println("Error occured: " + result.getSetActivationPasswordReturnStatus().getMessage());
return;
}
java.lang.String test(java.lang.String input)
GenerateActivationPasswordResult generateActivationPassword(int userId,
java.lang.String locale,
BASEnumBaseDTO messageTypeEnum)
userId - the ID of the user to set enterprise activation password onlocale - the locale of the generated emailmessageTypeEnum - Deprecated. Parameter no longer usedJava CXF
String locale="en_US";
//notify user the activation password by sending an email
EmailCommonMessageTypeEnum messageTypeEnum=new EmailCommonMessageTypeEnum();
messageTypeEnum.setEnum(EmailCommonMessageTypeEnumType.EMAIL);
GenerateActivationPasswordResult result= dispatcherWebService.generateActivationPassword(userId,locale,messageTypeEnum);
if (result.getGenerateActivationPasswordReturnStatus().getCode() != GenerateActivationPasswordReturnStatusEnumType.SUCCESS) {
System.out.println("Error occured: " + result.getGenerateActivationPasswordReturnStatus().getMessage());
}
SetExternalServicesStateForUserResult setExternalServicesStateForUser(int userId,
boolean enableExternalServices)
userId - the Id of the user to set external service state onenableExternalServices - if true, the state is turned on. otherwise, the state is turned off.Java CXF
boolean enableExternalServices=false;
SetExternalServicesStateForUserResult result= dispatcherWebService.setExternalServicesStateForUser(userId, enableExternalServices);
if (result.getSetExternalServicesStateForUserReturnStatus().getCode() != SetExternalServicesStateForUserReturnStatusEnumType.SUCCESS) {
System.out.println("Error occured: " + result.getSetExternalServicesStateForUserReturnStatus().getMessage());
}
|
BlackBerry Administration API v5.0.3.29 |
||||||||
| PREV CLASS NEXT CLASS | dispatcherws.BAADispatcher NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||