Interface EmailProfileManager
-
- All Superinterfaces:
ExtensionPointManager
public interface EmailProfileManager extends ExtensionPointManager
Manages the configuredEmailProfiles.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddProfileType(EmailProfileType profileType)Add a newEmailProfileTypeto the systemEmailProfileTypegetExtensionPoint(java.lang.String typeId)java.util.List<? extends EmailProfileType>getExtensionPoints()java.util.Optional<? extends EmailProfile.Managed>getProfile(java.lang.String name)Get the managed email profile associated with a namejava.util.Collection<? extends EmailProfile.Managed>getProfiles()voidremoveProfileType(java.lang.String id)Remove an existingEmailProfileTypefrom the system
-
-
-
Method Detail
-
getExtensionPoint
@Nullable EmailProfileType getExtensionPoint(java.lang.String typeId)
- Specified by:
getExtensionPointin interfaceExtensionPointManager- Returns:
- the
ExtensionPointTypeidentified bytypeId, ornullif none exists for that name. - See Also:
ExtensionPointType.getTypeId()
-
getExtensionPoints
java.util.List<? extends EmailProfileType> getExtensionPoints()
- Specified by:
getExtensionPointsin interfaceExtensionPointManager- Returns:
- all
ExtensionPointTypes managed by thisExtensionPointManager.
-
addProfileType
void addProfileType(EmailProfileType profileType) throws java.lang.Exception
Add a newEmailProfileTypeto the system- Parameters:
profileType- theEmailProfileTypeto add- Throws:
java.lang.IllegalArgumentException- if anEmailProfileTypealready exists with the same IDjava.lang.Exception- if there was any other unexpected problem adding the newEmailProfileType
-
removeProfileType
void removeProfileType(java.lang.String id)
Remove an existingEmailProfileTypefrom the system- Parameters:
id- the ID of an existingEmailProfileTypeto remove- Throws:
java.lang.IllegalArgumentException- if anEmailProfileTypedoes not exist with the given ID, or if the ID is associated with a built-in EmailProfileType
-
getProfiles
java.util.Collection<? extends EmailProfile.Managed> getProfiles()
- Returns:
- all the email profiles managed by this manager
-
getProfile
java.util.Optional<? extends EmailProfile.Managed> getProfile(java.lang.String name)
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
-
-