Class FileBasedPersisterOptions

java.lang.Object
com.atlassian.bamboo.persister.file.FileBasedPersisterOptions
All Implemented Interfaces:
PersisterOptions

public class FileBasedPersisterOptions extends Object implements PersisterOptions
This allows the user to specify the file based persister options. It's made available to the GUI and used to configure the persister..
  • Constructor Details

    • FileBasedPersisterOptions

      public FileBasedPersisterOptions(String configurationDataDirectory, String buildDataDirectory)
  • Method Details

    • setDataDirectory

      public void setDataDirectory(String buildDataDirectory)
      The user (via the gui) or the plug-in loader (from the bamboo.xml file), define where the build data files are located
      Parameters:
      buildDataDirectory - The build data directory
    • getDataDirectory

      public String getDataDirectory()
      Provide the UI with the current build data directory
      Returns:
      The directory
    • setConfigurationDirectory

      public void setConfigurationDirectory(String configurationDataDirectory)
      The user (via the gui) or the plug-in loader (from the bamboo.xml file), define where the build administration files are located
      Parameters:
      configurationDataDirectory - The server configuration data directory
    • getConfigurationDirectory

      public String getConfigurationDirectory()
      Provide the UI with the current configuration directory
      Returns:
      The directory
    • validate

      public ErrorCollection validate(boolean validateContents)
      Validate any plugin settings populated from the GUI
      Specified by:
      validate in interface PersisterOptions
      Parameters:
      validateContents - true iff you want to ensure the perster has valid data, false if you want to simply check the config (but may have no data)
      Returns:
      GUI from errors.
    • getConfigurationDirectoryFile

      public File getConfigurationDirectoryFile()
    • getDataDirectoryFile

      public File getDataDirectoryFile()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object