Class BambooLinkedRepositoryExportResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.configuration.external.BambooLinkedRepositoryExportResource
@Path("/export/repository")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class BambooLinkedRepositoryExportResource
extends Object
-
Constructor Summary
ConstructorDescriptionBambooLinkedRepositoryExportResource
(RepositoryExportService repositoryExportService, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, FeatureManager featureManager) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
Export configuration of all linked repositories to YAML format.javax.ws.rs.core.Response
exportLinkedRepository
(long repositoryId) Export configuration of a linked repository to YAML formatjavax.ws.rs.core.Response
exportLinkedRepository
(String oidString) Export configuration of a linked repository to YAML formatjavax.ws.rs.core.Response
Export configuration of a linked repository to YAML format
-
Constructor Details
-
BambooLinkedRepositoryExportResource
@Inject public BambooLinkedRepositoryExportResource(RepositoryExportService repositoryExportService, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, FeatureManager featureManager)
-
-
Method Details
-
exportAllLinkedRepositories
@POST @Path("all") public javax.ws.rs.core.Response exportAllLinkedRepositories()Export configuration of all linked repositories to YAML format.- Returns:
- json array of paths to all updated files
-
exportLinkedRepository
@POST @Path("id/{repositoryId}") public javax.ws.rs.core.Response exportLinkedRepository(@PathParam("repositoryId") long repositoryId) Export configuration of a linked repository to YAML format- Parameters:
repositoryId
- linked repository id- Returns:
- json array of paths to all updated files
-
exportLinkedRepository
@POST @Path("oid/{oid}") public javax.ws.rs.core.Response exportLinkedRepository(@PathParam("oid") String oidString) Export configuration of a linked repository to YAML format- Parameters:
oid
- linked repository oid- Returns:
- json array of paths to all updated files
-
exportLinkedRepositoryByName
@POST @Path("name/{name}") public javax.ws.rs.core.Response exportLinkedRepositoryByName(@PathParam("name") String name) Export configuration of a linked repository to YAML format- Parameters:
name
- linked repository name- Returns:
- json array of paths to all updated files
-