public AbstractSecurityPage() { add(dialog = new GeoServerDialog("dialog")); }
public AbstractSecurityPage() { add(dialog = new GeoServerDialog("dialog")); }
public AbstractSecurityPage() { add(dialog = new GeoServerDialog("dialog")); }
/** * * @param id * @param paramsMap * @param paramName * @param paramLabelModel * @param required * @param validators * any extra validator that should be added to the input field, or {@code null} */ public DirectoryParamPanel(final String id, final IModel paramValue, final IModel paramLabelModel, final boolean required, IValidator... validators) { super(id, paramValue, paramLabelModel, required, validators); // override the dialog component remove(dialog); add(gsDialog = new GeoServerDialog("dialog")); }
public RepositoriesListPanel(final String id) { super(id, new RepositoryProvider(), false); // the popup window for messages popupWindow = new ModalWindow("popupWindow"); add(popupWindow); add(dialog = new GeoServerDialog("dialog")); }
public SecurityNamedServicePanel(String id, IModel<T> model) { super(id, new Model()); this.configModel = model; //check for administrator, if not disable the panel and emit warning message boolean isAdmin = getSecurityManager().checkAuthenticationForAdminRole(); setEnabled(isAdmin); add(new Label("message", isAdmin ? new Model() : new StringResourceModel("notAdmin", this, null))); if (!isAdmin) { get("message").add(new AttributeAppender("class", new Model("info-link"), " ")); } setOutputMarkupId(true); add(new TextField("name").setRequired(true).setEnabled(model.getObject().getId() == null)); add(dialog = new GeoServerDialog("dialog")); }
public SecurityNamedServicePanel(String id, IModel<T> model) { super(id, new Model()); this.configModel = model; //check for administrator, if not disable the panel and emit warning message boolean isAdmin = getSecurityManager().checkAuthenticationForAdminRole(); setEnabled(isAdmin); add(new Label("message", isAdmin ? new Model() : new StringResourceModel("notAdmin", this, null))); if (!isAdmin) { get("message").add(new AttributeAppender("class", new Model("info-link"), " ")); } setOutputMarkupId(true); add(new TextField("name").setRequired(true).setEnabled(model.getObject().getId() == null)); add(dialog = new GeoServerDialog("dialog")); }
public SecurityNamedServicePanel(String id, IModel<T> model) { super(id, new Model()); this.configModel = model; // check for administrator, if not disable the panel and emit warning message boolean isAdmin = getSecurityManager().checkAuthenticationForAdminRole(); setEnabled(isAdmin); add( new Label( "message", isAdmin ? new Model() : new StringResourceModel("notAdmin", this, null))); if (!isAdmin) { get("message").add(new AttributeAppender("class", new Model("info-link"), " ")); } setOutputMarkupId(true); add(new TextField("name").setRequired(true).setEnabled(model.getObject().getId() == null)); add(dialog = new GeoServerDialog("dialog")); }
public StorePage() { // the table, and wire up selection change table = new StorePanel("table", provider, true) { @Override protected void onSelectionUpdate(AjaxRequestTarget target) { removal.setEnabled(table.getSelection().size() > 0); target.add(removal); } }; table.setOutputMarkupId(true); add(table); // the confirm dialog add(dialog = new GeoServerDialog("dialog")); setHeaderPanel(headerPanel()); }
public UserPanel(String id, String serviceName) { super(id); this.serviceName=serviceName; UserListProvider provider = new UserListProvider(this.serviceName); add(users = new UserTablePanel("table", serviceName, provider, true) { @Override protected void onSelectionUpdate(AjaxRequestTarget target) { removal.setEnabled(users.getSelection().size() > 0); target.addComponent(removal); removalWithRoles.setEnabled(users.getSelection().size() > 0); target.addComponent(removalWithRoles); } }); users.setOutputMarkupId(true); add(dialog = new GeoServerDialog("dialog")); headerComponents(); }
public UserPanel(String id, String serviceName) { super(id); this.serviceName=serviceName; UserListProvider provider = new UserListProvider(this.serviceName); add(users = new UserTablePanel("table", serviceName, provider, true) { @Override protected void onSelectionUpdate(AjaxRequestTarget target) { removal.setEnabled(users.getSelection().size() > 0); target.addComponent(removal); removalWithRoles.setEnabled(users.getSelection().size() > 0); target.addComponent(removalWithRoles); } }); users.setOutputMarkupId(true); add(dialog = new GeoServerDialog("dialog")); headerComponents(); }
public StorePage() { // the table, and wire up selection change table = new StorePanel("table", provider, true) { @Override protected void onSelectionUpdate(AjaxRequestTarget target) { removal.setEnabled(table.getSelection().size() > 0); target.addComponent(removal); } }; table.setOutputMarkupId(true); add(table); // the confirm dialog add(dialog = new GeoServerDialog("dialog")); setHeaderPanel(headerPanel()); }
protected void initUI(final DataStoreInfo dataStoreInfo) { // the confirm dialog dialog = new GeoServerDialog("dialog"); add(dialog); super.initUI(dataStoreInfo); if (dataStoreInfo.getId() != null) { //null id means detached from catalog, don't bother with uniqueness check final String wsId = dataStoreInfo.getWorkspace().getId(); workspacePanel.getFormComponent().add( new CheckExistingResourcesInWorkspaceValidator(dataStoreInfo.getId(), wsId)); } }
@Override void initUI(CoverageStoreInfo store) { dialog = new GeoServerDialog("dialog"); add(dialog); super.initUI(store); if (store.getId() != null) { //store id == null means the store is not part of catalog, forgo uniqueness check String workspaceId = store.getWorkspace().getId(); workspacePanel.getFormComponent().add( new CheckExistingResourcesInWorkspaceValidator(store.getId(), workspaceId)); } }
protected void initUI(final DataStoreInfo dataStoreInfo) { // the confirm dialog dialog = new GeoServerDialog("dialog"); add(dialog); super.initUI(dataStoreInfo); if (dataStoreInfo.getId() != null) { // null id means detached from catalog, don't bother with uniqueness check final String wsId = dataStoreInfo.getWorkspace().getId(); workspacePanel .getFormComponent() .add( new CheckExistingResourcesInWorkspaceValidator( dataStoreInfo.getId(), wsId)); } }
@Override void initUI(CoverageStoreInfo store) { dialog = new GeoServerDialog("dialog"); add(dialog); super.initUI(store); if (store.getId() != null) { // store id == null means the store is not part of catalog, forgo uniqueness check String workspaceId = store.getWorkspace().getId(); workspacePanel .getFormComponent() .add( new CheckExistingResourcesInWorkspaceValidator( store.getId(), workspaceId)); } }
public ConfigListPanel(final String id, final Map<String, String> config) { super(id, new ConfigProvider(config), false); super.setFilterable(false); this.provider = (ConfigProvider) super.getDataProvider(); this.setOutputMarkupId(true); // set the reuse strategy, otherwise the list does not get updated when the popup window // closes this.setItemReuseStrategy(DefaultItemReuseStrategy.getInstance()); // the popup window for messages popupWindow = new ModalWindow("popupWindow"); add(popupWindow); add(dialog = new GeoServerDialog("dialog")); add(pingFeedbackPanel = new FeedbackPanel("feedback")); pingFeedbackPanel.setOutputMarkupId(true); }
public SecurityNamedServiceTablePanel(String id, SecurityNamedServiceProvider<T> dataProvider) { super(id, dataProvider, true); }
public SecurityNamedServiceTablePanel(String id, SecurityNamedServiceProvider<T> dataProvider) { super(id, dataProvider, true); }
public SecurityNamedServiceTablePanel( String id, SecurityNamedServiceProvider<T> dataProvider) { super(id, dataProvider, true); }