public class ArtifactHandlersServiceImpl extends Object implements ArtifactHandlersService
Modifier and Type | Field and Description |
---|---|
static String |
BANDANA_KEY |
static String |
ENABLED_FOR_NON_SHARED |
static String |
ENABLED_FOR_SHARED |
Constructor and Description |
---|
ArtifactHandlersServiceImpl() |
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 stores 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> artifactHandlerConfigurationToSave)
Validate configuration
|
public static final String BANDANA_KEY
public static final String ENABLED_FOR_SHARED
public static final String ENABLED_FOR_NON_SHARED
@NotNull public Map<String,String> getConfiguration()
ArtifactHandlersService
getConfiguration
in interface ArtifactHandlersService
@NotNull public Map<String,String> getRuntimeConfiguration()
ArtifactHandlersService
Runtime configuration might be different from standard configuration
. Each ArtifactHandler
can have the configuration decorated by it's configurator implementation of ArtifactHandlerConfigurator.decorateConfigurationForRuntime(Map)
.
getRuntimeConfiguration
in interface ArtifactHandlersService
@NotNull public Set<String> getEnabledArtifactHandlerKeys()
getEnabledArtifactHandlerKeys
in interface ArtifactHandlersService
public MessageCollection saveConfiguration(@NotNull Map<String,String> configuration)
ArtifactHandlersService
saveConfiguration
in interface ArtifactHandlersService
public ErrorCollection validateConfiguration(@NotNull Map<String,String> artifactHandlerConfigurationToSave)
ArtifactHandlersService
validateConfiguration
in interface ArtifactHandlersService
public Map<String,String> getEncryptedArtifactHandlerConfigurationWithoutPrefix(@NotNull String artifactHandlerKey)
ArtifactHandlersService
getEncryptedArtifactHandlerConfigurationWithoutPrefix
in interface ArtifactHandlersService
artifactHandlerKey
- Key of the artifact handler to be retrievedpublic Map<String,String> getArtifactHandlerConfigurationWithoutPrefix(@NotNull String artifactHandlerKey)
ArtifactHandlersService
getArtifactHandlerConfigurationWithoutPrefix
in interface ArtifactHandlersService
artifactHandlerKey
- Key of the artifact handler to be retrievedpublic void updateArtifactHandlerConfiguration(@NotNull String artifactHandlerKey, @NotNull Map<String,String> configuration) throws WebValidationException
ArtifactHandlersService
configuration
that are irrelevant
to the given artifactHandlerKey
will be ignored.updateArtifactHandlerConfiguration
in interface ArtifactHandlersService
artifactHandlerKey
- Key of the artifact handler to be updatedconfiguration
- configuration of the artifact handlerWebValidationException
@NotNull public List<ArtifactHandlerConfigurator> getArtifactHandlerConfigurators()
ArtifactHandlersService
getArtifactHandlerConfigurators
in interface ArtifactHandlersService
@NotNull public List<ArtifactHandlerModuleDescriptor> getArtifactHandlerModuleDescriptors()
ArtifactHandlersService
getArtifactHandlerModuleDescriptors
in interface ArtifactHandlersService
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.