Package org.ametys.core.right
Record Class ProfileAssignmentStorageExtensionPoint.AccessResultInfo
java.lang.Object
java.lang.Record
org.ametys.core.right.ProfileAssignmentStorageExtensionPoint.AccessResultInfo
- Record Components:
accessResult- an access resulttarget- the actual target of the assignment (user or group). Can be null for anonymous or any connected user assignment
- All Implemented Interfaces:
Comparable<ProfileAssignmentStorageExtensionPoint.AccessResultInfo>
- Enclosing class:
ProfileAssignmentStorageExtensionPoint
public static record ProfileAssignmentStorageExtensionPoint.AccessResultInfo(AccessController.AccessResult accessResult, Object target)
extends Record
implements Comparable<ProfileAssignmentStorageExtensionPoint.AccessResultInfo>
Store an access result associated to a object target (user or group)
-
Constructor Summary
ConstructorsConstructorDescriptionAccessResultInfo(AccessController.AccessResult accessResult, Object target) Creates an instance of aAccessResultInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessResultrecord component.intfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccessResultInfo
Creates an instance of aAccessResultInforecord class.- Parameters:
accessResult- the value for theaccessResultrecord componenttarget- the value for thetargetrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ProfileAssignmentStorageExtensionPoint.AccessResultInfo>
-
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
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). -
accessResult
Returns the value of theaccessResultrecord component.- Returns:
- the value of the
accessResultrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-