|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.ken.service.impl.NotificationMessageContentServiceImpl
public class NotificationMessageContentServiceImpl
NotificationMessageContentService implementation - uses both Xalan and XStream in various places to manage the marshalling/unmarshalling of Notification data for processing by various components in the system.
NotificationMessageContentService
Constructor Summary | |
---|---|
NotificationMessageContentServiceImpl(GenericDao boDao,
NotificationContentTypeService notificationContentTypeService)
Constructor which takes a GenericDao Constructs a NotificationMessageContentServiceImpl.java. |
Method Summary | |
---|---|
String |
generateNotificationMessage(NotificationBo notification)
This method will marshall out the Notification object as a String of XML, using XStream. |
String |
generateNotificationMessage(NotificationBo notification,
String userRecipientId)
This method will marshall out the Notification object as a String of XML, using XStream and replaces the full recipient list with just a single recipient. |
String |
generateNotificationResponseMessage(NotificationResponseBo response)
This method will marshall out the NotificationResponse object as a String of XML, using XStream. |
NotificationBo |
parseNotificationRequestMessage(InputStream stream)
This method implements by taking in an InputStream and then coverting that to a byte[]. |
NotificationBo |
parseNotificationRequestMessage(String notificationMessageAsXml)
This method implements by taking in a String and then converting that to a byte[]; |
NotificationBo |
parseSerializedNotificationXml(byte[] xmlAsBytes)
Uses XPath to parse out the serialized Notification xml into a Notification instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotificationMessageContentServiceImpl(GenericDao boDao, NotificationContentTypeService notificationContentTypeService)
boDao
- Method Detail |
---|
public NotificationBo parseNotificationRequestMessage(String notificationMessageAsXml) throws IOException, XmlException
parseNotificationRequestMessage
in interface NotificationMessageContentService
IOException
XmlException
NotificationMessageContentService.parseNotificationRequestMessage(java.lang.String)
public NotificationBo parseNotificationRequestMessage(InputStream stream) throws IOException, XmlException
parseNotificationRequestMessage
in interface NotificationMessageContentService
stream
- request message stream
IOException
XmlException
NotificationMessageContentService.parseNotificationRequestMessage(java.io.InputStream)
public String generateNotificationResponseMessage(NotificationResponseBo response)
generateNotificationResponseMessage
in interface NotificationMessageContentService
NotificationMessageContentService.generateNotificationResponseMessage(org.kuali.rice.ken.bo.NotificationResponseBo)
public String generateNotificationMessage(NotificationBo notification, String userRecipientId)
generateNotificationMessage
in interface NotificationMessageContentService
NotificationMessageContentService.generateNotificationMessage(org.kuali.rice.ken.bo.NotificationBo, java.lang.String)
public String generateNotificationMessage(NotificationBo notification)
generateNotificationMessage
in interface NotificationMessageContentService
NotificationMessageContentService.generateNotificationMessage(org.kuali.rice.ken.bo.NotificationBo)
public NotificationBo parseSerializedNotificationXml(byte[] xmlAsBytes) throws Exception
parseSerializedNotificationXml
in interface NotificationMessageContentService
Exception
org.kuali.rice.ken.service.NotificationMessageContentService#parseNotificationXml(byte[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |