@Component public class IMServerConfigurationConversionFunction extends Object implements RestConversionFunction<InstantMessagingServerDefinition,RestIMServerConfiguration>
InstantMessagingServerDefinition
to
RestIMServerConfiguration
Constructor and Description |
---|
IMServerConfigurationConversionFunction(com.atlassian.sal.api.message.I18nResolver i18nResolver,
LinkService linkService) |
Modifier and Type | Method and Description |
---|---|
RestIMServerConfiguration |
apply(InstantMessagingServerDefinition input,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Transforms a domain object to a
AbstractRestModel . |
InstantMessagingServerDefinition |
merge(RestIMServerConfiguration restIMServerConfiguration,
InstantMessagingServerDefinition imServerDef)
Update existing
InstantMessagingServerDefinition
with RestIMServerConfiguration |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toFunction
@Autowired public IMServerConfigurationConversionFunction(com.atlassian.sal.api.message.I18nResolver i18nResolver, LinkService linkService)
@NotNull public RestIMServerConfiguration apply(@NotNull InstantMessagingServerDefinition input, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
RestConversionFunction
AbstractRestModel
. The resource will include links.apply
in interface RestConversionFunction<InstantMessagingServerDefinition,RestIMServerConfiguration>
input
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the requestpublic InstantMessagingServerDefinition merge(@NotNull RestIMServerConfiguration restIMServerConfiguration, @NotNull InstantMessagingServerDefinition imServerDef) throws WebValidationException
InstantMessagingServerDefinition
with RestIMServerConfiguration
restIMServerConfiguration
- imServerDef
- WebValidationException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.