Class MaintenanceResponse

java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.MaintenanceResponse
All Implemented Interfaces:
Serializable

public class MaintenanceResponse extends GenericResponse
Response containing maintenance information
See Also:
  • Field Details

    • maintenance

      protected boolean maintenance
      Maintenance mode flag
    • message

      protected String message
      Maintenance message
  • Constructor Details

    • MaintenanceResponse

      public MaintenanceResponse()
      Create empty instance
    • MaintenanceResponse

      public MaintenanceResponse(Message message, ResponseInfo responseInfo)
      Create instance with message and response info
      Parameters:
      message - response message
      responseInfo - 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

      public String getMessage()
      Maintenance message
      Returns:
      maintenance message
    • setMessage

      public void setMessage(String message)
      Set the maintenance message
      Parameters:
      message - maintenance message