Package com.onec.ui
Record Class ActionContext
java.lang.Object
java.lang.Record
com.onec.ui.ActionContext
- Record Components:
kind-"catalogs"or"documents"name- the entity's route nameid- the target record's id, ornullfor a toolbar (list-level) actionuser- the authenticated username, for the handler's own checksinputs- current values of the toolbar inputs, keyed by input key (never null)
public record ActionContext(String kind, String name, UUID id, String user, Map<String,String> inputs)
extends Record
What a custom action handler receives when invoked: the entity it ran on, (for row/detail
actions) the record's id, and the current values of any toolbar
inputs. The
handler does whatever it likes with the services its EntityView bean injected — it's
just a method on a Spring bean.-
Constructor Summary
Constructors -
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.id()Returns the value of theidrecord component.The current value of toolbar inputkey, or""if absent.inputs()Returns the value of theinputsrecord component.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
ActionContext
Creates an instance of aActionContextrecord class.
-
-
Method Details
-
input
The current value of toolbar inputkey, or""if absent. -
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
inputs
Returns the value of theinputsrecord component.- Returns:
- the value of the
inputsrecord component
-