public class Banner extends Object implements Comparable<Banner>
| Constructor and Description |
|---|
Banner(String message,
String hosts,
boolean active,
long startTime,
long endTime,
String type) |
Banner(String uuid,
String message,
String hosts,
boolean active,
long startTime,
long endTime,
String type) |
Banner(String uuid,
String message,
String hosts,
boolean active,
long startTime,
long endTime,
String type,
boolean isDismissed) |
| Modifier and Type | Method and Description |
|---|---|
AcknowledgementType |
calculateAcknowledgementType()
Determine the default acknowledgement type for this banner.
|
int |
compareTo(Banner other) |
boolean |
equals(Object obj) |
int |
getSeverityScore()
A numeric type representing this banner's importance (higher number = more important)
|
String |
getType()
The type of this banner (high, medium, low).
|
String |
getUuid() |
int |
hashCode() |
boolean |
isActiveForHost(String hostname)
True if this banner is active now and assigned to the current server.
|
boolean |
isActiveNow()
Whether or not this banner should be displayed at this moment in time.
|
boolean |
isDismissible()
Whether or not this banner type can be dismissed by a user.
|
Errors |
validate()
Check that the values we've been given make sense.
|
public Banner(String message, String hosts, boolean active, long startTime, long endTime, String type)
public Banner(String uuid, String message, String hosts, boolean active, long startTime, long endTime, String type)
public String getType()
public AcknowledgementType calculateAcknowledgementType()
public int compareTo(Banner other)
compareTo in interface Comparable<Banner>public int getSeverityScore()
public String getUuid() throws MissingUuidException
MissingUuidExceptionpublic boolean isActiveNow()
public boolean isDismissible()
public boolean isActiveForHost(String hostname)
public Errors validate()
Copyright © 2003–2016 Sakai Project. All rights reserved.