@Override protected void onBeforeRender() { roles.clearSelection(); removal.setEnabled(false); super.onBeforeRender(); } }
/** Sets back to the first page, clears the selection and */ public void reset() { dataView.setCurrentPage(0); clearSelection(); dataProvider.setSort(null); }
/** * Sets back to the first page, clears the selection and */ public void reset() { dataView.setCurrentPage(0); clearSelection(); dataProvider.setSort(null); }
@Override protected void onBeforeRender() { roles.clearSelection(); removal.setEnabled(false); super.onBeforeRender(); }
protected void onBeforeRender() { users.clearSelection(); removal.setEnabled(false); removalWithRoles.setEnabled(false); super.onBeforeRender(); } }
protected void onBeforeRender() { groups.clearSelection(); removal.setEnabled(false); removalWithRoles.setEnabled(false); super.onBeforeRender(); }
@Override protected void onClick(AjaxRequestTarget target, Form<?> form) { paramProvider.removeAll(parameters.getSelection()); parameters.clearSelection(); target.add(parameters); } });
protected void onBeforeRender() { users.clearSelection(); removal.setEnabled(false); removalWithRoles.setEnabled(false); super.onBeforeRender(); }
@Override public void onClick(AjaxRequestTarget target, Form<?> form) { attributesProvider.removeAll(attributeTable.getSelection()); attributeTable.clearSelection(); target.add(form); } });
@Override public void onClick(AjaxRequestTarget target, Form form) { attributesProvider.removeAll(attributeTable.getSelection()); attributeTable.clearSelection(); target.addComponent(form); } });
@Override protected void onClick(AjaxRequestTarget target, Form form) { paramProvider.removeAll(parameters.getSelection()); parameters.clearSelection(); target.addComponent(parameters); } });
protected void onBeforeRender() { groups.clearSelection(); removal.setEnabled(false); removalWithRoles.setEnabled(false); super.onBeforeRender(); } }
protected boolean onSubmit(AjaxRequestTarget target, Component contents) { // cascade delete the whole selection ServiceAccessRuleDAO dao = ServiceAccessRuleDAO.get(); for (ServiceAccessRule service : removePanel.getRoots()) { dao.removeRule(service); } try { dao.storeRules(); } catch (IOException e) { e.printStackTrace(); } // the deletion will have changed what we see in the page // so better clear out the selection services.clearSelection(); return true; }
protected boolean onSubmit(AjaxRequestTarget target, Component contents) { // cascade delete the whole selection Catalog catalog = GeoServerApplication.get().getCatalog(); CascadeDeleteVisitor visitor = new CascadeDeleteVisitor(catalog); for (CatalogInfo ci : selection) { ci.accept(visitor); } // the deletion will have changed what we see in the page // so better clear out the selection catalogObjects.clearSelection(); return true; }
protected boolean onSubmit(AjaxRequestTarget target, Component contents) { // cascade delete the whole selection ServiceAccessRuleDAO dao = ServiceAccessRuleDAO.get(); for (ServiceAccessRule service : removePanel.getRoots()) { dao.removeRule(service); } try { dao.storeRules(); } catch (IOException e) { e.printStackTrace(); } // the deletion will have changed what we see in the page // so better clear out the selection services.clearSelection(); return true; }
protected boolean onSubmit(AjaxRequestTarget target, Component contents) { // cascade delete the whole selection Catalog catalog = GeoServerApplication.get().getCatalog(); CascadeDeleteVisitor visitor = new CascadeDeleteVisitor(catalog); for (CatalogInfo ci : selection) { ci.accept(visitor); } // the deletion will have changed what we see in the page // so better clear out the selection catalogObjects.clearSelection(); return true; }
@Override protected void onCodeClicked(AjaxRequestTarget target, String epsgCode) { popupWindow.close(target); for (LayerSummary summary : summaryTable.getSelection()) { forceEpsgCode(epsgCode, summary); } summaryTable.clearSelection(); target.addComponent(summaryTable); } };
protected boolean onSubmit(AjaxRequestTarget target, Component contents) { // cascade delete the whole selection Catalog catalog = GeoServerApplication.get().getCatalog(); CascadeDeleteVisitor visitor = new CascadeDeleteVisitor(catalog); DataAccessRuleDAO dao = DataAccessRuleDAO.get(); for (DataAccessRule rule : removePanel.getRoots()) { dao.removeRule(rule); } try { dao.storeRules(); } catch (IOException e) { e.printStackTrace(); } // the deletion will have changed what we see in the page // so better clear out the selection rules.clearSelection(); return true; }
protected boolean onSubmit( AjaxRequestTarget target, Component contents) { // cascade delete the whole selection Catalog catalog = GeoServerApplication.get().getCatalog(); CascadeDeleteVisitor visitor = new CascadeDeleteVisitor(catalog); DataAccessRuleDAO dao = DataAccessRuleDAO.get(); for (DataAccessRule rule : removePanel.getRoots()) { dao.removeRule(rule); } try { dao.storeRules(); } catch (IOException e) { e.printStackTrace(); } // the deletion will have changed what we see in the page // so better clear out the selection rules.clearSelection(); return true; }
protected boolean onSubmit(AjaxRequestTarget target, Component contents) { // cascade delete the whole selection GeoServerRoleStore gaStore = null; try { GeoServerRoleService gaService = GeoServerApplication.get().getSecurityManager().loadRoleService(roleServiceName); gaStore = new RoleStoreValidationWrapper(gaService.createStore()); for (GeoServerRole role : removePanel.getRoots()) { gaStore.removeRole(role); } gaStore.store(); } catch (IOException ex) { try {gaStore.load(); } catch (IOException ex2) {}; throw new RuntimeException(ex); } // the deletion will have changed what we see in the page // so better clear out the selection roles.clearSelection(); return true; }