|
||||||||||
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(org.kuali.rice.core.framework.persistence.dao.GenericDao boDao,
NotificationContentTypeService notificationContentTypeService)
Constructor which takes a GenericDao Constructs a NotificationMessageContentServiceImpl.java. |
Method Summary | |
---|---|
String |
generateNotificationMessage(Notification notification)
This method will marshall out the Notification object as a String of XML, using XStream. |
String |
generateNotificationMessage(Notification 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(NotificationResponse response)
This method will marshall out the NotificationResponse object as a String of XML, using XStream. |
Notification |
parseNotificationRequestMessage(InputStream stream)
This method implements by taking in an InputStream and then coverting that to a byte[]. |
Notification |
parseNotificationRequestMessage(String notificationMessageAsXml)
This method implements by taking in a String and then converting that to a byte[]; |
Notification |
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(org.kuali.rice.core.framework.persistence.dao.GenericDao boDao, NotificationContentTypeService notificationContentTypeService)
boDao
- Method Detail |
---|
public Notification parseNotificationRequestMessage(String notificationMessageAsXml) throws IOException, org.kuali.rice.core.util.xml.XmlException
parseNotificationRequestMessage
in interface NotificationMessageContentService
IOException
org.kuali.rice.core.util.xml.XmlException
NotificationMessageContentService.parseNotificationRequestMessage(java.lang.String)
public Notification parseNotificationRequestMessage(InputStream stream) throws IOException, org.kuali.rice.core.util.xml.XmlException
parseNotificationRequestMessage
in interface NotificationMessageContentService
stream
- request message stream
IOException
org.kuali.rice.core.util.xml.XmlException
NotificationMessageContentService.parseNotificationRequestMessage(java.io.InputStream)
public String generateNotificationResponseMessage(NotificationResponse response)
generateNotificationResponseMessage
in interface NotificationMessageContentService
NotificationMessageContentService.generateNotificationResponseMessage(org.kuali.rice.ken.bo.NotificationResponse)
public String generateNotificationMessage(Notification notification, String userRecipientId)
generateNotificationMessage
in interface NotificationMessageContentService
NotificationMessageContentService.generateNotificationMessage(org.kuali.rice.ken.bo.Notification, java.lang.String)
public String generateNotificationMessage(Notification notification)
generateNotificationMessage
in interface NotificationMessageContentService
NotificationMessageContentService.generateNotificationMessage(org.kuali.rice.ken.bo.Notification)
public Notification 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 |