Class ResultDisplay
- java.lang.Object
 - 
- org.ametys.web.frontoffice.search.instance.model.ResultDisplay
 
 
- 
public class ResultDisplay extends Object
A configuration of result display. 
- 
- 
Field Summary
Fields Modifier and Type Field Description private Boolean_launchSearchAtStartupprivate String_pageIdprivate AmetysObjectResolver_resolverprivate String_serviceGroupIdprivate ResultDisplayType_type 
- 
Constructor Summary
Constructors Constructor Description ResultDisplay(ResultDisplayType type, String page, Boolean launchSearchAtStartup, String serviceGroupId, AmetysObjectResolver resolver)Creates a ResultDisplay 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultDisplayTypegetType()Gets the typeOptional<Boolean>launchSearchAtStartup()Returnstrueif a search at startup must be launched.Optional<Page>resultPage()Gets the result page.StringserviceGroupId()Gets the service group id 
 - 
 
- 
- 
Field Detail
- 
_type
private ResultDisplayType _type
 
- 
_launchSearchAtStartup
private Boolean _launchSearchAtStartup
 
- 
_serviceGroupId
private String _serviceGroupId
 
- 
_resolver
private AmetysObjectResolver _resolver
 
 - 
 
- 
Constructor Detail
- 
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 Detail
- 
getType
public ResultDisplayType getType()
Gets the type- Returns:
 - the type
 
 
- 
resultPage
public Optional<Page> resultPage()
Gets the result page. Must be non-empty ifgetType()returnsResultDisplayType.ON_PAGE, must be empty otherwise.- Returns:
 - the result page
 
 
- 
launchSearchAtStartup
public Optional<Boolean> 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
public String serviceGroupId()
Gets the service group id- Returns:
 - the service group id
 
 
 - 
 
 -