Package hudson.tasks

Class Mailer.UserProperty

java.lang.Object
hudson.model.UserProperty
hudson.tasks.Mailer.UserProperty
All Implemented Interfaces:
ExtensionPoint, Describable<UserProperty>, ReconfigurableDescribable<UserProperty>
Enclosing class:
Mailer

public static class Mailer.UserProperty extends UserProperty
Per user property that is e-mail address.
  • Constructor Details

    • UserProperty

      @DataBoundConstructor public UserProperty(String emailAddress)
  • Method Details

    • getAddress

      @Exported public String getAddress()
    • getConfiguredAddress

      public String getConfiguredAddress()
    • getEmailAddress

      @CheckForNull public String getEmailAddress()
    • getExplicitlyConfiguredAddress

      @CheckForNull public String getExplicitlyConfiguredAddress()
      Gets an email address, which have been explicitly configured on the user's configuration page. This method also truncates spaces. It is highly recommended to use hasExplicitlyConfiguredAddress() method to check the option's existence.
      Returns:
      A trimmed email address. It can be null
      Since:
      TODO
    • hasExplicitlyConfiguredAddress

      public boolean hasExplicitlyConfiguredAddress()
      Has the user configured a value explicitly (true), or is it inferred (false)?
      Returns:
      true if there is an email address available.