@Override public void onSubmit() { try { onFormSubmit(group); setReturnPageDirtyAndReturn(true); } catch (IOException e) { if (e.getCause() instanceof AbstractSecurityException) { error(e.getCause()); } else { error(new ParamResourceModel("saveError", getPage(), e.getMessage()).getObject()); } LOGGER.log(Level.SEVERE, "Error occurred while saving group", e); } } }.setEnabled(hasUserGroupStore
protected AbstractGroupPage(String userGroupServiceName, final GeoServerUserGroup group) { this.userGroupServiceName = userGroupServiceName; boolean hasUserGroupStore = hasUserGroupStore(userGroupServiceName); boolean hasRoleStore = hasRoleStore(getSecurityManager().getActiveRoleService().getName()); add(form); roles = new ArrayList( getSecurityManager() .getActiveRoleService() .getRolesForGroup(group.getGroupname())); || hasRoleStore( getSecurityManager().getActiveRoleService().getName()))); form.add(getCancelLink());
protected AbstractGroupPage(String userGroupServiceName, final GeoServerUserGroup group) { this.userGroupServiceName = userGroupServiceName; boolean hasUserGroupStore = hasUserGroupStore(userGroupServiceName); boolean hasRoleStore = hasRoleStore(getSecurityManager().getActiveRoleService().getName()); add(form); try { roles = new ArrayList( getSecurityManager().getActiveRoleService().getRolesForGroup(group.getGroupname())); } catch (IOException e) { throw new RuntimeException(e); form.add(getCancelLink());
protected AbstractGroupPage(String userGroupServiceName, final GeoServerUserGroup group) { this.userGroupServiceName = userGroupServiceName; boolean hasUserGroupStore = hasUserGroupStore(userGroupServiceName); boolean hasRoleStore = hasRoleStore(getSecurityManager().getActiveRoleService().getName()); add(form); try { roles = new ArrayList( getSecurityManager().getActiveRoleService().getRolesForGroup(group.getGroupname())); } catch (IOException e) { throw new RuntimeException(e); form.add(getCancelLink());
@Override public void onSubmit() { try { onFormSubmit(group); setReturnPageDirtyAndReturn(true); } catch (IOException e) { if (e.getCause() instanceof AbstractSecurityException) { error(e.getCause()); } else { error(new ParamResourceModel("saveError", getPage(), e.getMessage()).getObject()); } LOGGER.log(Level.SEVERE, "Error occurred while saving group", e); } } }.setEnabled(hasUserGroupStore
@Override public void onSubmit() { try { onFormSubmit(group); setReturnPageDirtyAndReturn(true); } catch (IOException e) { if (e.getCause() instanceof AbstractSecurityException) { error(e.getCause()); } else { error( new ParamResourceModel( "saveError", getPage(), e.getMessage()) .getObject()); } LOGGER.log(Level.SEVERE, "Error occurred while saving group", e); } } }.setEnabled(