Proxy object which wraps around a JobManager and exposes its methods. An ACL (access control list) manager is given along with a Principal indicating the user of the proxy. Secured methods will check with the ACL to make sure the user has the appropriate permissions before methods are actually invoked. TODO: This still leaves some holes. Most notably, the ability of a user to interact with jobs that do not belong to him should be a privileged action. Also, the listJobs(user) function implies that the job manager is going to have to be made aware of user ownership of jobs at its level and that a wrapper will (may) not be sufficient. (especially if we want this proxy to be a throw-away object that is only instantiated for individual requests. it would then be harder to manage user ownership in the wrapper - although not impossible... hm...)
@author dan.rogers
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.