org.jasig.portlet.announcements.model
Class Announcement
java.lang.Object
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$
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
Announcement
public Announcement()
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.