ResultSet rs = null; try { if (UserIdentityUtil.hasGlobalAdministratorRole(currentUser, "GenerateReports", (sec), ctx)) { cmd = con.prepareStatement("select URI from servicepolicies;"); } else {
ResultSet rs = null; try { if (UserIdentityUtil.hasGlobalAdministratorRole(currentUser, "GenerateReports", (sec), ctx)) { cmd = con.prepareStatement("select URI from servicepolicies;"); } else if (UserIdentityUtil.hasGlobalAuditRole(currentUser, "GenerateReports", (sec), ctx)) {
@Override public void generateReport(OutputStreamWriter data, List<String> urls, String path, List<String> files, TimeRange range, String currentuser, SecurityWrapper classification, WebServiceContext ctx) throws IOException { if (!UserIdentityUtil.hasGlobalAdministratorRole(currentuser, "INVOCATIONS_BY_HOSTING_SERVER", classification, ctx)) { data.write("<h2>Access for " + GetDisplayName() + " was denied for non-global admin users</h2>"); return;
public void generateReport(OutputStreamWriter data, List<String> urls, String path, List<String> files, TimeRange range, String currentuser, SecurityWrapper classification, WebServiceContext ctx) throws IOException { if (!UserIdentityUtil.hasGlobalAdministratorRole(currentuser, "INVOCATIONS_BY_HOSTING_SERVER", classification, ctx)) { data.append("<h2>Access for " + GetDisplayName() + " was denied for non-global admin users</h2>"); return;
DefaultCategoryDataset set = new DefaultCategoryDataset(); JFreeChart chart = null; if (!UserIdentityUtil.hasGlobalAdministratorRole(currentuser, "THROUGHPUT_BY_HOSTING_SERVER", classification, ctx)) { data.append("<h2>Access for " + GetDisplayName() + " was denied for non-global admin users</h2>"); return;
if (!UserIdentityUtil.hasGlobalAdministratorRole(currentuser, "SUCCESS_FAILURE_COUNT_BY_HOSTING_SERVER", classification, ctx)) { data.append("<h2>Access for " + GetDisplayName() + " was denied for non-global admin users</h2>");
if (UserIdentityUtil.hasGlobalAdministratorRole(currentUser, "getAllStatus", req.getClassification(), ctx)) { com = con.prepareStatement("select * from status;"); } else {
if (UserIdentityUtil.hasGlobalAdministratorRole(currentUser, "deleteScheduledReport", request.getClassification(), ctx)) { cmd = con.prepareStatement("delete from arsjobs where jobid=? "); cmd.setString(1, request.getJobId());
ServiceType temp = null; if (UserIdentityUtil.hasGlobalAdministratorRole(currentUser, "GetServiceListfromPolicyDB", (classification), ctx)) { comm = con.prepareStatement("select URI, displayname, policytype from servicepolicies where policytype = ? and hostname=? order by uri asc;"); comm.setInt(1, p.ordinal());
boolean admin = UserIdentityUtil.hasGlobalAdministratorRole(currentUser, "getBrokerList", getBrokerListRequest.getClassification(), ctx); Connection con = Utility.getPerformanceDBConnection(); ResultSet rs = null;
try { if (UserIdentityUtil.hasGlobalAdministratorRole(currentUser, "GetServiceListfromPolicyDB", (classification), ctx)) { comm = con.prepareStatement("select URI, displayname, policytype, hostname, domaincol, parenturi from servicepolicies order by uri asc;"); } else {
ServiceType temp = null; if (UserIdentityUtil.hasGlobalAdministratorRole(currentUser, "GetServiceListfromPolicyDB", (classification), ctx)) { comm = con.prepareStatement("select URI, displayname, policytype, hostname, domaincol, parenturi from servicepolicies where policytype = ? order by uri asc;"); comm.setInt(1, p.ordinal());