public class Announcement extends Object implements Comparable<Announcement>
| Modifier and Type | Field and Description |
|---|---|
static long |
MILLISECONDS_IN_A_YEAR
Useful for announcements with open-ended display periods.
|
| Constructor and Description |
|---|
Announcement() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Announcement otherAnn) |
boolean |
equals(Object obj) |
String |
getAbstractText() |
Set<String> |
getAttachments() |
String |
getAuthor() |
Date |
getCreated() |
Date |
getEndDisplay() |
Long |
getId() |
String |
getLink() |
String |
getMessage() |
Date |
getNullSafeEndDisplay() |
Topic |
getParent() |
Boolean |
getPublished() |
Date |
getStartDisplay() |
String |
getTitle() |
int |
hashCode() |
boolean |
hasId() |
void |
setAbstractText(String abstractText) |
void |
setAttachments(Set<String> attachments) |
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) |
public static final long MILLISECONDS_IN_A_YEAR
public Boolean getPublished()
public void setPublished(Boolean published)
published - the published to setpublic boolean hasId()
public Long getId()
public void setId(Long id)
id - the id to setpublic Topic getParent()
public void setParent(Topic parent)
parent - the parent to setpublic String getTitle()
public Date getCreated()
public Date getStartDisplay()
public Date getEndDisplay()
public Date getNullSafeEndDisplay()
public String getMessage()
public void setTitle(String title)
title - the title to setpublic void setCreated(Date created)
created - date createdpublic void setStartDisplay(Date startDisplay)
startDisplay - the startDisplay to setpublic void setEndDisplay(Date endDisplay)
endDisplay - the endDisplay to setpublic void setMessage(String message)
message - the message to setpublic String getAbstractText()
public String getAuthor()
public String getLink()
public void setAbstractText(String abstractText)
abstractText - the abstractText to setpublic void setAuthor(String author)
author - the author to setpublic void setLink(String link)
link - the link to setpublic int compareTo(Announcement otherAnn)
compareTo in interface Comparable<Announcement>Copyright © 2013 Jasig, Inc.. All Rights Reserved.