Package org.ametys.runtime.model
Interface ViewParser
- All Known Implementing Classes:
AbstractContentTypeViewParser
,AbstractViewParser
,ContentTypeViewParser
,StaticSearchUIModelColumnsParser
public interface ViewParser
Interface for components that parse view's configuration
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Default tag name for simple groupsstatic final String
Default tag name for itemsstatic final String
The name of item reference to add all itemsstatic final String
Default attribute name for items' referencesstatic final String
Tag name for references to delete items -
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
-
ADD_GROUP_TAG_NAME
Default tag name for simple groups- See Also:
-
ADD_ITEM_TAG_NAME
Default tag name for items- See Also:
-
ITEM_REFERENCE_ATTRIBUTE_NAME
Default attribute name for items' references- See Also:
-
REMOVE_ITEM_TAG_NAME
Tag name for references to delete items- 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.
-