Class AbstractEmailProfileExtensionPoint<SettingsType>
java.lang.Object
com.inductiveautomation.ignition.gateway.config.AbstractExtensionPoint<SettingsType>
com.inductiveautomation.ignition.gateway.mail.smtp.AbstractEmailProfileExtensionPoint<SettingsType>
- All Implemented Interfaces:
ExtensionPoint<SettingsType>
,EmailProfileType<SettingsType>
,Comparable<ExtensionPoint<SettingsType>>
public abstract class AbstractEmailProfileExtensionPoint<SettingsType>
extends AbstractExtensionPoint<SettingsType>
implements EmailProfileType<SettingsType>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.gateway.mail.EmailProfileType
EmailProfileType.FactoryContext
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.gateway.config.ExtensionPoint
ExtensionPoint.ComponentType
-
Field Summary
Fields inherited from class com.inductiveautomation.ignition.gateway.config.AbstractExtensionPoint
descriptionKey, gson, nameKey, typeId, validator
Fields inherited from interface com.inductiveautomation.ignition.gateway.config.ExtensionPoint
PROFILE_KEY, SETTINGS_KEY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractEmailProfileExtensionPoint
(String typeId, String nameKey, String descriptionKey, @Nullable Class<SettingsType> settingsType) -
Method Summary
Modifier and TypeMethodDescriptionFactory method for creating newEmailProfile
instances of this type.protected abstract EmailProfile.Lifecycle
createNewProfile
(EmailProfileType.FactoryContext context, SettingsType settings) The resource type shared by all types of this extension point.Methods inherited from class com.inductiveautomation.ignition.gateway.config.AbstractExtensionPoint
addReferenceProperty, buildGson, buildValidator, customizeGson, decode, description, encode, getReferenceFinders, getSettingsValidator, name, typeId, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.gateway.config.ExtensionPoint
canCreate, compareTo, decode, defaultSettings, description, encode, getMenuActions, getReferenceFinders, getSettings, getSettingsValidator, getWebUiComponent, name, settingsSchema, typeId
-
Constructor Details
-
AbstractEmailProfileExtensionPoint
protected AbstractEmailProfileExtensionPoint(String typeId, String nameKey, String descriptionKey, @Nullable @Nullable Class<SettingsType> settingsType)
-
-
Method Details
-
resourceType
Description copied from interface:ExtensionPoint
The resource type shared by all types of this extension point. This is used to group extension points together. For example, all alarm journal types would share the same resource type, but have different typeIds.- Specified by:
resourceType
in interfaceExtensionPoint<SettingsType>
-
settingsType
- Specified by:
settingsType
in interfaceExtensionPoint<SettingsType>
- Returns:
- the Class of the settings object for this ExtensionPoint, if it has one. If this
ExtensionPoint does not have settings, return
Optional.empty()
. By default, this method returns the class of the object returned fromExtensionPoint.defaultSettings()
, if one is provided.
-
createNewProfile
public EmailProfile.Lifecycle createNewProfile(EmailProfileType.FactoryContext context) throws Exception Description copied from interface:EmailProfileType
Factory method for creating newEmailProfile
instances of this type.- Specified by:
createNewProfile
in interfaceEmailProfileType<SettingsType>
- Parameters:
context
- aEmailProfileType.FactoryContext
instance which exposes the contextual information necessary for any email profile type to be instantiated- Returns:
- a new
EmailProfile.Lifecycle
instance that has not yet been started - Throws:
Exception
- if there was an unexpected problem creating a new email profile instance of this type
-
createNewProfile
protected abstract EmailProfile.Lifecycle createNewProfile(EmailProfileType.FactoryContext context, SettingsType settings) throws Exception - Throws:
Exception
-