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
-
Field Summary
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 TypeMethodDescriptionbeforeSave
(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.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 Details
-
ARTIFACT_STORAGE_LOCATION
- See Also:
-
-
Constructor Details
-
AgentLocalArtifactHandlerConfigurator
public AgentLocalArtifactHandlerConfigurator()
-
-
Method Details
-
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
-