Package org.ametys.cms.contenttype
Record Class ContentTypesHelper.ViewConfigurations
java.lang.Object
java.lang.Record
org.ametys.cms.contenttype.ContentTypesHelper.ViewConfigurations
- Record Components:
viewName
- the name of the viewmainConfiguration
- the main configuration of the view, if it is configures on the current typeoverrides
- the list of overrides configured on the current type
- Enclosing class:
- ContentTypesHelper
public static record ContentTypesHelper.ViewConfigurations(String viewName, Optional<ModelHelper.ConfigurationAndPluginName> mainConfiguration, List<ModelHelper.ConfigurationAndPluginName> overrides)
extends Record
Stores all the configurations of the current content type for a view
-
Constructor Summary
ConstructorDescriptionViewConfigurations
(String viewName, Optional<ModelHelper.ConfigurationAndPluginName> mainConfiguration, List<ModelHelper.ConfigurationAndPluginName> overrides) Creates an instance of aViewConfigurations
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 themainConfiguration
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
-
ViewConfigurations
public ViewConfigurations(String viewName, Optional<ModelHelper.ConfigurationAndPluginName> mainConfiguration, List<ModelHelper.ConfigurationAndPluginName> overrides) Creates an instance of aViewConfigurations
record class.- Parameters:
viewName
- the value for theviewName
record componentmainConfiguration
- the value for themainConfiguration
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
-
mainConfiguration
Returns the value of themainConfiguration
record component.- Returns:
- the value of the
mainConfiguration
record component
-
overrides
Returns the value of theoverrides
record component.- Returns:
- the value of the
overrides
record component
-