Interface RestConversionFunction<F,​T extends AbstractRestModel>

    • Method Detail

      • apply

        @NotNull
        T apply​(@NotNull
                F input,
                @NotNull
                @NotNull Expansion expansion,
                @NotNull
                @NotNull javax.ws.rs.core.UriInfo uriInfo)
        Transforms a domain object to a AbstractRestModel. The resource will include links.
        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
      • toFunction

        default Function<F,​T> toFunction​(@NotNull
                                               @NotNull Expansion expansion,
                                               @NotNull
                                               @NotNull javax.ws.rs.core.UriInfo uriInfo)