Package io.jmix.dynmodel.meta
Record Class DynamicViewDefinition
java.lang.Object
java.lang.Record
io.jmix.dynmodel.meta.DynamicViewDefinition
- Record Components:
type- view typeviewId- view identifierviewRoute- route segment for dynamic viewsviewTitle- localized or literal titletemplateParams- template parametersresourceRoles- view resource-role grants- optional menu item definitiondescriptor- descriptor declarationlookupComponentId- lookup component identifier for list viewseditedEntityContainerId- edited entity container identifier for detail views
public record DynamicViewDefinition(@Nullable DynamicViewType type, @Nullable String viewId, @Nullable String viewRoute, @Nullable LocalizedValue viewTitle, @Nullable Map<String,Object> templateParams, @Nullable DynamicViewAccessDefinition resourceRoles, @Nullable MenuItemDefinition menuItem, @Nullable DynamicViewDescriptorDefinition descriptor, @Nullable String lookupComponentId, @Nullable String editedEntityContainerId)
extends Record
Defines a dynamic view owned by a model entity.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicViewDefinition(@Nullable DynamicViewType type, @Nullable String viewId, @Nullable String viewRoute, @Nullable LocalizedValue viewTitle, @Nullable Map<String, Object> templateParams, @Nullable DynamicViewAccessDefinition resourceRoles, @Nullable MenuItemDefinition menuItem, @Nullable DynamicViewDescriptorDefinition descriptor, @Nullable String lookupComponentId, @Nullable String editedEntityContainerId) Creates an instance of aDynamicViewDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable DynamicViewDescriptorDefinitionReturns the value of thedescriptorrecord component.@Nullable StringReturns the value of theeditedEntityContainerIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of thelookupComponentIdrecord component.@Nullable MenuItemDefinitionmenuItem()Returns the value of themenuItemrecord component.@Nullable DynamicViewAccessDefinitionReturns the value of theresourceRolesrecord component.Returns the value of thetemplateParamsrecord component.final StringtoString()Returns a string representation of this record class.@Nullable DynamicViewTypetype()Returns the value of thetyperecord component.@Nullable StringviewId()Returns the value of theviewIdrecord component.@Nullable StringReturns the value of theviewRouterecord component.@Nullable LocalizedValueReturns the value of theviewTitlerecord component.
-
Constructor Details
-
DynamicViewDefinition
public DynamicViewDefinition(@Nullable DynamicViewType type, @Nullable String viewId, @Nullable String viewRoute, @Nullable LocalizedValue viewTitle, @Nullable Map<String, Object> templateParams, @Nullable DynamicViewAccessDefinition resourceRoles, @Nullable MenuItemDefinition menuItem, @Nullable DynamicViewDescriptorDefinition descriptor, @Nullable String lookupComponentId, @Nullable String editedEntityContainerId) Creates an instance of aDynamicViewDefinitionrecord class.- Parameters:
type- the value for thetyperecord componentviewId- the value for theviewIdrecord componentviewRoute- the value for theviewRouterecord componentviewTitle- the value for theviewTitlerecord componenttemplateParams- the value for thetemplateParamsrecord componentresourceRoles- the value for theresourceRolesrecord componentmenuItem- the value for themenuItemrecord componentdescriptor- the value for thedescriptorrecord componentlookupComponentId- the value for thelookupComponentIdrecord componenteditedEntityContainerId- the value for theeditedEntityContainerIdrecord 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
public final int 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
viewId
Returns the value of theviewIdrecord component.- Returns:
- the value of the
viewIdrecord component
-
viewRoute
Returns the value of theviewRouterecord component.- Returns:
- the value of the
viewRouterecord component
-
viewTitle
Returns the value of theviewTitlerecord component.- Returns:
- the value of the
viewTitlerecord component
-
templateParams
Returns the value of thetemplateParamsrecord component.- Returns:
- the value of the
templateParamsrecord component
-
resourceRoles
Returns the value of theresourceRolesrecord component.- Returns:
- the value of the
resourceRolesrecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
lookupComponentId
Returns the value of thelookupComponentIdrecord component.- Returns:
- the value of the
lookupComponentIdrecord component
-
editedEntityContainerId
Returns the value of theeditedEntityContainerIdrecord component.- Returns:
- the value of the
editedEntityContainerIdrecord component
-