Package org.ametys.cms.contenttype
Record Class ContentTypesHelper.ViewConfigurationsByType
java.lang.Object
java.lang.Record
org.ametys.cms.contenttype.ContentTypesHelper.ViewConfigurationsByType
- Record Components:
viewName
- the name of the viewmainConfigurations
- the main configurations of the viewoverrides
- the list of overrides of the view
- Enclosing class:
- ContentTypesHelper
public static record ContentTypesHelper.ViewConfigurationsByType(String viewName, Map<ContentType,ModelHelper.ConfigurationAndPluginName> mainConfigurations, Map<ContentType,List<ModelHelper.ConfigurationAndPluginName>> overrides)
extends Record
Stores all the configurations for a view, by the content types in which the configuration is declared
-
Constructor Summary
ConstructorDescriptionViewConfigurationsByType
(String viewName, Map<ContentType, ModelHelper.ConfigurationAndPluginName> mainConfigurations, Map<ContentType, List<ModelHelper.ConfigurationAndPluginName>> overrides) Creates an instance of aViewConfigurationsByType
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themainConfigurations
record component.Returns the value of theoverrides
record component.final String
toString()
Returns a string representation of this record class.viewName()
Returns the value of theviewName
record component.
-
Constructor Details
-
ViewConfigurationsByType
public ViewConfigurationsByType(String viewName, Map<ContentType, ModelHelper.ConfigurationAndPluginName> mainConfigurations, Map<ContentType, List<ModelHelper.ConfigurationAndPluginName>> overrides) Creates an instance of aViewConfigurationsByType
record class.- Parameters:
viewName
- the value for theviewName
record componentmainConfigurations
- the value for themainConfigurations
record componentoverrides
- the value for theoverrides
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
viewName
Returns the value of theviewName
record component.- Returns:
- the value of the
viewName
record component
-
mainConfigurations
Returns the value of themainConfigurations
record component.- Returns:
- the value of the
mainConfigurations
record component
-
overrides
Returns the value of theoverrides
record component.- Returns:
- the value of the
overrides
record component
-