org.jasig.portlet.notice.response
Class NotificationCategory

java.lang.Object
  extended by org.jasig.portlet.notice.response.NotificationCategory
All Implemented Interfaces:
Serializable

public class NotificationCategory
extends Object
implements Serializable

Container class that holds the entries for a given category. The category title is used to determine if entries from other sources should be grouped together in the same category.

See Also:
Serialized Form

Constructor Summary
NotificationCategory()
          Constructor.
NotificationCategory(String title, List<NotificationEntry> entries)
          Constructor.
 
Method Summary
 void addEntries(List<NotificationEntry> newEntries)
           
 void clearEntries()
           
 List<NotificationEntry> getEntries()
           
 String getTitle()
           
 void setEntries(List<NotificationEntry> entries)
           
 void setSource(String source)
          Set the source of the data.
 void setTitle(String title)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotificationCategory

public NotificationCategory()
Constructor.


NotificationCategory

public NotificationCategory(String title,
                            List<NotificationEntry> entries)
Constructor.

Method Detail

setSource

public void setSource(String source)
Set the source of the data. This method will iterate through the data and set the source value for the entries and error (if any).

Parameters:
source - is the source of the data.

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

getEntries

public List<NotificationEntry> getEntries()

setEntries

public void setEntries(List<NotificationEntry> entries)

addEntries

public void addEntries(List<NotificationEntry> newEntries)

clearEntries

public void clearEntries()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Jasig. All Rights Reserved.