All Implemented Interfaces:
Serializable

public class ConfigBeanextends BaseBean implements Serializable
Bean for managing SusDNS configuration properties and file operations.
See Also:
  • Field Details

    • config

      private String config
      Config.
    • saved

      private boolean saved
      Saved.
  • Constructor Details

    • ConfigBean

      public ConfigBean()
      Creates an empty config bean.
  • Method Details

    • getfileName

      public String getfileName()
      Get the config file path.
      Returns:
      the absolute path to the config file
    • isSaved

      public boolean isSaved()
      Check if the config has been saved.
      Returns:
      true if the config was saved
    • getConfig

      public String getConfig()
      Get the current configuration content.
      Returns:
      the configuration content
    • reload

      protected void reload()
      Reload the configuration from file.
      Overrides:
      reload in class BaseBean
    • save

      private void save()
      Save the configuration to file.
    • setConfig

      public void setConfig(String config)
      Set the configuration content.
      Parameters:
      config - the new configuration content
    • getMessages

      public String getMessages()
      Get status messages for the UI.
      Returns:
      HTML formatted status message