Package org.ametys.runtime.model
Interface ViewParser
- All Known Implementing Classes:
ContentTypeViewParser
public interface ViewParser
Interface for components that parse view's configuration
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionoverrideView
(ModelHelper.ConfigurationAndPluginName viewConfiguration, View existingView) Parses a view configuration to override aView
object.parseView
(ModelHelper.ConfigurationAndPluginName viewConfiguration) Parses a view configuration to create aView
object.
-
Field Details
-
DEFAULT_GROUP_TAG_NAME
Default tag name for simple groups- See Also:
-
DEFAULT_ITEM_REF_TAG_NAME
Default tag name for item references- See Also:
-
ALL_ITEMS_REFERENCE
The name of item reference to add all items- See Also:
-
-
Method Details
-
parseView
View parseView(ModelHelper.ConfigurationAndPluginName viewConfiguration) throws ConfigurationException Parses a view configuration to create aView
object.- Parameters:
viewConfiguration
- the configuration of the view to parse- Returns:
- the view
- Throws:
ConfigurationException
- if the configuration is not valid.
-
overrideView
View overrideView(ModelHelper.ConfigurationAndPluginName viewConfiguration, View existingView) throws ConfigurationException Parses a view configuration to override aView
object.- Parameters:
viewConfiguration
- the configuration of the view to parseexistingView
- The view to override- Returns:
- the overridden view
- Throws:
ConfigurationException
- if the configuration is not valid.
-