Class ResultDisplay
java.lang.Object
org.ametys.web.frontoffice.search.instance.model.ResultDisplay
A configuration of result display.
-
Constructor Summary
ConstructorsConstructorDescriptionResultDisplay(ResultDisplayType type, String page, Boolean launchSearchAtStartup, String serviceGroupId, AmetysObjectResolver resolver) Creates a ResultDisplay -
Method Summary
Modifier and TypeMethodDescriptiongetType()Gets the typeReturnstrueif a search at startup must be launched.Gets the result page.Gets the service group id
-
Constructor Details
-
ResultDisplay
public ResultDisplay(ResultDisplayType type, String page, Boolean launchSearchAtStartup, String serviceGroupId, AmetysObjectResolver resolver) Creates a ResultDisplay- Parameters:
type- the typepage- the page. Must be non-null if type isResultDisplayType.ON_PAGE, must be null otherwise.launchSearchAtStartup- true to launch a search at startup. Must be null if type isResultDisplayType.ON_PAGE, must not otherwise.serviceGroupId- the service group idresolver- The ametys object resolver
-
-
Method Details
-
getType
Gets the type- Returns:
- the type
-
resultPage
Gets the result page. Must be non-empty ifgetType()returnsResultDisplayType.ON_PAGE, must be empty otherwise.- Returns:
- the result page
-
launchSearchAtStartup
Returnstrueif a search at startup must be launched. Must be empty ifgetType()returnsResultDisplayType.ON_PAGE, must not otherwise.- Returns:
trueif a search at startup must be launched
-
serviceGroupId
Gets the service group id- Returns:
- the service group id
-