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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final long
static final String
Fields inherited from class com.atlassian.bamboo.build.artifact.handlers.AbstractArtifactHandlerConfigurator
NON_SHARED_ARTIFACT_OPTION_NAME, SHARED_ARTIFACT_OPTION_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetArtifactHandlerConfiguration
(@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 Details
-
CONF_MAX_ARTIFACT_FILE_COUNT_ENABLED
- See Also:
-
CONF_MAX_ARTIFACT_FILE_COUNT
- See Also:
-
DEFAULT_MAX_ARTIFACT_FILE_COUNT
public static final long DEFAULT_MAX_ARTIFACT_FILE_COUNT- See Also:
-
REMOTE_HANDLER_CONFIG_PREFIX
- See Also:
-
-
Constructor Details
-
ServerLocalArtifactHandlerConfigurator
public ServerLocalArtifactHandlerConfigurator()
-
-
Method Details
-
getRemoteHandlerConfigKey
-
getConfigurationKey
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
- 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
-