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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addModelItem
(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 viewboolean
Returns true if there are model itemsvoid
setModelItems
(Map<String, ModelItem> modelItems) Set the model itemsvoid
Set the viewMethods 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
-
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:ModelItemAccessor
Retrieves all the model items of this accessor- Specified by:
getModelItems
in interfaceModelItemAccessor
- Returns:
- the model items
-
setModelItems
Set the model items- Parameters:
modelItems
- the model items
-
getId
Description copied from interface:Model
Retrieves the model id (an id must be unique in the familyModel.getFamilyId()
-
getFamilyId
Description copied from interface:Model
Retrieves the Family Id (for example the extension point) Each model Id have to be unique in it's family Id- Specified by:
getFamilyId
in 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
-