Record Class TreeStructureConfigContribution
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.client.api.TreeStructureConfigContribution
public record TreeStructureConfigContribution(String entityName, String treeEndpoint, String relationshipModel, String relationshipChildField, String relationshipParentField, String newNodeTranslationKey, String nodeCreatedTranslationKey, List<String> treeEnabledRelations)
extends Record
Contribution for tree structure configuration.
Modules contribute this to provide entity-specific tree navigation config to the frontend.
Example: The event module contributes config for Event (relCourse/relModule hierarchy).
-
Constructor Summary
ConstructorsConstructorDescriptionTreeStructureConfigContribution(String entityName, String treeEndpoint, String relationshipModel, String relationshipChildField, String relationshipParentField, String newNodeTranslationKey, String nodeCreatedTranslationKey, List<String> treeEnabledRelations) Creates an instance of aTreeStructureConfigContributionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenewNodeTranslationKeyrecord component.Returns the value of thenodeCreatedTranslationKeyrecord component.Returns the value of therelationshipChildFieldrecord component.Returns the value of therelationshipModelrecord component.Returns the value of therelationshipParentFieldrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetreeEnabledRelationsrecord component.Returns the value of thetreeEndpointrecord component.
-
Constructor Details
-
TreeStructureConfigContribution
public TreeStructureConfigContribution(String entityName, String treeEndpoint, String relationshipModel, String relationshipChildField, String relationshipParentField, String newNodeTranslationKey, String nodeCreatedTranslationKey, List<String> treeEnabledRelations) Creates an instance of aTreeStructureConfigContributionrecord class.- Parameters:
entityName- the value for theentityNamerecord componenttreeEndpoint- the value for thetreeEndpointrecord componentrelationshipModel- the value for therelationshipModelrecord componentrelationshipChildField- the value for therelationshipChildFieldrecord componentrelationshipParentField- the value for therelationshipParentFieldrecord componentnewNodeTranslationKey- the value for thenewNodeTranslationKeyrecord componentnodeCreatedTranslationKey- the value for thenodeCreatedTranslationKeyrecord componenttreeEnabledRelations- the value for thetreeEnabledRelationsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
entityName
Returns the value of theentityNamerecord component.- Returns:
- the value of the
entityNamerecord component
-
treeEndpoint
Returns the value of thetreeEndpointrecord component.- Returns:
- the value of the
treeEndpointrecord component
-
relationshipModel
Returns the value of therelationshipModelrecord component.- Returns:
- the value of the
relationshipModelrecord component
-
relationshipChildField
Returns the value of therelationshipChildFieldrecord component.- Returns:
- the value of the
relationshipChildFieldrecord component
-
relationshipParentField
Returns the value of therelationshipParentFieldrecord component.- Returns:
- the value of the
relationshipParentFieldrecord component
-
newNodeTranslationKey
Returns the value of thenewNodeTranslationKeyrecord component.- Returns:
- the value of the
newNodeTranslationKeyrecord component
-
nodeCreatedTranslationKey
Returns the value of thenodeCreatedTranslationKeyrecord component.- Returns:
- the value of the
nodeCreatedTranslationKeyrecord component
-
treeEnabledRelations
-