@Internal public interface ArtifactHandlerConfigurator extends InitablePluginModule<ArtifactHandlerModuleDescriptor>
ArtifactHandler
.Modifier and Type | Method and 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(Map<String,String> artifactHandlersConfiguration)
Decorate artifact handlers configuration for runtime.
|
Map<String,String> |
getArtifactHandlerConfiguration(Map<String,String> configuration)
Filter out configuration of the artifact handler from the given map.
|
Map<String,String> |
getEncryptedArtifactHandlerConfiguration(Map<String,String> configuration)
Filter out configuration of the artifact handler from the given map and encrypt sensitive field values.
|
boolean |
isConfigurationComplete(Map<String,String> artifactHandlersConfiguration)
Validate if configuration of the artifact handler is complete
|
void |
populateContextForEdit(Map<String,Object> context) |
void |
postProcessConfiguration(ActionParametersMap actionParametersMap)
Any configuration adjustments that need to happen before configuration is saved should be done here.
|
void |
validateConfiguration(Map<String,String> newArtifactHandlersConfiguration,
Map<String,String> oldArtifactHandlersConfiguration,
ErrorCollection errorCollection)
Validate configuration.
|
init
void postProcessConfiguration(ActionParametersMap actionParametersMap)
void decorateConfigurationForRuntime(@NotNull Map<String,String> artifactHandlersConfiguration)
artifactHandlersConfiguration
- artifact handlers configuration mapvoid validateConfiguration(@NotNull Map<String,String> newArtifactHandlersConfiguration, @NotNull Map<String,String> oldArtifactHandlersConfiguration, @NotNull ErrorCollection errorCollection)
newArtifactHandlersConfiguration
- new configuration to be validatedoldArtifactHandlersConfiguration
- existing configurationerrorCollection
- error collection to be set on validation failureboolean isConfigurationComplete(@NotNull Map<String,String> artifactHandlersConfiguration)
artifactHandlersConfiguration
- configuration to be validatedMap<String,String> getArtifactHandlerConfiguration(@NotNull Map<String,String> configuration)
configuration
- Map<String,String> getEncryptedArtifactHandlerConfiguration(@NotNull Map<String,String> configuration)
configuration
- MessageCollection beforeSave(Map<String,String> artifactHandlersConfigurationBeforeSave, Map<String,String> existingArtifactHandlersConfiguration)
artifactHandlersConfigurationBeforeSave
- updated configurationexistingArtifactHandlersConfiguration
- existing configurationCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.