public class LegacyMapController extends AbstractController<Map<String,Object>>
Controller
implementation that is used to run 1.xx widgets on Widget Framework 2.0mLogger
Constructor and Description |
---|
LegacyMapController() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultViewName() |
protected Object |
getFromModel(Map<String,Object> pModel,
String pKey)
This method retrieves the value corresponding to the given key in the model
|
protected Map<String,Object> |
getNewModel()
This method creates and returns a new model
|
protected void |
populateModelForView(Map pModel,
String pViewName,
neo.xredsys.content.type.ArticleType pArticleType,
neo.xredsys.presentation.PresentationArticle pWidgetContent)
This method does not read view-specific fields and does not puts them in the model.
|
protected void |
putInModel(Map<String,Object> pModel,
String pKey,
Object pValue)
This method puts the given key-value pair in the model
|
protected void |
readCommonFields(Map pModel,
neo.xredsys.content.type.ArticleType pArticleType,
neo.xredsys.presentation.PresentationArticle pWidgetContent)
This method only reads the value of view field and put it in model.
|
void |
setDefaultViewName(String pDefaultViewName) |
cleanup, createModel, getWidgetModel, includeJSPControllers, includeProcessors, startService, stopService, transform
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
protected Map<String,Object> getNewModel()
AbstractController
getNewModel
in class AbstractController<Map<String,Object>>
protected void putInModel(Map<String,Object> pModel, String pKey, Object pValue)
AbstractController
putInModel
in class AbstractController<Map<String,Object>>
pModel
- the modelpKey
- the keypValue
- the valueprotected Object getFromModel(Map<String,Object> pModel, String pKey)
AbstractController
getFromModel
in class AbstractController<Map<String,Object>>
pModel
- the modelpKey
- the keyprotected void readCommonFields(Map pModel, neo.xredsys.content.type.ArticleType pArticleType, neo.xredsys.presentation.PresentationArticle pWidgetContent)
DefaultMapController
it does
not read default,advanced,cache panel fieldsreadCommonFields
in class AbstractController<Map<String,Object>>
pModel
- the modelpArticleType
- the widget typepWidgetContent
- the PresentationArticle
object corresponding to the widgetprotected void populateModelForView(Map pModel, String pViewName, neo.xredsys.content.type.ArticleType pArticleType, neo.xredsys.presentation.PresentationArticle pWidgetContent)
LegacyMapController
. Because for old widget those fields are populated in
controller jsp pages.populateModelForView
in class AbstractController<Map<String,Object>>
pModel
- the modelpViewName
- the view namepArticleType
- the type of the widgetpWidgetContent
- the PresentationArticle
object corresponding to the widgetpublic String getDefaultViewName()
getDefaultViewName
in class AbstractController<Map<String,Object>>
public void setDefaultViewName(String pDefaultViewName)
setDefaultViewName
in class AbstractController<Map<String,Object>>
© 1998- 2017 Escenic AS