Class OMailPlugin
java.lang.Object
com.orientechnologies.orient.server.plugin.OServerPluginAbstract
com.orientechnologies.orient.server.plugin.mail.OMailPlugin
- All Implemented Interfaces:
OService,OScriptInjection,OServerPlugin,OServerPluginConfigurable
public class OMailPlugin
extends OServerPluginAbstract
implements OScriptInjection, OServerPluginConfigurable
-
Field Summary
Fields inherited from class com.orientechnologies.orient.server.plugin.OServerPluginAbstract
enabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(Bindings binding, ODatabaseDocument database) voidchangeConfig(ODocument document) voidconfig(OServer oServer, OServerParameterConfiguration[] iParams) Configures the handler.getName()getProfile(String iName) registerProfile(String iName, OMailProfile iProfile) voidSends an email.voidvoidMethods inherited from class com.orientechnologies.orient.server.plugin.OServerPluginAbstract
getContent, onAfterClientRequest, onBeforeClientRequest, onClientConnection, onClientDisconnection, onClientError, sendShutdown, shutdown, startupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.server.plugin.OServerPlugin
onSocketAccepted, onSocketDestroyed
-
Constructor Details
-
OMailPlugin
public OMailPlugin()
-
-
Method Details
-
config
Description copied from interface:OServerPluginConfigures the handler. Called at startup.- Specified by:
configin interfaceOServerPlugin- Overrides:
configin classOServerPluginAbstract
-
writeConfiguration
- Throws:
IOException
-
send
Sends an email. Supports the following configuration: subject, message, to, cc, bcc, date, attachments- Parameters:
iMessage- Configuration as Map<String,Object>- Throws:
ParseException
-
bind
- Specified by:
bindin interfaceOScriptInjection
-
unbind
- Specified by:
unbindin interfaceOScriptInjection
-
getName
-
getProfileNames
-
getProfile
-
registerProfile
-
getConfig
- Specified by:
getConfigin interfaceOServerPluginConfigurable
-
changeConfig
- Specified by:
changeConfigin interfaceOServerPluginConfigurable
-