public class ResultDisplay extends Object
| Modifier and Type | Field and Description | 
|---|---|
private Boolean | 
_launchSearchAtStartup  | 
private String | 
_pageId  | 
private AmetysObjectResolver | 
_resolver  | 
private String | 
_serviceGroupId  | 
private ResultDisplayType | 
_type  | 
| Constructor and Description | 
|---|
ResultDisplay(ResultDisplayType type,
             String page,
             Boolean launchSearchAtStartup,
             String serviceGroupId,
             AmetysObjectResolver resolver)
Creates a ResultDisplay 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ResultDisplayType | 
getType()
Gets the type 
 | 
Optional<Boolean> | 
launchSearchAtStartup()
Returns  
true if a search at startup must be launched. | 
Optional<Page> | 
resultPage()
Gets the result page. 
 | 
String | 
serviceGroupId()
Gets the service group id 
 | 
private ResultDisplayType _type
private Boolean _launchSearchAtStartup
private String _serviceGroupId
private AmetysObjectResolver _resolver
public ResultDisplay(ResultDisplayType type, String page, Boolean launchSearchAtStartup, String serviceGroupId, AmetysObjectResolver resolver)
type - the typepage - the page. Must be non-null if type is ResultDisplayType.ON_PAGE, must be null otherwise.launchSearchAtStartup - true to launch a search at startup. Must be null if type is ResultDisplayType.ON_PAGE, must not otherwise.serviceGroupId - the service group idresolver - The ametys object resolverpublic ResultDisplayType getType()
public Optional<Page> resultPage()
getType() returns ResultDisplayType.ON_PAGE, must be empty otherwise.public Optional<Boolean> launchSearchAtStartup()
true if a search at startup must be launched. Must be empty if getType() returns ResultDisplayType.ON_PAGE, must not otherwise.true if a search at startup must be launchedpublic String serviceGroupId()