Class MailConfigurationResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.mail.MailConfigurationResource
@Path("/config/mailServer")
@Produces("application/json")
@Consumes("application/json")
public class MailConfigurationResource
extends Object
REST resource for accessing / updating the mail server configuration.
- Since:
- 5.10
-
Constructor Summary
ConstructorDescriptionMailConfigurationResource
(MailConfigurationService mailConfigurationService, MailConfigurationConversionFunction function) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
getMailConfiguration
(@NotNull ExpansionParam expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo) updateMailConfiguration
(RestMailConfiguration restMailConfiguration, @NotNull ExpansionParam expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
-
Constructor Details
-
MailConfigurationResource
@Inject public MailConfigurationResource(MailConfigurationService mailConfigurationService, MailConfigurationConversionFunction function)
-
-
Method Details
-
getMailConfiguration
@GET public RestMailConfiguration getMailConfiguration(@NotNull @BeanParam @NotNull ExpansionParam expansion, @NotNull @Context @NotNull javax.ws.rs.core.UriInfo uriInfo) throws UnauthorisedException, NotFoundException -
updateMailConfiguration
@PUT public RestMailConfiguration updateMailConfiguration(RestMailConfiguration restMailConfiguration, @NotNull @BeanParam @NotNull ExpansionParam expansion, @NotNull @Context @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException, UnauthorisedException -
deleteMailConfiguration
@DELETE public javax.ws.rs.core.Response deleteMailConfiguration() throws UnauthorisedException, NotFoundException, com.atlassian.mail.MailException- Throws:
UnauthorisedException
NotFoundException
com.atlassian.mail.MailException
-