我通过 BlackBerry Webservices for Enterprise Administration API 找到了一种方法(详细信息在我的论坛帖子中),可以通过此 API 调用将策略重新发送到设备
public void sample() {
SetUsersResendITPolicyRequest request = new SetUsersResendITPolicyRequest();
request.setMetadata(metadata);
//"user" was returned from getUsers() API
request.getUsers().add(user);
SetUsersResendITPolicyResponse response = bws.setUsersResendITPolicy(request);
if (response.getReturnStatus().getCode().compareTo("SUCCESS") != 0) {
System.out.println("Error occurred: " + response.getReturnStatus().getMessage());
}
}
如此处详述。这适用于 Java 或 .net,因为两者都支持 API。