Interface EmailProfileManager
-
- All Superinterfaces:
ExtensionPointManager
public interface EmailProfileManager extends ExtensionPointManager
Manages the configuredEmailProfile
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addProfileType(EmailProfileType profileType)
Add a newEmailProfileType
to the systemEmailProfileType
getExtensionPoint(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()
void
removeProfileType(java.lang.String id)
Remove an existingEmailProfileType
from the system
-
-
-
Method Detail
-
getExtensionPoint
@Nullable EmailProfileType getExtensionPoint(java.lang.String typeId)
- Specified by:
getExtensionPoint
in interfaceExtensionPointManager
- Returns:
- the
ExtensionPointType
identified bytypeId
, ornull
if none exists for that name. - See Also:
ExtensionPointType.getTypeId()
-
getExtensionPoints
java.util.List<? extends EmailProfileType> getExtensionPoints()
- Specified by:
getExtensionPoints
in interfaceExtensionPointManager
- Returns:
- all
ExtensionPointType
s managed by thisExtensionPointManager
.
-
addProfileType
void addProfileType(EmailProfileType profileType) throws java.lang.Exception
Add a newEmailProfileType
to the system- Parameters:
profileType
- theEmailProfileType
to add- Throws:
java.lang.IllegalArgumentException
- if anEmailProfileType
already 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 existingEmailProfileType
from the system- Parameters:
id
- the ID of an existingEmailProfileType
to remove- Throws:
java.lang.IllegalArgumentException
- if anEmailProfileType
does 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
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
-
-