org.gcube.portlets.user.results.client.model
public class Model extends Object
Model class represents the current application state in the MVC pattern| Constructor and Description |
|---|
Model(Controller controller) |
| Modifier and Type | Method and Description |
|---|---|
static Model |
get() |
BasketModel |
getBasketModel() |
ResultsetServiceAsync |
getResultService() |
void |
getResultsFromSearchService(int mode)
Look in the session if there are results, if so display them.
|
void |
getResultsFromSession()
Look in the session if there are results, if so display them.
|
void |
loadResults()
This method is called if the user has not searched per collection
|
void |
setBasketModel(BasketModel basketModel) |
public static Model singleton
public Model(Controller controller)
controller - public static Model get()
public void loadResults()
public void getResultsFromSession()
public void getResultsFromSearchService(int mode)
mode - if mode == 0 get the first record of the resultset,
mode == 1 get the previous, mode = 2 get the nextpublic ResultsetServiceAsync getResultService()
public BasketModel getBasketModel()
public void setBasketModel(BasketModel basketModel)
Copyright © 2013. All Rights Reserved.