@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class) public class Search extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TERM_PARAMETER |
Constructor and Description |
---|
Search(org.apache.sling.api.SlingHttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
int |
getCount() |
int |
getCurrentPage() |
int |
getEnd() |
String |
getFinalize()
This is a horrible hack to close the resource resolver used for retrieving
the search results
|
Integer[] |
getPages() |
List<org.apache.sling.api.resource.Resource> |
getResults() |
int |
getStart() |
String |
getTerm() |
void |
init() |
boolean |
isFirst() |
boolean |
isLast() |
public static final String TERM_PARAMETER
public int getCount()
public int getCurrentPage()
public int getEnd()
public Integer[] getPages()
public List<org.apache.sling.api.resource.Resource> getResults()
public int getStart()
public String getTerm()
@PostConstruct public void init()
public String getFinalize()
public boolean isFirst()
public boolean isLast()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.