Package it.tidalwave.role.ui
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.
A factory that creates a default
PresentationModel
.- Author:
- Fabrizio Giudici
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault PresentationModel
createPresentationModel
(Object datum) Creates a new instance ofPresentationModel
.createPresentationModel
(Object datum, Collection<Object> roles) Creates a new instance ofPresentationModel
with some roles or role factories.
-
Field Details
-
_PresentationModelFactory_
-
-
Method Details
-
createPresentationModel
@Nonnull PresentationModel createPresentationModel(@Nonnull Object datum, @Nonnull Collection<Object> roles) Creates a new instance ofPresentationModel
with some roles or role factories.- Parameters:
datum
- the related datumroles
- roles orRoleFactory
instances to put in the presentation model- Returns:
- the new instance
- Since:
- 3.2-ALPHA-3 (refactored)
-
createPresentationModel
Creates a new instance ofPresentationModel
.- Parameters:
datum
- the related datum- Returns:
- the new instance
- Since:
- 3.2-ALPHA-3
-