org.wso2.carbon.identity.notification.mgt.json
Class JsonMessageModule

java.lang.Object
  extended by org.wso2.carbon.identity.notification.mgt.AbstractNotificationSendingModule
      extended by org.wso2.carbon.identity.notification.mgt.json.JsonMessageModule
All Implemented Interfaces:
org.wso2.carbon.identity.notification.mgt.NotificationSendingModule

public class JsonMessageModule
extends org.wso2.carbon.identity.notification.mgt.AbstractNotificationSendingModule

This is a specific implementation of MessageSendingModule which is used for sending JSON messages on an event. This is exposed as the service class and will register this module as a message sending module


Field Summary
 
Fields inherited from class org.wso2.carbon.identity.notification.mgt.AbstractNotificationSendingModule
moduleConfiguration
 
Constructor Summary
JsonMessageModule()
           
 
Method Summary
 String getModuleName()
           
 void init(org.wso2.carbon.identity.notification.mgt.bean.ModuleConfiguration moduleConfigurations)
          Initialize REST JSON Module with configurations.
 boolean isSubscribed(org.wso2.carbon.identity.notification.mgt.bean.PublisherEvent publisherEvent)
          Whether a particular type of event is subscribed by this module or not
 void sendMessage(org.wso2.carbon.identity.notification.mgt.bean.PublisherEvent publisherEvent)
          Overridden method for rest json message sending.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonMessageModule

public JsonMessageModule()
Method Detail

sendMessage

public void sendMessage(org.wso2.carbon.identity.notification.mgt.bean.PublisherEvent publisherEvent)
                 throws org.wso2.carbon.identity.notification.mgt.NotificationManagementException
Overridden method for rest json message sending.

Parameters:
publisherEvent - Published event name
Throws:
org.wso2.carbon.identity.notification.mgt.NotificationManagementException

getModuleName

public String getModuleName()
Specified by:
getModuleName in interface org.wso2.carbon.identity.notification.mgt.NotificationSendingModule
Overrides:
getModuleName in class org.wso2.carbon.identity.notification.mgt.AbstractNotificationSendingModule

init

public void init(org.wso2.carbon.identity.notification.mgt.bean.ModuleConfiguration moduleConfigurations)
          throws org.wso2.carbon.identity.notification.mgt.NotificationManagementException
Initialize REST JSON Module with configurations.

Specified by:
init in interface org.wso2.carbon.identity.notification.mgt.NotificationSendingModule
Overrides:
init in class org.wso2.carbon.identity.notification.mgt.AbstractNotificationSendingModule
Parameters:
moduleConfigurations - Configurations which are relevant to this module. Passed by Notification Management Component
Throws:
org.wso2.carbon.identity.notification.mgt.NotificationManagementException

isSubscribed

public boolean isSubscribed(org.wso2.carbon.identity.notification.mgt.bean.PublisherEvent publisherEvent)
                     throws org.wso2.carbon.identity.notification.mgt.NotificationManagementException
Whether a particular type of event is subscribed by this module or not

Specified by:
isSubscribed in interface org.wso2.carbon.identity.notification.mgt.NotificationSendingModule
Overrides:
isSubscribed in class org.wso2.carbon.identity.notification.mgt.AbstractNotificationSendingModule
Returns:
Whether this module is subscribed or not
Throws:
org.wso2.carbon.identity.notification.mgt.NotificationManagementException


Copyright © 2015 WSO2. All rights reserved.