com.atlassian.bamboo.persister.file
Class FileBasedPersisterOptions

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

public class FileBasedPersisterOptions
extends java.lang.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
FileBasedPersisterOptions(java.lang.String configurationDataDirectory, java.lang.String buildDataDirectory)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getConfigurationDirectory()
          Provide the UI with the current configuration directory
 java.io.File getConfigurationDirectoryFile()
           
 java.lang.String getDataDirectory()
          Provide the UI with the current build data directory
 java.io.File getDataDirectoryFile()
           
 int hashCode()
           
 void setConfigurationDirectory(java.lang.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
 void setDataDirectory(java.lang.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
 ErrorCollection validate(boolean validateContents)
          Validate any plugin settings populated from the GUI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBasedPersisterOptions

public FileBasedPersisterOptions(java.lang.String configurationDataDirectory,
                                 java.lang.String buildDataDirectory)
Method Detail

setDataDirectory

public void setDataDirectory(java.lang.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 java.lang.String getDataDirectory()
Provide the UI with the current build data directory

Returns:
The directory

setConfigurationDirectory

public void setConfigurationDirectory(java.lang.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 java.lang.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 java.io.File getConfigurationDirectoryFile()

getDataDirectoryFile

public java.io.File getDataDirectoryFile()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.