public interface IJEMHTransportProvider extends IJEMHModuleProvider
| Modifier and Type | Interface and Description |
|---|---|
static class |
IJEMHTransportProvider.TransportContentType |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_NAME_KEY
Key that configurations store a display name/description for the configuration, for use in JEMH when displaying it
|
| Modifier and Type | Method and Description |
|---|---|
TransportConfigWrapper |
createConfig() |
void |
deleteConfig(int fConfigId) |
List<TransportConfigWrapper> |
getAllConfigs() |
TransportConfigWrapper |
getConfig(int configId) |
String |
getHelpURL()
Gets the URL that users can navigate to in order to access documentation for the transport
|
String |
getIssueEventSubject(long eventId) |
String |
getIssueEventTemplate(long eventId,
IJEMHTransportProvider.TransportContentType type) |
String |
getStatus()
Get the status of the addon
|
TransportStatus |
getTransportStatus(int transportConfigId) |
boolean |
isUsable()
If something prevents this addon from being used
|
boolean |
needsHtmlTemplate()
hints for JEMH to enable HTML template editing
|
boolean |
needsSubjectTemplate()
hints for JEMH to enable subject template editing
|
boolean |
needsTextTemplate()
hints for JEMH to enable TEXT template editing
|
void |
send(ITransportNotificationItem item) |
void |
sendAdHocMessage(int transportConfigId,
String subject,
String content,
List<String> recipients,
Map<String,List<String>> params)
AD-Hoc notifications
|
void |
sendTestMessage(int configId,
String testMessage)
send a test message using the given config and text
|
void |
updateConfig(TransportConfigWrapper config) |
void |
validateConfig(TransportConfigWrapper config,
Map<String,String> errors) |
getDescription, getKey, getName, getVendor, getVendorUrlstatic final String CONFIG_NAME_KEY
TransportConfigWrapper getConfig(int configId)
List<TransportConfigWrapper> getAllConfigs()
void validateConfig(TransportConfigWrapper config, Map<String,String> errors)
TransportConfigWrapper createConfig()
void updateConfig(TransportConfigWrapper config)
void deleteConfig(int fConfigId)
void sendAdHocMessage(int transportConfigId,
String subject,
String content,
List<String> recipients,
Map<String,List<String>> params)
throws TransportException
transportConfigId - the transport specific config to usesubject, - can be null, transport will ignore if not relevant, eg XMPP postingcontent, - the rendered content to userecipients, - array of 'whatever' identifiers', e.g. XMPP userids for 1-1 notification, a single param for a HipChat room, a list of phone numbers for SMS etc.params, - a map of keys to mulitple values that may be used in the given transport. E.g., for SMTP, this could be a set of SMTP mail header prefixesTransportException - if it breaksString getIssueEventTemplate(long eventId, IJEMHTransportProvider.TransportContentType type)
eventId - event idtype - content typeString getIssueEventSubject(long eventId)
eventId - event idboolean needsSubjectTemplate()
boolean needsTextTemplate()
boolean needsHtmlTemplate()
void sendTestMessage(int configId,
String testMessage)
throws TransportException
configId - the config to usetestMessage - the message to sendTransportException - if something breaksboolean isUsable()
isUsable in interface IJEMHModuleProviderString getStatus()
IJEMHModuleProvidergetStatus in interface IJEMHModuleProviderTransportStatus getTransportStatus(int transportConfigId)
transportConfigId - to testvoid send(ITransportNotificationItem item) throws TransportException
item - to sendTransportException - if it breaksString getHelpURL()
Copyright © 2008–2020 The Plugin People. All rights reserved.