Class ServerLocalArtifactHandlerConfigurator
- java.lang.Object
-
- com.atlassian.bamboo.build.artifact.handlers.AbstractArtifactHandlerConfigurator
-
- com.atlassian.bamboo.build.artifact.ServerLocalArtifactHandlerConfigurator
-
- All Implemented Interfaces:
ArtifactHandlerConfigurator
,InitablePluginModule<ArtifactHandlerModuleDescriptor>
,BambooPluginModule
- Direct Known Subclasses:
BambooRemoteArtifactHandlerConfigurator
public class ServerLocalArtifactHandlerConfigurator extends AbstractArtifactHandlerConfigurator
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONF_MAX_ARTIFACT_FILE_COUNT
static String
CONF_MAX_ARTIFACT_FILE_COUNT_ENABLED
static long
DEFAULT_MAX_ARTIFACT_FILE_COUNT
static String
REMOTE_HANDLER_CONFIG_PREFIX
-
Fields inherited from class com.atlassian.bamboo.build.artifact.handlers.AbstractArtifactHandlerConfigurator
NON_SHARED_ARTIFACT_OPTION_NAME, SHARED_ARTIFACT_OPTION_NAME
-
-
Constructor Summary
Constructors Constructor Description ServerLocalArtifactHandlerConfigurator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getArtifactHandlerConfiguration(@NotNull Map<String,String> configuration)
Filter out the current configuration of the artifact handler from the given map.@NotNull String
getConfigurationKey(@NotNull String key)
For a provided suffix return full configuration key.static @NotNull String
getRemoteHandlerConfigKey(@NotNull String key)
void
populateContextForEdit(@NotNull Map<String,Object> context)
void
validateConfiguration(@NotNull Map<String,String> newArtifactHandlersConfiguration, @NotNull Map<String,String> oldArtifactHandlersConfiguration, @NotNull ErrorCollection errorCollection)
Validate configuration.-
Methods inherited from class com.atlassian.bamboo.build.artifact.handlers.AbstractArtifactHandlerConfigurator
beforeSave, decorateConfigurationForRuntime, getEncryptedArtifactHandlerConfiguration, init, isConfigurationComplete, postProcessConfiguration
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.build.artifact.handlers.ArtifactHandlerConfigurator
getRawArtifactHandlerConfigurationData
-
-
-
-
Field Detail
-
CONF_MAX_ARTIFACT_FILE_COUNT_ENABLED
public static final String CONF_MAX_ARTIFACT_FILE_COUNT_ENABLED
- See Also:
- Constant Field Values
-
CONF_MAX_ARTIFACT_FILE_COUNT
public static final String CONF_MAX_ARTIFACT_FILE_COUNT
- See Also:
- Constant Field Values
-
DEFAULT_MAX_ARTIFACT_FILE_COUNT
public static final long DEFAULT_MAX_ARTIFACT_FILE_COUNT
- See Also:
- Constant Field Values
-
REMOTE_HANDLER_CONFIG_PREFIX
public static final String REMOTE_HANDLER_CONFIG_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRemoteHandlerConfigKey
@NotNull public static @NotNull String getRemoteHandlerConfigKey(@NotNull @NotNull String key)
-
getConfigurationKey
@NotNull public @NotNull String getConfigurationKey(@NotNull @NotNull String key)
Description copied from interface:ArtifactHandlerConfigurator
For a provided suffix return full configuration key.- Specified by:
getConfigurationKey
in interfaceArtifactHandlerConfigurator
- Overrides:
getConfigurationKey
in classAbstractArtifactHandlerConfigurator
-
getArtifactHandlerConfiguration
public Map<String,String> getArtifactHandlerConfiguration(@NotNull @NotNull Map<String,String> configuration)
Description copied from interface:ArtifactHandlerConfigurator
Filter out the current configuration of the artifact handler from the given map. Don't include data that are not currently used- Specified by:
getArtifactHandlerConfiguration
in interfaceArtifactHandlerConfigurator
- Overrides:
getArtifactHandlerConfiguration
in classAbstractArtifactHandlerConfigurator
- Parameters:
configuration
- - artifact handlers configuration data- Returns:
- Subset of given configuration that is only relevant to this artifact handler's current configuration
-
populateContextForEdit
public void populateContextForEdit(@NotNull @NotNull Map<String,Object> context)
- Specified by:
populateContextForEdit
in interfaceArtifactHandlerConfigurator
- Overrides:
populateContextForEdit
in classAbstractArtifactHandlerConfigurator
-
validateConfiguration
public void validateConfiguration(@NotNull @NotNull Map<String,String> newArtifactHandlersConfiguration, @NotNull @NotNull Map<String,String> oldArtifactHandlersConfiguration, @NotNull @NotNull ErrorCollection errorCollection)
Description copied from interface:ArtifactHandlerConfigurator
Validate configuration.- Specified by:
validateConfiguration
in interfaceArtifactHandlerConfigurator
- Overrides:
validateConfiguration
in classAbstractArtifactHandlerConfigurator
- Parameters:
newArtifactHandlersConfiguration
- new configuration to be validatedoldArtifactHandlersConfiguration
- existing configurationerrorCollection
- error collection to be set on validation failure
-
-