Class MailConfigurationConversionFunction
java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.mail.MailConfigurationConversionFunction
- All Implemented Interfaces:
RestConversionFunction<com.atlassian.mail.server.SMTPMailServer,
RestMailConfiguration>
@Component
public class MailConfigurationConversionFunction
extends Object
implements RestConversionFunction<com.atlassian.mail.server.SMTPMailServer,RestMailConfiguration>
Function to convert
SMTPMailServer
to RestMailConfiguration
- Since:
- 5.10
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull RestMailConfiguration
apply
(@NotNull com.atlassian.mail.server.SMTPMailServer input, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo) Transforms a domain object to aAbstractRestModel
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.plugins.rest.common.RestConversionFunction
toFunction
-
Constructor Details
-
MailConfigurationConversionFunction
-
-
Method Details
-
apply
@NotNull public @NotNull RestMailConfiguration apply(@NotNull @NotNull com.atlassian.mail.server.SMTPMailServer input, @NotNull @NotNull Expansion expansion, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) Description copied from interface:RestConversionFunction
Transforms a domain object to aAbstractRestModel
. The resource will include links.- Specified by:
apply
in interfaceRestConversionFunction<com.atlassian.mail.server.SMTPMailServer,
RestMailConfiguration> - Parameters:
input
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the request- Returns:
- a RestResource
-