Class BambooProjectImportResource

java.lang.Object
com.atlassian.bamboo.plugins.rest.configuration.external.BambooProjectImportResource

@Path("/import/project") @Consumes("application/x-yaml") @Produces("application/json") @Singleton public class BambooProjectImportResource extends Object
  • Constructor Details

    • BambooProjectImportResource

      @Inject public BambooProjectImportResource(com.atlassian.event.api.EventPublisher eventPublisher, ProjectImportService projectImportService, BambooAuthenticationContext authenticationContext, com.atlassian.sal.api.message.I18nResolver i18nResolver)
  • Method Details

    • importProject

      @POST public javax.ws.rs.core.Response importProject(@NotNull @NotNull String yamlString, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
      Import configuration of a project in YAML format.
      Throws:
      WebValidationException
    • importProjectPermissions

      @POST @Path("permissions") public javax.ws.rs.core.Response importProjectPermissions(@NotNull @NotNull String yamlString, @Context javax.ws.rs.core.HttpHeaders headers) throws WebValidationException
      Import configuration of project permissions in YAML format.
      Throws:
      WebValidationException