Interface PresentationModelFactory

All Known Implementing Classes:
DefaultPresentationModelFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PresentationModelFactory
A factory that creates a default PresentationModel.
Author:
Fabrizio Giudici
  • Field Details

  • Method Details

    • createPresentationModel

      @Nonnull PresentationModel createPresentationModel(@Nonnull Object datum, @Nonnull Collection<Object> roles)
      Creates a new instance of PresentationModel with some roles or role factories.
      Parameters:
      datum - the related datum
      roles - roles or RoleFactory instances to put in the presentation model
      Returns:
      the new instance
      Since:
      3.2-ALPHA-3 (refactored)
    • createPresentationModel

      @Nonnull default PresentationModel createPresentationModel(@Nonnull Object datum)
      Creates a new instance of PresentationModel.
      Parameters:
      datum - the related datum
      Returns:
      the new instance
      Since:
      3.2-ALPHA-3