Details
Description
Reuse JobAclManager.checkAccess
private boolean checkAccess(String userName) { if(!areAclsEnabled) { return true; } // User could see its own job. if (ugi.getShortUserName().equals(userName)) { return true; } // Admin could also see all jobs if (adminAclList != null && adminAclList.isUserAllowed(ugi)) { return true; } return false; }
jobACLsManager
.checkAccess(ugi, JobACL.VIEW_JOB, ..
new AccessControlList()))