Interface EmailProfileManager
- All Superinterfaces:
ExtensionPointManager
Manages the configured
EmailProfiles.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddProfileType(EmailProfileType profileType) Add a newEmailProfileTypeto 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>voidRemove an existingEmailProfileTypefrom the system
-
Method Details
-
getExtensionPoint
- Specified by:
getExtensionPointin interfaceExtensionPointManager- Returns:
- the
ExtensionPointTypeidentified bytypeId, ornullif none exists for that name. - See Also:
-
getExtensionPoints
List<? extends EmailProfileType> getExtensionPoints()- Specified by:
getExtensionPointsin interfaceExtensionPointManager- Returns:
- all
ExtensionPointTypes managed by thisExtensionPointManager.
-
addProfileType
Add a newEmailProfileTypeto the system- Parameters:
profileType- theEmailProfileTypeto add- Throws:
IllegalArgumentException- if anEmailProfileTypealready exists with the same IDException- if there was any other unexpected problem adding the newEmailProfileType
-
removeProfileType
Remove an existingEmailProfileTypefrom the system- Parameters:
id- the ID of an existingEmailProfileTypeto remove- Throws:
IllegalArgumentException- if anEmailProfileTypedoes 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
Optionalcontaining the managed email profile associated with the given name, or an empty Optional if no email profile is managed under the given name
-