@Override public Set<String> mapRoles(Caller caller, Environment callEnvironment, JmxAction action, JmxTarget target) { // There's no mechanism for setting run-as roles over JMX return realRoleMapper.mapRoles(caller, callEnvironment, action, target); }
@Override public Set<String> mapRoles(Caller caller, Environment callEnvironment, JmxAction action, JmxTarget target) { // There's no mechanism for setting run-as roles over JMX return realRoleMapper.mapRoles(caller, callEnvironment, action, target); }
@Override public Set<String> getUserRoles(Caller caller, Environment callEnvironment, Action action, TargetResource target){ return roleMapper.mapRoles(caller, callEnvironment, action, target); }
@Override public Set<String> mapRoles(Caller caller, Environment callEnvironment, Set<String> operationHeaderRoles) { return mapRoles(caller, realRoleMapper.mapRoles(caller, callEnvironment, null), operationHeaderRoles, false); }
@Override public PermissionCollection getUserPermissions(Caller caller, Environment callEnvironment, Action action, TargetResource target) { return getUserPermissions(roleMapper.mapRoles(caller, callEnvironment, action, target)); }
@Override public Set<String> mapRoles(Caller caller, Environment callEnvironment, Set<String> operationHeaderRoles) { return mapRoles(caller, realRoleMapper.mapRoles(caller, callEnvironment, null), operationHeaderRoles, false); }
@Override public Set<String> mapRoles(Caller caller, Environment callEnvironment, Set<String> operationHeaderRoles) { return mapRoles(caller, realRoleMapper.mapRoles(caller, callEnvironment, null), operationHeaderRoles, false); }
@Override public PermissionCollection getUserPermissions(Caller caller, Environment callEnvironment, Action action, TargetAttribute target) { return getUserPermissions(roleMapper.mapRoles(caller, callEnvironment, action, target)); }
@Override public PermissionCollection getUserPermissions(Caller caller, Environment callEnvironment, Action action, TargetResource target) { return getUserPermissions(roleMapper.mapRoles(caller, callEnvironment, action, target)); }
@Override public PermissionCollection getUserPermissions(Caller caller, Environment callEnvironment, JmxAction action, JmxTarget target) { return getUserPermissions(roleMapper.mapRoles(caller, callEnvironment, action, target)); }
@Override public PermissionCollection getUserPermissions(Caller caller, Environment callEnvironment, Action action, TargetResource target) { return getUserPermissions(roleMapper.mapRoles(caller, callEnvironment, action, target)); }
@Override public Set<String> getCallerRoles(Caller caller, Environment callEnvironment, Set<String> runAsRoles) { Set<String> mapped = roleMapper.mapRoles(caller, callEnvironment, runAsRoles); if (mapped == null) { return null; } else if (mapped.isEmpty()) { return mapped; } Set<String> result = new HashSet<String>(); for (String role : mapped) { result.add(getOfficialRoleForm(role)); } return result; }
@Override public PermissionCollection getUserPermissions(Caller caller, Environment callEnvironment, Action action, TargetAttribute target) { return getUserPermissions(roleMapper.mapRoles(caller, callEnvironment, action, target)); }
@Override public Set<String> getCallerRoles(Caller caller, Environment callEnvironment, Set<String> runAsRoles) { Set<String> mapped = roleMapper.mapRoles(caller, callEnvironment, runAsRoles); if (mapped == null) { return null; } else if (mapped.isEmpty()) { return mapped; } Set<String> result = new HashSet<String>(); for (String role : mapped) { result.add(getOfficialRoleForm(role)); } return result; }
@Override public Set<String> mapRoles(Caller caller, Environment callEnvironment, Action action, TargetAttribute attribute) { Set<String> runAsRoles = getOperationHeaderRoles(action.getOperation()); return mapRoles(caller, realRoleMapper.mapRoles(caller, callEnvironment, action, attribute), runAsRoles, true); }
@Override public Set<String> mapRoles(Caller caller, Environment callEnvironment, Action action, TargetResource resource) { Set<String> runAsRoles = getOperationHeaderRoles(action.getOperation()); return mapRoles(caller, realRoleMapper.mapRoles(caller, callEnvironment, action, resource), runAsRoles, true); }
@Override public Set<String> mapRoles(Caller caller, Environment callEnvironment, Action action, TargetAttribute attribute) { Set<String> runAsRoles = getOperationHeaderRoles(action.getOperation()); return mapRoles(caller, realRoleMapper.mapRoles(caller, callEnvironment, action, attribute), runAsRoles, true); }
@Override public Set<String> mapRoles(Caller caller, Environment callEnvironment, Action action, TargetResource resource) { Set<String> runAsRoles = getOperationHeaderRoles(action.getOperation()); return mapRoles(caller, realRoleMapper.mapRoles(caller, callEnvironment, action, resource), runAsRoles, true); }
@Override public Set<String> mapRoles(Caller caller, Environment callEnvironment, Action action, TargetAttribute attribute) { Set<String> runAsRoles = getOperationHeaderRoles(action.getOperation()); return mapRoles(caller, realRoleMapper.mapRoles(caller, callEnvironment, action, attribute), runAsRoles, true); }
@Override public Set<String> mapRoles(Caller caller, Environment callEnvironment, Action action, TargetResource resource) { Set<String> runAsRoles = getOperationHeaderRoles(action.getOperation()); return mapRoles(caller, realRoleMapper.mapRoles(caller, callEnvironment, action, resource), runAsRoles, true); }