Class AgentLocalArtifactHandlerConfigurator
- java.lang.Object
-
- com.atlassian.bamboo.build.artifact.handlers.AbstractArtifactHandlerConfigurator
-
- com.atlassian.bamboo.build.artifact.AgentLocalArtifactHandlerConfigurator
-
- All Implemented Interfaces:
ArtifactHandlerConfigurator
,InitablePluginModule<ArtifactHandlerModuleDescriptor>
,BambooPluginModule
public class AgentLocalArtifactHandlerConfigurator extends AbstractArtifactHandlerConfigurator
-
-
Field Summary
Fields Modifier and Type Field Description static String
ARTIFACT_STORAGE_LOCATION
-
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 AgentLocalArtifactHandlerConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageCollection
beforeSave(Map<String,String> artifactHandlersConfigurationBeforeSave, Map<String,String> existingArtifactHandlersConfiguration)
Pre save action handler, allows to gather feedback from configurator before artifact handler configuration saving.void
decorateConfigurationForRuntime(@NotNull Map<String,String> artifactHandlersConfiguration)
Decorate artifact handlers configuration for runtime.Map<String,String>
getArtifactHandlerConfiguration(@NotNull Map<String,String> configuration)
Filter out the current configuration of the artifact handler from the given map.-
Methods inherited from class com.atlassian.bamboo.build.artifact.handlers.AbstractArtifactHandlerConfigurator
getConfigurationKey, getEncryptedArtifactHandlerConfiguration, init, isConfigurationComplete, populateContextForEdit, postProcessConfiguration, validateConfiguration
-
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
-
ARTIFACT_STORAGE_LOCATION
public static final String ARTIFACT_STORAGE_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
decorateConfigurationForRuntime
public void decorateConfigurationForRuntime(@NotNull @NotNull Map<String,String> artifactHandlersConfiguration)
Description copied from interface:ArtifactHandlerConfigurator
Decorate artifact handlers configuration for runtime. Implement this method to append any necessary properties which were not persisted in handler configuration.- Specified by:
decorateConfigurationForRuntime
in interfaceArtifactHandlerConfigurator
- Overrides:
decorateConfigurationForRuntime
in classAbstractArtifactHandlerConfigurator
- Parameters:
artifactHandlersConfiguration
- artifact handlers configuration map
-
beforeSave
public MessageCollection beforeSave(Map<String,String> artifactHandlersConfigurationBeforeSave, Map<String,String> existingArtifactHandlersConfiguration)
Description copied from interface:ArtifactHandlerConfigurator
Pre save action handler, allows to gather feedback from configurator before artifact handler configuration saving.- Specified by:
beforeSave
in interfaceArtifactHandlerConfigurator
- Overrides:
beforeSave
in classAbstractArtifactHandlerConfigurator
- Parameters:
artifactHandlersConfigurationBeforeSave
- updated configurationexistingArtifactHandlersConfiguration
- existing configuration- Returns:
- collection of messages which should be shown to user after configuration saving
-
-