|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@DataNode public interface DataModel
The DataModel. The root DataNode to the DataModel. There exists a general pattern through the DataModel that there exists both getter and setter methods to child dataObjects in dataNodes, but there exists *only* getter methods on non-dataNode dataObjects. This allows dataObject, separated from their heirarchical context, to be immutable if the implementation so wishes. (The MapDataObject is an exception to this pattern). The original design documentation is at https://dev.sesat.no/confluence/display/TECHDEV/Search+Portal+DataModel+%28Sesam-3.0%29
| Field Summary | |
|---|---|
static String |
KEY
The key to be used when the datamodel is to be stored, eg in the request or velocity context. |
| Method Summary | |
|---|---|
BrowserDataObject |
getBrowser()
Get the BrowserDataObject associated to this session. |
JunkYardDataObject |
getJunkYard()
Deprecated. Provides access to datamodel elements not yet migrated into the DataModel proper. |
NavigationDataObject |
getNavigation()
Get the NavigationDataObject associated to the SearchMode. |
PageDataObject |
getPage()
Get the PageDataObject associated to the SearchTab. |
ParametersDataObject |
getParameters()
Get the ParametersDataObject associated to this request. |
QueryDataObject |
getQuery()
The QueryDataObject holding all query related information associated to this request. |
SearchDataObject |
getSearch(String key)
Get the SearchDataObject holding the given search's results |
Map<String,SearchDataObject> |
getSearches()
Map containing all the search results. |
SiteDataObject |
getSite()
Get the SiteDataObject holding site and skin information. |
UserDataObject |
getUser()
Get the UserDataObject holding the user information. |
void |
setBrowser(BrowserDataObject browser)
Assign the BrowserDataObject. |
void |
setJunkYard(JunkYardDataObject junkYard)
Deprecated. Provides access to datamodel elements not yet migrated into the DataModel proper. |
void |
setNavigation(NavigationDataObject value)
Set the NavigationDataObject. |
void |
setPage(PageDataObject value)
Set the PageDataObject. |
void |
setParameters(ParametersDataObject parameters)
Update the ParametersDataObject. |
void |
setQuery(QueryDataObject query)
Set the QueryDataObject associated to this request. |
void |
setSearch(String key,
SearchDataObject value)
Set a search command's finished results. |
void |
setSite(SiteDataObject site)
Assign the SiteDataObject. |
void |
setUser(UserDataObject user)
Assign the UserDataObject when user logs in. |
| Field Detail |
|---|
static final String KEY
| Method Detail |
|---|
ParametersDataObject getParameters()
@AccessAllow(value={DATA_MODEL_CONSTRUCTION,REQUEST_CONSTRUCTION})
void setParameters(ParametersDataObject parameters)
parameters - ParametsDataObject associated to this request.BrowserDataObject getBrowser()
@AccessAllow(value=DATA_MODEL_CONSTRUCTION) void setBrowser(BrowserDataObject browser)
browser - BrowserDataObject holding session-static information.UserDataObject getUser()
@AccessAllow(value={DATA_MODEL_CONSTRUCTION,REQUEST_CONSTRUCTION})
void setUser(UserDataObject user)
user - UserDataObject holding user information.SiteDataObject getSite()
@AccessAllow(value={DATA_MODEL_CONSTRUCTION,REQUEST_CONSTRUCTION})
void setSite(SiteDataObject site)
site - the SiteDataObject holding site and skin information.QueryDataObject getQuery()
@AccessAllow(value={DATA_MODEL_CONSTRUCTION,REQUEST_CONSTRUCTION,RUNNING_QUERY_CONSTRUCTION})
void setQuery(QueryDataObject query)
query - the QueryDataObject holding all query related information
@AccessDisallow(value={RUNNING_QUERY_CONSTRUCTION,SEARCH_COMMAND_CONSTRUCTION})
Map<String,SearchDataObject> getSearches()
@AccessAllow(value={SEARCH_COMMAND_EXECUTION,RUNNING_QUERY_HANDLING,VIEW_CONSTRUCTION})
SearchDataObject getSearch(String key)
key - the search (commandName) to get SearchDataObject for
@AccessAllow(value={DATA_MODEL_CONSTRUCTION,REQUEST_CONSTRUCTION,SEARCH_COMMAND_EXECUTION,RUNNING_QUERY_HANDLING})
void setSearch(String key,
SearchDataObject value)
key - value - NavigationDataObject getNavigation()
@AccessAllow(value={DATA_MODEL_CONSTRUCTION,RUNNING_QUERY_CONSTRUCTION})
void setNavigation(NavigationDataObject value)
value - the NavigationDataObject associated to the SearchModePageDataObject getPage()
@AccessAllow(value={DATA_MODEL_CONSTRUCTION,REQUEST_CONSTRUCTION})
void setPage(PageDataObject value)
value - the PageDataObject associated to the SearchTabJunkYardDataObject getJunkYard()
@AccessAllow(value={DATA_MODEL_CONSTRUCTION,REQUEST_CONSTRUCTION})
void setJunkYard(JunkYardDataObject junkYard)
junkYard -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||