Use REST endpoints in set-account command to add/delete email addresses

This also fixes the bug in the set-account SSH command that it was not
checking whether the realm allows to edit the email addresses.

Change-Id: I8f6cb125e67f7d1046d5bfc1d1aa1439ebf54f08
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2013-06-04 10:59:21 +02:00
parent 9f9ec65cf4
commit 5f84321719
4 changed files with 61 additions and 51 deletions

View File

@@ -41,14 +41,14 @@ import org.slf4j.LoggerFactory;
public class CreateEmail implements RestModifyView<AccountResource, Input> {
private final Logger log = LoggerFactory.getLogger(getClass());
static class Input {
public static class Input {
@DefaultInput
String email;
boolean preferred;
boolean noConfirmation;
public String email;
public boolean preferred;
public boolean noConfirmation;
}
static interface Factory {
public static interface Factory {
CreateEmail create(String email);
}