public class Announcement extends Object implements Comparable<Announcement>
Announcement class.
| 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)
compareTo.
|
boolean |
equals(Object obj) |
String |
getAbstractText()
Getter for the field
abstractText. |
Set<String> |
getAttachments()
Getter for the field
attachments. |
String |
getAuthor()
Getter for the field
author. |
Date |
getCreated()
Getter for the field
created. |
Date |
getEndDisplay()
Getter for the field
endDisplay. |
Long |
getId()
Getter for the field
id. |
String |
getLink()
Getter for the field
link. |
String |
getMessage()
Getter for the field
message. |
Date |
getNullSafeEndDisplay()
getNullSafeEndDisplay.
|
Topic |
getParent()
Getter for the field
parent. |
Boolean |
getPublished()
Getter for the field
published. |
Date |
getStartDisplay()
Getter for the field
startDisplay. |
String |
getTitle()
Getter for the field
title. |
int |
hashCode() |
boolean |
hasId()
hasId.
|
void |
setAbstractText(String abstractText)
Setter for the field
abstractText. |
void |
setAttachments(Set<String> attachments)
Setter for the field
attachments. |
void |
setAuthor(String author)
Setter for the field
author. |
void |
setCreated(Date created)
Setter for the field
created. |
void |
setEndDisplay(Date endDisplay)
Setter for the field
endDisplay. |
void |
setId(Long id)
Setter for the field
id. |
void |
setLink(String link)
Setter for the field
link. |
void |
setMessage(String message)
Setter for the field
message. |
void |
setParent(Topic parent)
Setter for the field
parent. |
void |
setPublished(Boolean published)
Setter for the field
published. |
void |
setStartDisplay(Date startDisplay)
Setter for the field
startDisplay. |
void |
setTitle(String title)
Setter for the field
title. |
public static final long MILLISECONDS_IN_A_YEAR
public Boolean getPublished()
Getter for the field published.
Boolean object.public void setPublished(Boolean published)
Setter for the field published.
published - a Boolean object.public boolean hasId()
hasId.
public void setParent(Topic parent)
Setter for the field parent.
parent - a Topic object.public Date getStartDisplay()
Getter for the field startDisplay.
Date object.public Date getNullSafeEndDisplay()
getNullSafeEndDisplay.
Date object.public void setTitle(String title)
Setter for the field title.
title - a String object.public void setCreated(Date created)
Setter for the field created.
created - a Date object.public void setStartDisplay(Date startDisplay)
Setter for the field startDisplay.
startDisplay - a Date object.public void setEndDisplay(Date endDisplay)
Setter for the field endDisplay.
endDisplay - a Date object.public void setMessage(String message)
Setter for the field message.
message - a String object.public String getAbstractText()
Getter for the field abstractText.
String object.public void setAbstractText(String abstractText)
Setter for the field abstractText.
abstractText - a String object.public void setAuthor(String author)
Setter for the field author.
author - a String object.public void setLink(String link)
Setter for the field link.
link - a String object.public Set<String> getAttachments()
Getter for the field attachments.
Set object.public void setAttachments(Set<String> attachments)
Setter for the field attachments.
attachments - a Set object.public int compareTo(Announcement otherAnn)
compareTo.
compareTo in interface Comparable<Announcement>otherAnn - a Announcement object.Copyright © 2023 Jasig, Inc.. All rights reserved.