Package org.ametys.web.parameters.view
Class ViewParametersModel
- java.lang.Object
-
- org.ametys.web.parameters.view.ViewParametersModel
-
- All Implemented Interfaces:
Model,ModelItemAccessor,ModelItemContainer
public class ViewParametersModel extends Object implements Model
Object representing the view parameters as a model
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddModelItem(ModelItem modelItem)Add a model itemStringgetFamilyId()Retrieves the Family Id (for example the extension point) Each model Id have to be unique in it's family IdStringgetId()Retrieves the model id (an id must be unique in the familyModel.getFamilyId()Collection<? extends ModelItem>getInheritedModelItems(Page page)Get model item with inheritance from the pageCollection<? extends ModelItem>getModelItems()Retrieves all the model items of this accessorViewgetView()Get the viewbooleanisNotEmpty()Returns true if there are model itemsvoidsetModelItems(Map<String,ModelItem> modelItems)Set the model itemsvoidsetView(View view)Set the view-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.runtime.model.ModelItemAccessor
getChild, getModelItem, hasModelItem
-
-
-
-
Method Detail
-
getModelItems
public Collection<? extends ModelItem> getModelItems()
Description copied from interface:ModelItemAccessorRetrieves all the model items of this accessor- Specified by:
getModelItemsin interfaceModelItemAccessor- Returns:
- the model items
-
setModelItems
public void setModelItems(Map<String,ModelItem> modelItems)
Set the model items- Parameters:
modelItems- the model items
-
getId
public String getId()
Description copied from interface:ModelRetrieves the model id (an id must be unique in the familyModel.getFamilyId()
-
getFamilyId
public String getFamilyId()
Description copied from interface:ModelRetrieves the Family Id (for example the extension point) Each model Id have to be unique in it's family Id- Specified by:
getFamilyIdin interfaceModel- Returns:
- content point (for example "org.ametys.cms.contenttype.ContentTypeExtensionPoint" for a content)
-
isNotEmpty
public boolean isNotEmpty()
Returns true if there are model items- Returns:
- true if there are model items
-
addModelItem
public void addModelItem(ModelItem modelItem)
Add a model item- Parameters:
modelItem- the model item
-
getInheritedModelItems
public Collection<? extends ModelItem> getInheritedModelItems(Page page)
Get model item with inheritance from the page- Parameters:
page- the page- Returns:
- the list of model item with inheritance
-
-