@Internal
public interface ArtifactHandlersService
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getArtifactHandlerConfigurationWithoutPrefix(String artifactHandlerKey)
Get configuration a specific artifact handler.
|
List<ArtifactHandlerConfigurator> |
getArtifactHandlerConfigurators()
Get configurators for enabled artifact handlers
|
List<ArtifactHandlerModuleDescriptor> |
getArtifactHandlerModuleDescriptors()
Get list of module descriptors for enabled artifact handlers
|
Map<String,String> |
getConfiguration()
Get artifact handlers configuration
|
Set<String> |
getEnabledArtifactHandlerKeys()
Selected artifact handler stored in configuration as artifactHandler.getConfigurationPrefix + ":enabledForShared" key with "true" value*
|
Map<String,String> |
getEncryptedArtifactHandlerConfigurationWithoutPrefix(String artifactHandlerKey)
Get configuration a specific artifact handler.
|
Map<String,String> |
getRuntimeConfiguration()
Get artifact handlers configuration for runtime.
|
MessageCollection |
saveConfiguration(Map<String,String> configuration)
Persist artifact handlers configuration
|
void |
updateArtifactHandlerConfiguration(String artifactHandlerKey,
Map<String,String> configuration)
Update configuration of the given artifact handler.
|
ErrorCollection |
validateConfiguration(Map<String,String> configuration)
Validate configuration
|
@NotNull Map<String,String> getConfiguration()
@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 Set<String> getEnabledArtifactHandlerKeys()
MessageCollection saveConfiguration(@NotNull Map<String,String> configuration)
@NotNull List<ArtifactHandlerConfigurator> getArtifactHandlerConfigurators()
@NotNull List<ArtifactHandlerModuleDescriptor> getArtifactHandlerModuleDescriptors()
ErrorCollection validateConfiguration(@NotNull Map<String,String> configuration)
Map<String,String> getEncryptedArtifactHandlerConfigurationWithoutPrefix(@NotNull String artifactHandlerKey)
artifactHandlerKey
- Key of the artifact handler to be retrievedMap<String,String> getArtifactHandlerConfigurationWithoutPrefix(@NotNull String artifactHandlerKey)
artifactHandlerKey
- Key of the artifact handler to be retrievedvoid updateArtifactHandlerConfiguration(@NotNull String artifactHandlerKey, @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 handlerWebValidationException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.