Class MaintenanceResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.MaintenanceResponse
- All Implemented Interfaces:
Serializable
Response containing maintenance information
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Banner flagprotected boolean
Maintenance mode flagprotected String
Maintenance message -
Constructor Summary
ConstructorDescriptionCreate empty instanceMaintenanceResponse
(Message message, ResponseInfo responseInfo) Create instance with message and response info -
Method Summary
Modifier and TypeMethodDescriptionMaintenance messageboolean
isBanner()
True when the maintenance message should be shown in the uiboolean
True when the maintenance mode is active, false if notvoid
setBanner
(boolean banner) Set true for display of the maintenance message in the uivoid
setMaintenance
(boolean maintenance) Set the maintenance modevoid
setMessage
(String message) Set the maintenance messageMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Field Details
-
maintenance
protected boolean maintenanceMaintenance mode flag -
banner
protected boolean bannerBanner flag -
message
Maintenance message
-
-
Constructor Details
-
MaintenanceResponse
public MaintenanceResponse()Create empty instance -
MaintenanceResponse
Create instance with message and response info- Parameters:
message
- response messageresponseInfo
- response info
-
-
Method Details
-
isMaintenance
public boolean isMaintenance()True when the maintenance mode is active, false if not- Returns:
- true for maintenance mode
-
setMaintenance
public void setMaintenance(boolean maintenance) Set the maintenance mode- Parameters:
maintenance
- true for maintenance mode
-
isBanner
public boolean isBanner()True when the maintenance message should be shown in the ui- Returns:
- true for maintenance message
-
setBanner
public void setBanner(boolean banner) Set true for display of the maintenance message in the ui- Parameters:
banner
- true/false
-
getMessage
Maintenance message- Returns:
- maintenance message
-
setMessage
Set the maintenance message- Parameters:
message
- maintenance message
-