|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlet.notice.service.AbstractNotificationService
org.jasig.portlet.notice.service.DemoNotificationService
public class DemoNotificationService
This is a simple demo service provider. It reads data from a file and returns it.
| Constructor Summary | |
|---|---|
DemoNotificationService()
|
|
| Method Summary | |
|---|---|
NotificationResponse |
fetchNotificationsFromSource(javax.portlet.PortletRequest req)
Retrieves all available service requests for requester |
String |
getName()
Returns the name of the service. |
NotificationResponse |
readFromFile(String filename)
De-serialize the given JSON formatted file back into a object. |
void |
setFilename(String filename)
Set the filename of the demo data. |
boolean |
writeToFile(NotificationResponse request,
String filename)
Serialize the given instance to JSON data and write it to a file. |
| Methods inherited from class org.jasig.portlet.notice.service.AbstractNotificationService |
|---|
getNotifications, refreshNotifications |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DemoNotificationService()
| Method Detail |
|---|
public String getName()
public void setFilename(String filename)
filename - is the demo filename.
public NotificationResponse fetchNotificationsFromSource(javax.portlet.PortletRequest req)
throws NotificationServiceException
partyNumber - username -
NotificationServiceException
public boolean writeToFile(NotificationResponse request,
String filename)
request - is the NotificationRequest instance to be serialized to a file.filename - is the path and name of the file to be written.
public NotificationResponse readFromFile(String filename)
filename - is the path and name of the file to be read.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||