org.jasig.portlet.announcements.model
Class Announcement

java.lang.Object
  extended by org.jasig.portlet.announcements.model.Announcement
All Implemented Interfaces:
Comparable<Announcement>

public class Announcement
extends Object
implements Comparable<Announcement>

Author:
Erik A. Olsson (eolsson@uci.edu) $LastChangedBy$ $LastChangedDate$

Field Summary
static long MILLISECONDS_IN_A_YEAR
          Useful for announcements with open-ended display periods.
 
Constructor Summary
Announcement()
           
 
Method Summary
 int compareTo(Announcement otherAnn)
           
 boolean equals(Object obj)
           
 String getAbstractText()
           
 String getAuthor()
           
 Date getCreated()
           
 Date getEndDisplay()
           
 Long getId()
           
 String getLink()
           
 String getMessage()
           
 Topic getParent()
           
 Boolean getPublished()
           
 Date getStartDisplay()
           
 String getTitle()
           
 boolean hasId()
           
 Boolean isPublished()
           
 void setAbstractText(String abstractText)
           
 void setAuthor(String author)
           
 void setCreated(Date created)
           
 void setEndDisplay(Date endDisplay)
           
 void setId(Long id)
           
 void setLink(String link)
           
 void setMessage(String message)
           
 void setParent(Topic parent)
           
 void setPublished(Boolean published)
           
 void setStartDisplay(Date startDisplay)
           
 void setTitle(String title)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MILLISECONDS_IN_A_YEAR

public static final long MILLISECONDS_IN_A_YEAR
Useful for announcements with open-ended display periods.

See Also:
Constant Field Values
Constructor Detail

Announcement

public Announcement()
Method Detail

isPublished

public Boolean isPublished()
Returns:
the published

getPublished

public Boolean getPublished()
Returns:
the published

setPublished

public void setPublished(Boolean published)
Parameters:
published - the published to set

hasId

public boolean hasId()

getId

public Long getId()
Returns:
the id

setId

public void setId(Long id)
Parameters:
id - the id to set

getParent

public Topic getParent()
Returns:
the parent

setParent

public void setParent(Topic parent)
Parameters:
parent - the parent to set

getTitle

public String getTitle()
Returns:
the title

getCreated

public Date getCreated()
Returns:
the published

getStartDisplay

public Date getStartDisplay()
Returns:
the startDisplay

getEndDisplay

public Date getEndDisplay()
Returns:
the endDisplay

getMessage

public String getMessage()
Returns:
the message

setTitle

public void setTitle(String title)
Parameters:
title - the title to set

setCreated

public void setCreated(Date created)
Parameters:
published - the published to set

setStartDisplay

public void setStartDisplay(Date startDisplay)
Parameters:
startDisplay - the startDisplay to set

setEndDisplay

public void setEndDisplay(Date endDisplay)
Parameters:
endDisplay - the endDisplay to set

setMessage

public void setMessage(String message)
Parameters:
message - the message to set

getAbstractText

public String getAbstractText()
Returns:
the abstractText

getAuthor

public String getAuthor()
Returns:
the author

getLink

public String getLink()
Returns:
the link

setAbstractText

public void setAbstractText(String abstractText)
Parameters:
abstractText - the abstractText to set

setAuthor

public void setAuthor(String author)
Parameters:
author - the author to set

setLink

public void setLink(String link)
Parameters:
link - the link to set

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(Announcement otherAnn)
Specified by:
compareTo in interface Comparable<Announcement>


Copyright © 2012 Jasig, Inc.. All Rights Reserved.