Record Class AclDiff
java.lang.Object
java.lang.Record
net.bluemind.core.container.model.acl.AclDiff
public record AclDiff(String subject, Verb oldVerb, Verb newVerb, AclDiff.AclStatus status)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAclDiff(String subject, Verb oldVerb, Verb newVerb, AclDiff.AclStatus status) Creates an instance of aAclDiffrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.newVerb()Returns the value of thenewVerbrecord component.oldVerb()Returns the value of theoldVerbrecord component.prepareAclDiff(String subject, Collection<AccessControlEntry> previous, Collection<AccessControlEntry> current) status()Returns the value of thestatusrecord component.subject()Returns the value of thesubjectrecord component.toAce()static List<AccessControlEntry> toString()Returns a string representation of this record class.
-
Constructor Details
-
AclDiff
Creates an instance of aAclDiffrecord class.- Parameters:
subject- the value for thesubjectrecord componentoldVerb- the value for theoldVerbrecord componentnewVerb- the value for thenewVerbrecord componentstatus- the value for thestatusrecord component
-
-
Method Details
-
toString
-
toAce
-
toAcl
-
prepareAclDiff
public static List<AclDiff> prepareAclDiff(String subject, Collection<AccessControlEntry> previous, Collection<AccessControlEntry> current) -
hashCode
-
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). -
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
oldVerb
Returns the value of theoldVerbrecord component.- Returns:
- the value of the
oldVerbrecord component
-
newVerb
Returns the value of thenewVerbrecord component.- Returns:
- the value of the
newVerbrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-