Interface EmailProfileManager
- All Superinterfaces:
ExtensionPointManager
Manages the configured
EmailProfile
s.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProfileType
(EmailProfileType profileType) Add a newEmailProfileType
to the systemgetExtensionPoint
(String typeId) List<? extends EmailProfileType>
Optional<? extends EmailProfile.Managed>
getProfile
(String name) Get the managed email profile associated with a nameCollection<? extends EmailProfile.Managed>
void
Remove an existingEmailProfileType
from the system
-
Method Details
-
getExtensionPoint
- Specified by:
getExtensionPoint
in interfaceExtensionPointManager
- Returns:
- the
ExtensionPointType
identified bytypeId
, ornull
if none exists for that name. - See Also:
-
getExtensionPoints
List<? extends EmailProfileType> getExtensionPoints()- Specified by:
getExtensionPoints
in interfaceExtensionPointManager
- Returns:
- all
ExtensionPointType
s managed by thisExtensionPointManager
.
-
addProfileType
Add a newEmailProfileType
to the system- Parameters:
profileType
- theEmailProfileType
to add- Throws:
IllegalArgumentException
- if anEmailProfileType
already exists with the same IDException
- if there was any other unexpected problem adding the newEmailProfileType
-
removeProfileType
Remove an existingEmailProfileType
from the system- Parameters:
id
- the ID of an existingEmailProfileType
to remove- Throws:
IllegalArgumentException
- if anEmailProfileType
does not exist with the given ID, or if the ID is associated with a built-in EmailProfileType
-
getProfiles
Collection<? extends EmailProfile.Managed> getProfiles()- Returns:
- all the email profiles managed by this manager
-
getProfile
Get the managed email profile associated with a name- Parameters:
name
- the name of the email profile to get- Returns:
- an
Optional
containing the managed email profile associated with the given name, or an empty Optional if no email profile is managed under the given name
-