@Internal
public interface ArtifactHandlersService
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getArtifactHandlerConfigurationWithoutPrefix(@NotNull String artifactHandlerKey)
Get configuration a specific artifact handler.
|
@NotNull List<ArtifactHandlerConfigurator> |
getArtifactHandlerConfigurators()
Get configurators for enabled artifact handlers
|
@NotNull List<ArtifactHandlerModuleDescriptor> |
getArtifactHandlerModuleDescriptors()
Get list of module descriptors for enabled artifact handlers
|
@NotNull Map<String,String> |
getConfiguration()
Get artifact handlers configuration
|
@NotNull Set<String> |
getEnabledArtifactHandlerKeys()
Selected artifact handler stored in configuration as artifactHandler.getConfigurationPrefix + ":enabledForShared" key with "true" value*
|
Map<String,String> |
getEncryptedArtifactHandlerConfigurationWithoutPrefix(@NotNull String artifactHandlerKey)
Get configuration a specific artifact handler.
|
@NotNull Map<String,String> |
getRuntimeConfiguration()
Get artifact handlers configuration for runtime.
|
MessageCollection |
saveConfiguration(@NotNull Map<String,String> configuration)
Persist artifact handlers configuration
|
void |
updateArtifactHandlerConfiguration(@NotNull String artifactHandlerKey,
@NotNull Map<String,String> configuration)
Update configuration of the given artifact handler.
|
ErrorCollection |
validateConfiguration(@NotNull Map<String,String> configuration)
Validate configuration
|
@NotNull @NotNull Map<String,String> getConfiguration()
@NotNull @NotNull Map<String,String> getRuntimeConfiguration()
Runtime configuration might be different from standard configuration. Each ArtifactHandler
can have the configuration decorated by it's configurator implementation of ArtifactHandlerConfigurator.decorateConfigurationForRuntime(Map).
@NotNull @NotNull Set<String> getEnabledArtifactHandlerKeys()
MessageCollection saveConfiguration(@NotNull @NotNull Map<String,String> configuration)
@NotNull @NotNull List<ArtifactHandlerConfigurator> getArtifactHandlerConfigurators()
@NotNull @NotNull List<ArtifactHandlerModuleDescriptor> getArtifactHandlerModuleDescriptors()
ErrorCollection validateConfiguration(@NotNull @NotNull Map<String,String> configuration)
Map<String,String> getEncryptedArtifactHandlerConfigurationWithoutPrefix(@NotNull @NotNull String artifactHandlerKey)
artifactHandlerKey - Key of the artifact handler to be retrievedMap<String,String> getArtifactHandlerConfigurationWithoutPrefix(@NotNull @NotNull String artifactHandlerKey)
artifactHandlerKey - Key of the artifact handler to be retrievedvoid updateArtifactHandlerConfiguration(@NotNull
@NotNull String artifactHandlerKey,
@NotNull
@NotNull Map<String,String> configuration)
throws WebValidationException
configuration that are irrelevant
to the given artifactHandlerKey will be ignored.artifactHandlerKey - Key of the artifact handler to be updatedconfiguration - configuration of the artifact handlerWebValidationExceptionCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.