Record Class PlainPolicyRuleIdentifier
java.lang.Object
java.lang.Record
com.evolveum.midpoint.repo.common.policy.PlainPolicyRuleIdentifier
- All Implemented Interfaces:
PolicyRuleIdentifier,Serializable
public record PlainPolicyRuleIdentifier(String ruleId)
extends Record
implements Serializable, PolicyRuleIdentifier
Policy rule identifier based on a plain string.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPlainPolicyRuleIdentifier(String ruleId) Creates an instance of aPlainPolicyRuleIdentifierrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringasString()Returns a string representation of the policy rule identifier.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static @NotNull PlainPolicyRuleIdentifierstatic @NotNull PlainPolicyRuleIdentifierRule id doesn't have specific format, however currently OID:ID is used where OID is source object of the policy rule, ID is a container identifier.ruleId()Returns the value of theruleIdrecord component.@NotNull StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlainPolicyRuleIdentifier
Creates an instance of aPlainPolicyRuleIdentifierrecord class.- Parameters:
ruleId- the value for theruleIdrecord component
-
-
Method Details
-
of
Rule id doesn't have specific format, however currently OID:ID is used where OID is source object of the policy rule, ID is a container identifier. -
of
@NotNull public static @NotNull PlainPolicyRuleIdentifier of(@NotNull @NotNull String objectOid, @NotNull @NotNull Long inducementCID) -
asString
Description copied from interface:PolicyRuleIdentifierReturns a string representation of the policy rule identifier. The format is not defined and may be different for different implementations.- Specified by:
asStringin interfacePolicyRuleIdentifier
-
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). -
ruleId
Returns the value of theruleIdrecord component.- Returns:
- the value of the
ruleIdrecord component
-