form.add(new HelpLink("authChainsHelp").setDialog(dialog)); form.add(authFilterChainPanel = new AuthFilterChainPanel("filterChain", new PropertyModel<GeoServerSecurityFilterChain>(form.getModel(), "filterChain"))); form.add(new HelpLink("filterChainHelp").setDialog(dialog));
public AuthFilterChainPanel(String id, IModel<GeoServerSecurityFilterChain> model) { super(id, new Model()); this.setOutputMarkupId(true); add(urlPathField=new TextField<String>("urlPath",new PropertyModel<String>(this,"urlPath"))); urlPathField.setOutputMarkupId(true); urlPathField.add( add(chainTestResultField=new TextField<String>("chainTestResult",new PropertyModel<String>(this,"chainTestResult"))); chainTestResultField.setEnabled(false); chainTestResultField.setOutputMarkupId(true); add(httpMethodChoice=new DropDownChoice<HTTPMethod>("httpMethod", new PropertyModel<HTTPMethod>(this,"httpMethod"), Arrays.asList(HTTPMethod.values()))); add(new AjaxSubmitLink("chainTest") { @Override protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
public AuthFilterChainPanel(String id, IModel<GeoServerSecurityFilterChain> model) { super(id, new Model()); this.setOutputMarkupId(true); add( urlPathField = new TextField<String>( }); add( chainTestResultField = new TextField<String>( chainTestResultField.setOutputMarkupId(true); add( httpMethodChoice = new DropDownChoice<HTTPMethod>( }); add( new AjaxSubmitLink("chainTest") { @Override
new AuthFilterChainPanel( "filterChain", new PropertyModel<GeoServerSecurityFilterChain>(
form.add(new HelpLink("authProvidersHelp").setDialog(dialog)); form.add(new AuthFilterChainPanel("filterChain", new PropertyModel<GeoServerSecurityFilterChain>(form.getModel(), "filterChain"))); form.add(new HelpLink("filterChainHelp").setDialog(dialog));
public AuthFilterChainPanel(String id, IModel<GeoServerSecurityFilterChain> model) { super(id, new Model()); requestChain = model.getObject().getRequestChainByName("web"); add(new RequestChainDropDownChoice("requestChain", new PropertyModel(this, "requestChain"), new PropertyModel<List<RequestFilterChain>>(model, "requestChains")).add(new OnChangeAjaxBehavior() { @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(AuthFilterChainPanel.this.get("authFilterChain")); } })); add(new AuthFilterChainPalette("authFilterChain", new AuthFilterNamesModel(model)) .setOutputMarkupId(true)); }
@Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(AuthFilterChainPanel.this.get("authFilterChain")); } }));
@Override public void setObject(List<String> object) { if (!requestChain.updateAuthFilters(object)) { error("Unable to update filters for " + requestChain); } }