Record Class RoleData
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.mdo.storage.RoleData
- Record Components:
setForNewObjects- Устанавливать права для новых объектовsetForAttributesByDefault- Устанавливать права для реквизитов и табличных частей по умолчаниюindependentRightsOfChildObjects- Независимые права подчиненных объектов
public record RoleData(boolean setForNewObjects, boolean setForAttributesByDefault, boolean independentRightsOfChildObjects, List<RoleData.ObjectRight> objectRights)
extends Record
Хранилище данных конкретной роли
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RoleDatastatic final com.github._1c_syntax.utils.GenericInterner<RoleData.Right> -
Constructor Summary
ConstructorsConstructorDescriptionRoleData(boolean setForNewObjects, boolean setForAttributesByDefault, boolean independentRightsOfChildObjects, List<RoleData.ObjectRight> objectRights) Creates an instance of aRoleDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RoleData.RoleDataBuilderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theindependentRightsOfChildObjectsrecord component.Returns the value of theobjectRightsrecord component.booleanReturns the value of thesetForAttributesByDefaultrecord component.booleanReturns the value of thesetForNewObjectsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
RIGHT_INTERNER
-
-
Constructor Details
-
RoleData
public RoleData(boolean setForNewObjects, boolean setForAttributesByDefault, boolean independentRightsOfChildObjects, List<RoleData.ObjectRight> objectRights) Creates an instance of aRoleDatarecord class.- Parameters:
setForNewObjects- the value for thesetForNewObjectsrecord componentsetForAttributesByDefault- the value for thesetForAttributesByDefaultrecord componentindependentRightsOfChildObjects- the value for theindependentRightsOfChildObjectsrecord componentobjectRights- the value for theobjectRightsrecord component
-
-
Method Details
-
builder
-
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 '=='. -
setForNewObjects
public boolean setForNewObjects()Returns the value of thesetForNewObjectsrecord component.- Returns:
- the value of the
setForNewObjectsrecord component
-
setForAttributesByDefault
public boolean setForAttributesByDefault()Returns the value of thesetForAttributesByDefaultrecord component.- Returns:
- the value of the
setForAttributesByDefaultrecord component
-
independentRightsOfChildObjects
public boolean independentRightsOfChildObjects()Returns the value of theindependentRightsOfChildObjectsrecord component.- Returns:
- the value of the
independentRightsOfChildObjectsrecord component
-
objectRights
Returns the value of theobjectRightsrecord component.- Returns:
- the value of the
objectRightsrecord component
-