uploaded the latest patch with suggestions after discussion with hemanth.
In addition mentioning some points about the fix , which weren't very clear from my update above.
-Added new API in JobSubmissionProtocol getQueueAclsInfo.it takes username and returns QueueAclsInfo class
-Created new QueueAclsInfo class , it is a Writable class.
-QueueManager implements the method and synchronized. The method is synchronized because aclsMap in QueueManger might get (incase of automatic acls refresh feature)refreshed.This if happens will lead to issues.
-In JobClient we are doing
ugi = UnixUserGroupInformation.login(job, true);
This is done so that we get ugi value in JobQueueClient which displaying the acls info , as we are displaying username. Anythoughts?
-We had discussed about the web ui part , we thought that any user seeing other acls might lead to some issues. If at all we allow this we need to define special kind of user permissions (for example : administrator) so that those users can view the acls of all the users.