I started writing this as a question then I discovered the answer so thought
I would share it as FYI.
Question:
I have Preparable CRUD actions that have multiple action methods like
doNew(), doCreate(), doEdit(), doUpdate(), doDelete().
I have found at least one case where I need to know, in the prepare()
method, which action method is going to be called.
How do you find out?
Answer:
You can add multiple prepare{METHOD}() methods like prepareDoDelete(),
prepareDoUpdate() and the one matching the action method will be called
first before the prepare() method.