Package com.atlassian.bamboo.setup
Class BambooSharedPropertiesImpl
- java.lang.Object
-
- com.atlassian.bamboo.setup.BambooSharedPropertiesImpl
-
- All Implemented Interfaces:
BambooSharedProperties
public class BambooSharedPropertiesImpl extends Object implements BambooSharedProperties
-
-
Field Summary
Fields Modifier and Type Field Description static StringBAMBOO_PROPERTIESstatic StringBUILD_NUMBER_PROPERTY_KEY
-
Constructor Summary
Constructors Constructor Description BambooSharedPropertiesImpl(@NotNull Supplier<String> configDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconfigFileExists()voidcreateNewJmsKeyStorePassword(@NotNull String encryptedPassword)@NotNull StringgetBuildNumber()@NotNull PathgetConfigFilePath()StringgetJmsKeyStorePasswordEncrypted()voidload()voidsave()voidsetBuildNumber(String buildNumber)
-
-
-
Field Detail
-
BAMBOO_PROPERTIES
public static final String BAMBOO_PROPERTIES
- See Also:
- Constant Field Values
-
BUILD_NUMBER_PROPERTY_KEY
public static final String BUILD_NUMBER_PROPERTY_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setBuildNumber
public void setBuildNumber(String buildNumber) throws com.atlassian.config.ConfigurationException
- Specified by:
setBuildNumberin interfaceBambooSharedProperties- Throws:
com.atlassian.config.ConfigurationException
-
getBuildNumber
@NotNull public @NotNull String getBuildNumber() throws com.atlassian.config.ConfigurationException
- Specified by:
getBuildNumberin interfaceBambooSharedProperties- Throws:
com.atlassian.config.ConfigurationException
-
getJmsKeyStorePasswordEncrypted
public String getJmsKeyStorePasswordEncrypted()
- Specified by:
getJmsKeyStorePasswordEncryptedin interfaceBambooSharedProperties
-
createNewJmsKeyStorePassword
public void createNewJmsKeyStorePassword(@NotNull @NotNull String encryptedPassword) throws com.atlassian.config.ConfigurationException- Specified by:
createNewJmsKeyStorePasswordin interfaceBambooSharedProperties- Throws:
com.atlassian.config.ConfigurationException
-
configFileExists
public boolean configFileExists()
- Specified by:
configFileExistsin interfaceBambooSharedProperties
-
getConfigFilePath
@NotNull public @NotNull Path getConfigFilePath()
- Specified by:
getConfigFilePathin interfaceBambooSharedProperties
-
save
public void save() throws com.atlassian.config.ConfigurationException- Specified by:
savein interfaceBambooSharedProperties- Throws:
com.atlassian.config.ConfigurationException
-
load
public void load() throws com.atlassian.config.ConfigurationException- Specified by:
loadin interfaceBambooSharedProperties- Throws:
com.atlassian.config.ConfigurationException
-
-