Class MailConfigurationConversionFunction

    • Constructor Detail

      • MailConfigurationConversionFunction

        @Autowired
        public MailConfigurationConversionFunction​(LinkService linkService)
    • Method Detail

      • 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 a AbstractRestModel. The resource will include links.
        Specified by:
        apply in interface RestConversionFunction<com.atlassian.mail.server.SMTPMailServer,​RestMailConfiguration>
        Parameters:
        input - The domain object to transform
        expansion - The expansion to use when transforming the object
        uriInfo - URI info from the request
        Returns:
        a RestResource