Class MailConfigurationResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.admin.mail.MailConfigurationResource
-
public class MailConfigurationResource extends Object
REST resource for accessing / updating the mail server configuration.- Since:
- 5.10
-
-
Constructor Summary
Constructors Constructor Description MailConfigurationResource(MailConfigurationService mailConfigurationService, MailConfigurationConversionFunction function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
deleteMailConfiguration()
RestMailConfiguration
getMailConfiguration(@NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
RestMailConfiguration
updateMailConfiguration(RestMailConfiguration restMailConfiguration, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
-
-
-
Constructor Detail
-
MailConfigurationResource
@Inject public MailConfigurationResource(MailConfigurationService mailConfigurationService, MailConfigurationConversionFunction function)
-
-
Method Detail
-
getMailConfiguration
public RestMailConfiguration getMailConfiguration(@NotNull @Context @NotNull Expansion expansion, @NotNull @Context @NotNull javax.ws.rs.core.UriInfo uriInfo) throws UnauthorisedException, NotFoundException
-
updateMailConfiguration
public RestMailConfiguration updateMailConfiguration(RestMailConfiguration restMailConfiguration, @NotNull @Context @NotNull Expansion expansion, @NotNull @Context @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException, UnauthorisedException
-
deleteMailConfiguration
public javax.ws.rs.core.Response deleteMailConfiguration() throws UnauthorisedException, NotFoundException, com.atlassian.mail.MailException
- Throws:
UnauthorisedException
NotFoundException
com.atlassian.mail.MailException
-
-