public void setAccountInformationModificationPolicy(String policy) throws DorianInternalException { if (policy.equals(AccountInformationModificationPolicy.USER.value()) || policy.equals(AccountInformationModificationPolicy.ADMIN.value())) { this.accountInformationModificationPolicy = AccountInformationModificationPolicy.fromValue(policy); } else { DorianInternalException f = FaultHelper.createFaultException( DorianInternalException.class, "The account information modification policy " + policy + ", is invalid. Please specify a valid policy (" + AccountInformationModificationPolicy.USER.value() + ", " + AccountInformationModificationPolicy.ADMIN.value() + ")."); throw f; } }
public String getAccountInformationModificationPolicy() { if (this.accountInformationModificationPolicy == null) { this.accountInformationModificationPolicy = AccountInformationModificationPolicy.ADMIN; } return accountInformationModificationPolicy.value(); }