[Coldbox 5.0] Getting available handlers/actions

Good morning/afternoon/evening

I am hoping to solve a problem I am having or even get some suggestions on alternative best practices.

I need to retrieve a list of available handlers along with their actions. I understand that coldbox only caches the handlers themselves and then verifies that the actions exists just before it gets executed. I will be utilizing the cbsecurity module and that seems perfect with being able to restrict access to handlers/action. The problem is that an admin will need to amend a user’s rights to the system without having knowledge of how the system is designed in the background.

E.G. A user needs to be able to view a list of ‘trades’ but not be able to create a new one. The two actions are in the same handler but the administrator does not know what actions to blacklist/whitelist.

Also in addition to the above could you provides some brief description on how you have solved a problem like this in the past as I am sure this is a common one.

Regards
Ryan

I’m not sure exactly what you’re asking for. You said yourself that ColdBox doesn’t keep a list of every possible event name so there’s no way to get that information programmatically from ColdBox. I’ve created mappings to ColdBox handlers and actions in the DB (not for security but for routing purposes) but I managed the list of all the possible handlers and actions I wanted to be able to map to manually.