@Override protected String getConfirmationMessage(GeoServerUserGroup object) throws Exception{ StringBuffer buffer = new StringBuffer(BeanUtils.getProperty(object, "groupname")); if ((Boolean) getDefaultModelObject()) { SortedSet<GeoServerRole> roles = GeoServerApplication.get().getSecurityManager() .getActiveRoleService().getRolesForGroup(object.getGroupname()); buffer.append(" ["); for (GeoServerRole role: roles) { buffer.append(role.getAuthority()).append(" "); } if (roles.size()>0) { // remove last delimiter buffer.setLength(buffer.length()-1); } buffer.append("]"); } return buffer.toString(); }
.loadUserGroupService(userGroupsServiceName); ugStore = new UserGroupStoreValidationWrapper(ugService.createStore()); for (GeoServerUserGroup group : removePanel.getRoots()) { ugStore.removeGroup(group); GeoServerApplication.get().getSecurityManager().getActiveRoleService().createStore(); gaStore = new RoleStoreValidationWrapper(gaStore); for (GeoServerUserGroup group : removePanel.getRoots()) { List<GeoServerRole> list= new ArrayList<GeoServerRole>(); list.addAll(gaStore.getRolesForGroup(group.getGroupname()));
.loadUserGroupService(userGroupsServiceName); ugStore = new UserGroupStoreValidationWrapper(ugService.createStore()); for (GeoServerUserGroup group : removePanel.getRoots()) { ugStore.removeGroup(group); GeoServerApplication.get().getSecurityManager().getActiveRoleService().createStore(); gaStore = new RoleStoreValidationWrapper(gaStore); for (GeoServerUserGroup group : removePanel.getRoots()) { List<GeoServerRole> list= new ArrayList<GeoServerRole>(); list.addAll(gaStore.getRolesForGroup(group.getGroupname()));
@Override protected String getConfirmationMessage(GeoServerUserGroup object) throws Exception{ StringBuffer buffer = new StringBuffer(BeanUtils.getProperty(object, "groupname")); if ((Boolean) getDefaultModelObject()) { SortedSet<GeoServerRole> roles = GeoServerApplication.get().getSecurityManager() .getActiveRoleService().getRolesForGroup(object.getGroupname()); buffer.append(" ["); for (GeoServerRole role: roles) { buffer.append(role.getAuthority()).append(" "); } if (roles.size()>0) { // remove last delimiter buffer.setLength(buffer.length()-1); } buffer.append("]"); } return buffer.toString(); }
new UserGroupStoreValidationWrapper( ugService.createStore()); for (GeoServerUserGroup group : removePanel.getRoots()) { ugStore.removeGroup(group); .createStore(); gaStore = new RoleStoreValidationWrapper(gaStore); for (GeoServerUserGroup group : removePanel.getRoots()) { List<GeoServerRole> list = new ArrayList<GeoServerRole>();
@Override protected String getConfirmationMessage(GeoServerUserGroup object) throws Exception { StringBuffer buffer = new StringBuffer(OwsUtils.property(object, "groupname", String.class)); if ((Boolean) getDefaultModelObject()) { SortedSet<GeoServerRole> roles = GeoServerApplication.get() .getSecurityManager() .getActiveRoleService() .getRolesForGroup(object.getGroupname()); buffer.append(" ["); for (GeoServerRole role : roles) { buffer.append(role.getAuthority()).append(" "); } if (roles.size() > 0) { // remove last delimiter buffer.setLength(buffer.length() - 1); } buffer.append("]"); } return buffer.toString(); } }