Class SystemStatus

java.lang.Object
org.ametys.core.util.SystemStatus
All Implemented Interfaces:
Disposable, Initializable, Component

public class SystemStatus extends Object implements Component, Initializable, Disposable
Component that centralizes and provides the system status
  • Field Details

    • ROLE

      public static final String ROLE
      The Avalon Role
  • Constructor Details

  • Method Details

    • initialize

      public void initialize() throws Exception
      Specified by:
      initialize in interface Initializable
      Throws:
      Exception
    • dispose

      public void dispose()
      Specified by:
      dispose in interface Disposable
    • getStatus

      Returns the system status
      Returns:
      The collection of system status
    • addStatus

      public boolean addStatus(String status)
      Add a system status
      Parameters:
      status - The system status to add
      Returns:
      true if the system status did not already contain the specified status
    • removeStatus

      public boolean removeStatus(String status)
      Add a system status
      Parameters:
      status - The system status to remove
      Returns:
      true if the system status contained the specified element