static void handleExcluded(Permissions collection, MapValue m, String name) { String actions = null; BitSet excludedMethods = m.getExcludedMethods(); if (m.otherConstraint.isExcluded()) { BitSet methods = m.getMethodSet(); methods.andNot(excludedMethods); if (!methods.isEmpty()) { actions = "!" + MethodValue.getActions(methods); } } else if (!excludedMethods.isEmpty()) { actions = MethodValue.getActions(excludedMethods); } else { return; } collection.add(new WebResourcePermission(name,actions)); collection.add(new WebUserDataPermission(name,actions)); if (logger.isLoggable(Level.FINE)){ logger.log(Level.FINE,"JACC: constraint capture: adding excluded methods: "+ actions); } }
static void handleExcluded(Permissions collection, MapValue m, String name) { String actions = null; BitSet excludedMethods = m.getExcludedMethods(); if (m.otherConstraint.isExcluded()) { BitSet methods = m.getMethodSet(); methods.andNot(excludedMethods); if (!methods.isEmpty()) { actions = "!" + MethodValue.getActions(methods); } } else if (!excludedMethods.isEmpty()) { actions = MethodValue.getActions(excludedMethods); } else { return; } collection.add(new WebResourcePermission(name,actions)); collection.add(new WebUserDataPermission(name,actions)); if (logger.isLoggable(Level.FINE)){ logger.log(Level.FINE,"JACC: constraint capture: adding excluded methods: "+ actions); } }
List<String> roleList = null; if (!m.otherConstraint.isExcluded() && m.otherConstraint.isAuthConstrained()) { roleList = m.otherConstraint.roleList; for (String roleName : roleList) {
List<String> roleList = null; if (!m.otherConstraint.isExcluded() && m.otherConstraint.isAuthConstrained()) { roleList = m.otherConstraint.roleList; for (String roleName : roleList) {