Luis Majano Forums Notification: Post to UDF in Plugin

Title: RE: UDF in Plugin
Thread: UDF in Plugin
Forum: Need Help?
Conference: ColdBox
User: tschmitt

In general, I agree that the plugins should be somewhat generic, otherwise it
belongs in the service layer.
I was really needing something fairly simple, the
isListInList() UDF which will go into something of a security plugin. I'm
working on my first implementation of a security model in Coldbox that will
protect, the app, event handler or event handler function.
I guess a little give
and take is required with encapsulation. It makes sense to re-use the hundreds
of UDFs that are available, but unfortunately, most of their use would belong in
the model or service layer.
In the case of isListInList(), I will probably
re-write it into a function in the plugin, as, for me, it has a pretty specific
use and will not likely be used elsewhere.