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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user