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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Mailer.UserProperty.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.UserProperty
user
-
-
Constructor Summary
Constructors Constructor Description UserProperty(String emailAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddress()
String
getConfiguredAddress()
String
getEmailAddress()
String
getExplicitlyConfiguredAddress()
Gets an email address, which have been explicitly configured on the user's configuration page.boolean
hasExplicitlyConfiguredAddress()
Has the user configured a value explicitly (true), or is it inferred (false)?-
Methods inherited from class hudson.model.UserProperty
all, getDescriptor, reconfigure, setUser
-
-
-
-
Constructor Detail
-
UserProperty
@DataBoundConstructor public UserProperty(String emailAddress)
-
-
Method Detail
-
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 usehasExplicitlyConfiguredAddress()
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.
-
-