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
ConstructorDescriptionAccessResultInfo
(AccessController.AccessResult accessResult, Object target) Creates an instance of aAccessResultInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessResult
record component.int
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.target()
Returns the value of thetarget
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AccessResultInfo
Creates an instance of aAccessResultInfo
record class.- Parameters:
accessResult
- the value for theaccessResult
record componenttarget
- the value for thetarget
record component
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in 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 theaccessResult
record component.- Returns:
- the value of the
accessResult
record component
-
target
Returns the value of thetarget
record component.- Returns:
- the value of the
target
record component
-