Interface DefaultDisplayService
- All Known Implementing Classes:
DefaultDisplayServiceImpl
public interface DefaultDisplayService
-
Method Summary
Modifier and TypeMethodDescriptionevaluateDefaultDisplay
(Entity entity) default String
evaluateDefaultDisplay
(Entity entity, String... types) Deprecated.evaluateDisplay
(Entity entity, DefaultDisplay.Options baseOptions, DefaultDisplay.Options... fallbackOptions) evaluate display for the first available option from the provided options.evaluateDisplay
(Entity entity, String... types) evaluate display for the first available type from the provided types.evaluateDisplayForOption
(Entity entity, DefaultDisplay.Options option) evaluates the display for the given optionsgetDefaultDisplay
(EntityModel model)
-
Method Details
-
evaluateDefaultDisplay
-
evaluateDefaultDisplay
Deprecated.useevaluateDisplay(Entity, String...)
as naming is confusingevaluate display for the first available type from the provided types. If none of the types are available for the provided entity, the default display is evaluated.- Parameters:
entity
- the entity to evaluate the display fortypes
- the list of types to try- Returns:
- the evaluated display
-
evaluateDisplay
evaluate display for the first available type from the provided types. If none of the types are available for the provided entity, the default display is evaluated.- Parameters:
entity
- the entity to evaluate the display fortypes
- the list of types to try- Returns:
- the evaluated display
-
evaluateDisplay
String evaluateDisplay(Entity entity, DefaultDisplay.Options baseOptions, DefaultDisplay.Options... fallbackOptions) evaluate display for the first available option from the provided options. If none of the options match a display, the default display is evaluated withbaseOptions
.- Parameters:
entity
- the entity to evaluate the display forbaseOptions
- the options to try first and to use for the default display if no type is providedfallbackOptions
- the options to try ifbaseOptions
did not provide a display- Returns:
- the evaluated display
-
evaluateDisplayForOption
evaluates the display for the given options- Parameters:
entity
- the entity to evaluate the display foroption
- the options used to find and evaluate the display- Returns:
- the evaluated display or null if none could be found for type in options
-
getDefaultDisplay
-
evaluateDisplay(Entity, String...)
as naming is confusing