Class Account.EditableAccount

java.lang.Object
org.shredzone.acme4j.Account.EditableAccount
Enclosing class:
Account

public class Account.EditableAccount extends Object
Provides editable properties of an Account.
  • Method Details

    • getContacts

      public List<URI> getContacts()
      Returns the list of all contact URIs for modification. Use the List methods to modify the contact list.

      The modified list is not validated. If you change entries, you have to make sure that they are valid according to the RFC. It is recommended to use the addContact() methods below to add new contacts to the list.

    • addContact

      Adds a new Contact to the account.
      Parameters:
      contact - Contact URI
      Returns:
      itself
    • addContact

      Adds a new Contact to the account.

      This is a convenience call for addContact(URI).

      Parameters:
      contact - Contact URI as string
      Returns:
      itself
    • addEmail

      Adds a new Contact email to the account.

      This is a convenience call for addContact(String) that doesn't require to prepend the email address with the "mailto" scheme.

      Parameters:
      email - Contact email without "mailto" scheme (e.g. test@gmail.com)
      Returns:
      itself
    • commit

      public void commit() throws AcmeException
      Commits the changes and updates the account.
      Throws:
      AcmeException