Package org.ametys.core.right
Record Class AccessController.ExplanationObject
java.lang.Object
java.lang.Record
org.ametys.core.right.AccessController.ExplanationObject
- Record Components:
- object- the object
- label- a label for the context represented by the object
- category- the category the context belongs to
- order- order of the context in the category
- Enclosing interface:
- AccessController
public static record AccessController.ExplanationObject(Object object, I18nizableText label, I18nizableText category, int order)
extends Record
A object with an associated label, category and order.
- 
Constructor SummaryConstructorsConstructorDescriptionExplanationObject(Object object, I18nizableText label, I18nizableText category) A object with an associated label and category.ExplanationObject(Object object, I18nizableText label, I18nizableText category, int order) Creates an instance of aExplanationObjectrecord class.
- 
Method SummaryModifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.object()Returns the value of theobjectrecord component.intorder()Returns the value of theorderrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
ExplanationObjectA object with an associated label and category.- Parameters:
- object- the object
- label- a label for the context represented by the object
- category- the category the context belongs to
 
- 
ExplanationObjectCreates an instance of aExplanationObjectrecord class.
 
- 
- 
Method Details- 
equalsIndicates 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
hashCodeReturns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
toStringReturns 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.
- 
objectReturns the value of theobjectrecord component.- Returns:
- the value of the objectrecord component
 
- 
labelReturns the value of thelabelrecord component.- Returns:
- the value of the labelrecord component
 
- 
categoryReturns the value of thecategoryrecord component.- Returns:
- the value of the categoryrecord component
 
- 
orderReturns the value of theorderrecord component.- Returns:
- the value of the orderrecord component
 
 
-