Reading out all actions in a Grails-Controller
问题 I need to read out all available actions from any controller in my web-app. The reason for this is an authorization system where I need to give users a list of allowed actions. E.g.: User xyz has the authorization for executing the actions show, list, search. User admin has the authorization for executing the actions edit, delete etc. I need to read out all actions from a controller. Does anyone has an idea? 回答1: This will create a List of Maps (the 'data' variable) with controller