Class BambooCredentialsExportResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.configuration.external.BambooCredentialsExportResource
-
@Singleton public class BambooCredentialsExportResource extends Object
-
-
Constructor Summary
Constructors Constructor Description BambooCredentialsExportResource(CredentialsExportService credentialsExportService, EncryptedCredentialsAccessor encryptedCredentialsAccessor, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, FeatureManager featureManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponseexportAllCredentials()Export configuration of all shared credentials to YAML format.javax.ws.rs.core.ResponseexportCredentials(long credentialId, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)Export configuration of a shared credential to YAML formatjavax.ws.rs.core.ResponseexportCredentials(String oidString, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)Export configuration of a shared credential to YAML formatjavax.ws.rs.core.ResponseexportCredentialsByName(String name, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)Export configuration of a shared credential to YAML format
-
-
-
Constructor Detail
-
BambooCredentialsExportResource
public BambooCredentialsExportResource(CredentialsExportService credentialsExportService, EncryptedCredentialsAccessor encryptedCredentialsAccessor, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, FeatureManager featureManager)
-
-
Method Detail
-
exportAllCredentials
public javax.ws.rs.core.Response exportAllCredentials()
Export configuration of all shared credentials to YAML format.- Returns:
- json array of paths to all updated files
-
exportCredentials
public javax.ws.rs.core.Response exportCredentials(long credentialId, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)Export configuration of a shared credential to YAML format- Parameters:
credentialId- shared credential id- Returns:
- json array of paths to all updated files
-
exportCredentials
public javax.ws.rs.core.Response exportCredentials(String oidString, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Export configuration of a shared credential to YAML format- Parameters:
oidString- shared credential oid- Returns:
- json array of paths to all updated files
-
exportCredentialsByName
public javax.ws.rs.core.Response exportCredentialsByName(String name, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Export configuration of a shared credential to YAML format- Parameters:
name- shared credential name- Returns:
- json array of paths to all updated files
-
-