Package org.dspace.alerts
Class SystemWideAlert
java.lang.Object
org.dspace.alerts.SystemWideAlert
- All Implemented Interfaces:
ReloadableEntity<Integer>
Database object representing system-wide alerts
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturntrueifotheris the same SystemWideAlert as this object,falseotherwiseRetrieve what kind of sessions are allowed while the system-wide alert is activeRetrieve the date to which will be count down when the system-wide alert is activegetID()This method returns the ID that the system-wide alert holds within the databaseRetrieve the message of the system-wide alertinthashCode()booleanisActive()Retrieve whether the system-wide alert is activevoidsetActive(boolean active) Set whether the system-wide alert is activevoidsetAllowSessions(AllowSessionsEnum allowSessions) Set what kind of sessions are allowed while the system-wide alert is activevoidsetCountdownTo(ZonedDateTime countdownTo) Set the date to which will be count down when the system-wide alert is activevoidSet the ID for the system-wide alertvoidsetMessage(String message) Set the message of the system-wide alert
-
Constructor Details
-
SystemWideAlert
protected SystemWideAlert()
-
-
Method Details
-
getID
This method returns the ID that the system-wide alert holds within the database- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- The ID that the system-wide alert holds within the database
-
setID
Set the ID for the system-wide alert- Parameters:
alertID- The ID to set
-
getMessage
Retrieve the message of the system-wide alert- Returns:
- the message of the system-wide alert
-
setMessage
Set the message of the system-wide alert- Parameters:
message- The message to set
-
getAllowSessions
Retrieve what kind of sessions are allowed while the system-wide alert is active- Returns:
- what kind of sessions are allowed while the system-wide alert is active
-
setAllowSessions
Set what kind of sessions are allowed while the system-wide alert is active- Parameters:
allowSessions- Integer representing what kind of sessions are allowed
-
getCountdownTo
Retrieve the date to which will be count down when the system-wide alert is active- Returns:
- the date to which will be count down when the system-wide alert is active
-
setCountdownTo
Set the date to which will be count down when the system-wide alert is active- Parameters:
countdownTo- The date to which will be count down
-
isActive
public boolean isActive()Retrieve whether the system-wide alert is active- Returns:
- whether the system-wide alert is active
-
setActive
public void setActive(boolean active) Set whether the system-wide alert is active- Parameters:
active- Whether the system-wide alert is active
-
equals
Returntrueifotheris the same SystemWideAlert as this object,falseotherwise -
hashCode
public int hashCode()
-