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.FactoryContextNested 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, validatorFields inherited from interface com.inductiveautomation.ignition.gateway.config.ExtensionPoint
PROFILE_KEY, SETTINGS_KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractEmailProfileExtensionPoint(String typeId, String nameKey, String descriptionKey, @Nullable Class<SettingsType> settingsType) -
Method Summary
Modifier and TypeMethodDescriptionFactory method for creating newEmailProfileinstances of this type.protected abstract EmailProfile.LifecyclecreateNewProfile(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, getReferenceProperties, getSettingsValidator, name, typeId, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.gateway.config.ExtensionPoint
canCreate, compareTo, decode, defaultSettings, description, encode, getMenuActions, getReferenceProperties, 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:ExtensionPointThe 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:
resourceTypein interfaceExtensionPoint<SettingsType>
-
settingsType
- Specified by:
settingsTypein 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:EmailProfileTypeFactory method for creating newEmailProfileinstances of this type.- Specified by:
createNewProfilein interfaceEmailProfileType<SettingsType>- Parameters:
context- aEmailProfileType.FactoryContextinstance which exposes the contextual information necessary for any email profile type to be instantiated- Returns:
- a new
EmailProfile.Lifecycleinstance 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
-