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 String
BAMBOO_PROPERTIES
static String
BUILD_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 boolean
configFileExists()
void
createNewJmsKeyStorePassword(@NotNull String encryptedPassword)
@NotNull String
getBuildNumber()
@NotNull Path
getConfigFilePath()
String
getJmsKeyStorePasswordEncrypted()
void
load()
void
save()
void
setBuildNumber(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:
setBuildNumber
in interfaceBambooSharedProperties
- Throws:
com.atlassian.config.ConfigurationException
-
getBuildNumber
@NotNull public @NotNull String getBuildNumber() throws com.atlassian.config.ConfigurationException
- Specified by:
getBuildNumber
in interfaceBambooSharedProperties
- Throws:
com.atlassian.config.ConfigurationException
-
getJmsKeyStorePasswordEncrypted
public String getJmsKeyStorePasswordEncrypted()
- Specified by:
getJmsKeyStorePasswordEncrypted
in interfaceBambooSharedProperties
-
createNewJmsKeyStorePassword
public void createNewJmsKeyStorePassword(@NotNull @NotNull String encryptedPassword) throws com.atlassian.config.ConfigurationException
- Specified by:
createNewJmsKeyStorePassword
in interfaceBambooSharedProperties
- Throws:
com.atlassian.config.ConfigurationException
-
configFileExists
public boolean configFileExists()
- Specified by:
configFileExists
in interfaceBambooSharedProperties
-
getConfigFilePath
@NotNull public @NotNull Path getConfigFilePath()
- Specified by:
getConfigFilePath
in interfaceBambooSharedProperties
-
save
public void save() throws com.atlassian.config.ConfigurationException
- Specified by:
save
in interfaceBambooSharedProperties
- Throws:
com.atlassian.config.ConfigurationException
-
load
public void load() throws com.atlassian.config.ConfigurationException
- Specified by:
load
in interfaceBambooSharedProperties
- Throws:
com.atlassian.config.ConfigurationException
-
-