@Component public class AuditLogConversionFunction extends Object implements RestConversionFunction<Boolean,RestAuditLogConfiguration>
auditLoggingEnabled
to RestAuditLogConfiguration
Constructor and Description |
---|
AuditLogConversionFunction(LinkService linkService) |
Modifier and Type | Method and Description |
---|---|
RestAuditLogConfiguration |
apply(Boolean auditLoggingEnabled,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Transforms a domain object to a
AbstractRestModel . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toFunction
@Autowired public AuditLogConversionFunction(LinkService linkService)
@NotNull public RestAuditLogConfiguration apply(@NotNull Boolean auditLoggingEnabled, @Nullable Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
RestConversionFunction
AbstractRestModel
. The resource will include links.apply
in interface RestConversionFunction<Boolean,RestAuditLogConfiguration>
auditLoggingEnabled
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the requestCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.