Record Class OverrideAdminCreateContribution
java.lang.Object
java.lang.Record
ch.tocco.nice2.netui.api.actions.entityoperation.OverrideAdminCreateContribution
public record OverrideAdminCreateContribution(String entityModel, boolean useAdminCreate)
extends Record
if this contribution is used the admin-create-action property of the entity model is ignored for the old client
-
Constructor Summary
ConstructorDescriptionOverrideAdminCreateContribution
(String entityModel, boolean useAdminCreate) Creates an instance of aOverrideAdminCreateContribution
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityModel
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of theuseAdminCreate
record component.
-
Constructor Details
-
OverrideAdminCreateContribution
Creates an instance of aOverrideAdminCreateContribution
record class.- Parameters:
entityModel
- the value for theentityModel
record componentuseAdminCreate
- the value for theuseAdminCreate
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
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
entityModel
Returns the value of theentityModel
record component.- Returns:
- the value of the
entityModel
record component
-
useAdminCreate
public boolean useAdminCreate()Returns the value of theuseAdminCreate
record component.- Returns:
- the value of the
useAdminCreate
record component
-