Interface RestConversionFunction<F,T extends AbstractRestModel>

All Known Implementing Classes:
AuditLogConversionFunction, BuildConcurrencyConversionFunction, ElasticConfigurationConversionFunction, GeneralConfigurationConversionFunction, IMServerConfigurationConversionFunction, JobConversionFunction, MailConfigurationConversionFunction, PlanConversionFunction, QuarantineConfigConversionFunction, RemoteAgentConfigurationConversionFunction, RestArtifactHandlerConversionFunction, SharedCredentialConversionFunction, StageConversionFunction, TaskConversionFunction, TrustedKeyConversionFunction

public interface RestConversionFunction<F,T extends AbstractRestModel>
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(F input, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
    Transforms a domain object to a AbstractRestModel.
    default Function<F,T>
    toFunction(@NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
     
  • Method Details

    • 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)