@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 |
|---|---|
@NotNull RestIMServerConfiguration |
apply(@NotNull InstantMessagingServerDefinition input,
@NotNull Expansion expansion,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Transforms a domain object to a
AbstractRestModel. |
InstantMessagingServerDefinition |
merge(@NotNull RestIMServerConfiguration restIMServerConfiguration,
@NotNull InstantMessagingServerDefinition imServerDef)
Update existing
InstantMessagingServerDefinition
with RestIMServerConfiguration |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoFunction@Autowired
public IMServerConfigurationConversionFunction(com.atlassian.sal.api.message.I18nResolver i18nResolver,
LinkService linkService)
@NotNull public @NotNull RestIMServerConfiguration apply(@NotNull @NotNull InstantMessagingServerDefinition input, @NotNull @NotNull Expansion expansion, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo)
RestConversionFunctionAbstractRestModel. 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 @NotNull RestIMServerConfiguration restIMServerConfiguration, @NotNull @NotNull InstantMessagingServerDefinition imServerDef) throws WebValidationException
InstantMessagingServerDefinition
with RestIMServerConfigurationrestIMServerConfiguration - imServerDef - WebValidationExceptionCopyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.