/** * accessors for security manager */ public GeoServerSecurityManager getSecurityManager() { return GeoServerApplication.get().getSecurityManager(); }
MasterPasswordProviderNamesModel() { try { providerNames = new ArrayList(GeoServerApplication.get().getSecurityManager() .listMasterPasswordProviders()); } catch (IOException e) { throw new RuntimeException(e); } }
MasterPasswordProviderNamesModel() { try { providerNames = new ArrayList(GeoServerApplication.get().getSecurityManager() .listMasterPasswordProviders()); } catch (IOException e) { throw new RuntimeException(e); } }
protected GeoServerUserGroupService getService() { try { return GeoServerApplication.get() .getSecurityManager() .loadUserGroupService(serviceName); } catch (IOException e) { throw new RuntimeException(e); } }
protected GeoServerRoleService getService() { try { return GeoServerApplication.get().getSecurityManager().loadRoleService(roleServiceName); } catch (IOException e) { throw new RuntimeException(e); } }
protected GeoServerUserGroupService getService() { try { return GeoServerApplication.get().getSecurityManager(). loadUserGroupService(serviceName); } catch (IOException e) { throw new RuntimeException(e); } }
@Override protected SecurityManagerConfig load() { return GeoServerApplication.get().getSecurityManager().getSecurityConfig(); } }
@Override public List<String> getObject() { List<String> result = new ArrayList<String>(); try { result.addAll(chain.listFilterCandidates(GeoServerApplication.get().getSecurityManager())); } catch (IOException e) { throw new WicketRuntimeException(e); } return result; }
RoleServiceNamesModel() { try { this.serviceNames = new ArrayList( GeoServerApplication.get().getSecurityManager().listRoleServices()); } catch (IOException e) { throw new WicketRuntimeException(e); } }
@Override protected Collection<GeoServerRole> load() { GeoServerSecurityManager secMgr = GeoServerApplication.get().getSecurityManager(); try { return new ArrayList(secMgr.getRolesForAccessControl()); } catch(IOException e) { throw new WicketRuntimeException(e); } }
UserGroupServiceNamesModel() { try { this.serviceNames = new ArrayList( GeoServerApplication.get().getSecurityManager().listUserGroupServices()); } catch (IOException e) { throw new WicketRuntimeException(e); } }
UserGroupServiceNamesModel() { try { this.serviceNames = new ArrayList( GeoServerApplication.get().getSecurityManager().listUserGroupServices()); } catch (IOException e) { throw new WicketRuntimeException(e); } }
UserGroupServiceNamesModel() { try { this.serviceNames = new ArrayList( GeoServerApplication.get() .getSecurityManager() .listUserGroupServices()); } catch (IOException e) { throw new WicketRuntimeException(e); } }
PasswordPolicyNamesModel() { try { policyNames = new ArrayList<String>( GeoServerApplication.get() .getSecurityManager() .listPasswordValidators()); } catch (IOException e) { throw new WicketRuntimeException(e); } }
PasswordPolicyNamesModel() { try { policyNames = new ArrayList<String>( GeoServerApplication.get().getSecurityManager().listPasswordValidators()); } catch (IOException e) { throw new WicketRuntimeException(e); } }
@Override public Component getPageBodyComponent(String id) { // do a check that the root password is not set GeoServerSecurityManager secMgr = GeoServerApplication.get().getSecurityManager(); if (secMgr.checkAuthenticationForAdminRole()) { return new SecurityWarningsPanel(id); } return null; }
@Override public Component getPageBodyComponent(String id) { //do a check that the root password is not set GeoServerSecurityManager secMgr = GeoServerApplication.get().getSecurityManager(); if (secMgr.checkAuthenticationForAdminRole()) { return new SecurityWarningsPanel(id); } return null; }
@Override protected Collection<GeoServerRole> load() { GeoServerSecurityManager secMgr = GeoServerApplication.get().getSecurityManager(); try { return new ArrayList(secMgr.getActiveRoleService().getRoles()); } catch(IOException e) { throw new WicketRuntimeException(e); } }
@Override protected List<GeoServerUserGroup> load() { GeoServerSecurityManager secMgr = GeoServerApplication.get().getSecurityManager(); try { return new ArrayList(secMgr.loadUserGroupService(userGroupServiceName).getUserGroups()); } catch(IOException e) { throw new WicketRuntimeException(e); } }
@Override protected void onClick(AjaxRequestTarget target) { GeoServerRole role = (GeoServerRole) getDefaultModelObject(); GeoServerRole parentRole; try { parentRole = GeoServerApplication.get().getSecurityManager() .loadRoleService(roleServiceName).getParentRole(role); } catch (IOException e) { throw new RuntimeException(e); } setResponsePage(new EditRolePage(roleServiceName, parentRole).setReturnPage(getPage())); }