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 Summary
Constructors Constructor Description FileBasedPersisterOptions(String configurationDataDirectory, String buildDataDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getConfigurationDirectory()
Provide the UI with the current configuration directoryFile
getConfigurationDirectoryFile()
String
getDataDirectory()
Provide the UI with the current build data directoryFile
getDataDirectoryFile()
int
hashCode()
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 locatedvoid
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 locatedErrorCollection
validate(boolean validateContents)
Validate any plugin settings populated from the GUI
-
-
-
Method Detail
-
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 interfacePersisterOptions
- 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()
-
-