Package com.skava.helper
Class SendNotificationUtil
java.lang.Object
com.skava.helper.SendNotificationUtil
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
encryptAndLog
(String message) static NotifyStrategy
getNotificationProcessorName
(String defaultNotificationProcessorClass, org.springframework.context.MessageSource messageSource, org.springframework.web.client.RestTemplate restTemplateComponent, AppCommonServices appCommonServices) getNotificationProcessorName - Used to get the className which should be executed.static void
notifyUsingNotificationProcessorName
(Notification notificationInfo, ActionEntity actionEntity, CollectionPropertyEntity collectionPropertyEntity, org.springframework.context.MessageSource messageSource, org.springframework.web.client.RestTemplate restTemplateComponent, AppCommonServices appCommonServices) notifyUsingNotificationProcessorName - Executes a particular class according to the value given in the collection property.
-
Method Details
-
getNotificationProcessorName
public static NotifyStrategy getNotificationProcessorName(String defaultNotificationProcessorClass, org.springframework.context.MessageSource messageSource, org.springframework.web.client.RestTemplate restTemplateComponent, AppCommonServices appCommonServices) getNotificationProcessorName - Used to get the className which should be executed.- Parameters:
defaultNotificationProcessorClass
- the default Notification Processor Class name which should be called.authTokenHandler
-appMarketPlaceServices
-appMarketPlace
-- Returns:
- the
NotifyStrategy
class.
-
encryptAndLog
-
notifyUsingNotificationProcessorName
public static void notifyUsingNotificationProcessorName(Notification notificationInfo, ActionEntity actionEntity, CollectionPropertyEntity collectionPropertyEntity, org.springframework.context.MessageSource messageSource, org.springframework.web.client.RestTemplate restTemplateComponent, AppCommonServices appCommonServices) throws IOException notifyUsingNotificationProcessorName - Executes a particular class according to the value given in the collection property.- Parameters:
notificationInfo
- theNotification
object which consists of the recipients for whichactionEntity
- theActionEntity
object.collectionPropertyEntity
- theCollectionPropertyEntity
object.authTokenHandler
-appMarketPlaceServices
-appMarketPlace
-- Throws:
IOException
-