Record Class RemoteFieldReadAccess.RuleTarget
java.lang.Object
java.lang.Record
fr.becpg.repo.entity.remote.extractor.RemoteFieldReadAccess.RuleTarget
- Record Components:
nodeType- the node typeruleScope- the node, when it carries its own rulestypeKey- the identity of the rules in force for the typeruledFields- the fields a rule is set on
- Enclosing class:
RemoteFieldReadAccess
private static record RemoteFieldReadAccess.RuleTarget(org.alfresco.service.namespace.QName nodeType, Optional<org.alfresco.service.cmr.repository.NodeRef> ruleScope, String typeKey, Set<org.alfresco.service.namespace.QName> ruledFields)
extends Record
The rules a field of a node is checked against: its type, the node itself when it has rules
of its own, and the fields those rules are set on. Resolved once per node, so that reading a
field costs a set lookup.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.alfresco.service.namespace.QNameThe field for thenodeTyperecord component.private final Set<org.alfresco.service.namespace.QName> The field for theruledFieldsrecord component.private final Optional<org.alfresco.service.cmr.repository.NodeRef> The field for theruleScoperecord component.private final StringThe field for thetypeKeyrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRuleTarget(org.alfresco.service.namespace.QName nodeType, Optional<org.alfresco.service.cmr.repository.NodeRef> ruleScope, String typeKey, Set<org.alfresco.service.namespace.QName> ruledFields) Creates an instance of aRuleTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionprivate StringcacheKey(org.alfresco.service.namespace.QName fieldName) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.alfresco.service.namespace.QNamenodeType()Returns the value of thenodeTyperecord component.Set<org.alfresco.service.namespace.QName> Returns the value of theruledFieldsrecord component.Optional<org.alfresco.service.cmr.repository.NodeRef> Returns the value of theruleScoperecord component.final StringtoString()Returns a string representation of this record class.typeKey()Returns the value of thetypeKeyrecord component.
-
Field Details
-
nodeType
private final org.alfresco.service.namespace.QName nodeTypeThe field for thenodeTyperecord component. -
ruleScope
The field for theruleScoperecord component. -
typeKey
The field for thetypeKeyrecord component. -
ruledFields
The field for theruledFieldsrecord component.
-
-
Constructor Details
-
RuleTarget
private RuleTarget(org.alfresco.service.namespace.QName nodeType, Optional<org.alfresco.service.cmr.repository.NodeRef> ruleScope, String typeKey, Set<org.alfresco.service.namespace.QName> ruledFields) Creates an instance of aRuleTargetrecord class.- Parameters:
nodeType- the value for thenodeTyperecord componentruleScope- the value for theruleScoperecord componenttypeKey- the value for thetypeKeyrecord componentruledFields- the value for theruledFieldsrecord component
-
-
Method Details
-
cacheKey
-
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). -
nodeType
public org.alfresco.service.namespace.QName nodeType()Returns the value of thenodeTyperecord component.- Returns:
- the value of the
nodeTyperecord component
-
ruleScope
Returns the value of theruleScoperecord component.- Returns:
- the value of the
ruleScoperecord component
-
typeKey
Returns the value of thetypeKeyrecord component.- Returns:
- the value of the
typeKeyrecord component
-
ruledFields
Returns the value of theruledFieldsrecord component.- Returns:
- the value of the
ruledFieldsrecord component
-