Package org.ametys.web.parameters.view
Class ViewParametersModel
java.lang.Object
org.ametys.web.parameters.view.ViewParametersModel
- All Implemented Interfaces:
Model,ModelItemAccessor,ModelItemContainer
Object representing the view parameters as a model
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModelItem(ModelItem modelItem) Add a model itemRetrieves the Family Id (for example the extension point) Each model Id have to be unique in it's family IdgetId()Retrieves the model id (an id must be unique in the familyModel.getFamilyId()Collection<? extends ModelItem>Get model item with inheritance from the pageCollection<? extends ModelItem>Retrieves all the model items of this accessorgetView()Get the viewbooleanReturns true if there are model itemsvoidsetModelItems(Map<String, ModelItem> modelItems) Set the model itemsvoidSet the viewMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.runtime.model.ModelItemAccessor
getChild, getModelItem, hasModelItem
-
Field Details
-
_id
The unique identifier
-
-
Constructor Details
-
ViewParametersModel
The view parameters constructor- Parameters:
id- the idview- the viewmodelItems- the model items
-
-
Method Details
-
getView
Get the view- Returns:
- the view
-
setView
Set the view- Parameters:
view- the view
-
getModelItems
Description copied from interface:ModelItemAccessorRetrieves all the model items of this accessor- Specified by:
getModelItemsin interfaceModelItemAccessor- Returns:
- the model items
-
setModelItems
Set the model items- Parameters:
modelItems- the model items
-
getId
Description copied from interface:ModelRetrieves the model id (an id must be unique in the familyModel.getFamilyId() -
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
Returns true if there are model items- Returns:
- true if there are model items
-
addModelItem
Add a model item- Parameters:
modelItem- the model item
-
getInheritedModelItems
Get model item with inheritance from the page- Parameters:
page- the page- Returns:
- the list of model item with inheritance
-