Package io.jmix.dynmodel.meta
Record Class DynamicEntityAccessDefinition
java.lang.Object
java.lang.Record
io.jmix.dynmodel.meta.DynamicEntityAccessDefinition
- Record Components:
read- role codes that can read the entitycreate- role codes that can create the entityupdate- role codes that can update the entitydelete- role codes that can delete the entity
public record DynamicEntityAccessDefinition(List<String> read, List<String> create, List<String> update, List<String> delete)
extends Record
Defines resource-role grants for dynamic entity CRUD operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Returns the value of thecreaterecord component.delete()Returns the value of thedeleterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns whether this definition contains no grants.read()Returns the value of thereadrecord component.final StringtoString()Returns a string representation of this record class.update()Returns the value of theupdaterecord component.
-
Constructor Details
-
Method Details
-
isEmpty
public boolean isEmpty()Returns whether this definition contains no grants.- Returns:
trueif this definition is empty
-
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). -
read
Returns the value of thereadrecord component.- Returns:
- the value of the
readrecord component
-
create
Returns the value of thecreaterecord component.- Returns:
- the value of the
createrecord component
-
update
Returns the value of theupdaterecord component.- Returns:
- the value of the
updaterecord component
-
delete
Returns the value of thedeleterecord component.- Returns:
- the value of the
deleterecord component
-