Is it possible to bind a private or package method to any method with remote 
access within a cfc? I want run checks on each request to lock down security 
but not on the application level. I want to automate this procedure instead of 
having to place the call inside of each method.

I would use reflection in Java. Any thoughts?

Example:

<cffunction name="checkSomething" access="remote" returnFormat="JSON">
when this is called bind checkForRemoteness() 
</cffunction>

<cffunction name="checkIfRemoteOrPublic" access="private">
<cfif logic>
<cfabort>
</cfif>
</cffunction> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335587
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to