/** * A convenience method to return the WebSession. Same as {@link org.apache.wicket.Component#getSession()} . * * @return the current WebSession */ public final WebSession getWebSession() { return WebSession.get(); }
/** * A convenience method to return the WebSession. Same as {@link org.apache.wicket.Component#getSession()} . * * @return the current WebSession */ public final WebSession getWebSession() { return WebSession.get(); }
/** * A convenience method to return the WebSession. Same as {@link org.apache.wicket.Component#getSession()} . * * @return the current WebSession */ public final WebSession getWebSession() { return WebSession.get(); }
/** * Constructor * * @param id the markup id * @param model the {@link IModel} * @param roles list of roles allowed to enable the button */ public SecuredButton(String id, IModel<String> model, String... roles) { this(id, model, (IJQuerySecurityProvider) WebSession.get(), roles); }
/** * Constructor * * @param name the button's name * @param property the property used to retrieve the row's object value * @param roles list of roles allowed to enable the button */ public SecuredToolbarButton(String name, String property, String[] roles) { this(name, property, roles, (IJQuerySecurityProvider) WebSession.get()); }
/** * Constructor * * @param name the button's name * @param text the button's text * @param property the property used to retrieve the row's object value * @param roles list of roles allowed to enable the button */ public SecuredToolbarButton(String name, IModel<String> text, String property, String[] roles) { this(name, text, property, roles, (IJQuerySecurityProvider) WebSession.get()); }
/** * Constructor for built-in commands (no property supplied) * * @param name the button's name * @param text the button's text * @param roles list of roles allowed to enable the button */ public SecuredCommandButton(String name, IModel<String> text, String[] roles) { this(name, text, roles, (IJQuerySecurityProvider) WebSession.get()); }
/** * Constructor * * @param id the markup id * @param icon either a {@link KendoIcon} constant or a 'k-i-<i>icon</i>' css class * @param roles list of roles allowed to enable the button */ public SecuredAjaxLink(String id, String icon, String[] roles) { this(id, icon, (IJQuerySecurityProvider) WebSession.get(), roles); }
/** * Constructor * * @param id the markup id * @param model the {@link IModel} * @param icon either a {@link KendoIcon} constant or a 'k-i-<i>icon</i>' css class * @param roles list of roles allowed to enable the button */ public SecuredAjaxLink(String id, IModel<T> model, String icon, String[] roles) { this(id, model, icon, (IJQuerySecurityProvider) WebSession.get(), roles); }
/** * A convenience method to return the WebSession. Same as {@link org.apache.wicket.Component#getSession()} . * * @return the current WebSession */ public final WebSession getWebSession() { return WebSession.get(); }
/** * Constructor * @param id the markup id * @param form the {@link Form} * @param roles list of roles allowed to enable the button */ public SecuredAjaxButton(String id, Form<?> form, String... roles) { this(id, form, (IJQuerySecurityProvider) WebSession.get(), roles); }
/** * Constructor * @param id the markup id * @param roles list of roles allowed to enable the button */ public SecuredButton(String id, String... roles) { this(id, (IJQuerySecurityProvider) WebSession.get(), roles); }
/** * Constructor for built-in commands (no property supplied) * * @param name the button's name * @param roles list of roles allowed to enable the button */ public SecuredToolbarButton(String name, String[] roles) { this(name, roles, (IJQuerySecurityProvider) WebSession.get()); }
/** * Constructor * @param id the markup id * @param roles list of roles allowed to enable the button */ public SecuredAjaxButton(String id, String... roles) { this(id, (IJQuerySecurityProvider) WebSession.get(), roles); }
private void runCustomInvalidators() { for (final SessionInvalidator current : invalidators) { current.invalidate((WebSession) WebSession.get()); } } }
@Override protected void onSelect(AjaxRequestTarget target, Component tabLink) { Component content = newPickExistingPanel(); target.add(content); fragment.replace(content); WebSession.get().setMetaData(ACTIVE_TAB, TAB_PICK_EXISTING); }
@Override protected void afterSubmit() { getModelObject().setJavaScriptEnabled(true); WebSession.get().setClientInfo(info.getObject()); continueToOriginalDestination(); // switch to home page if no original destination was intercepted setResponsePage(getApplication().getHomePage()); } };
@Override protected void afterSubmit() { getModelObject().setJavaScriptEnabled(true); WebSession.get().setClientInfo(info.getObject()); continueToOriginalDestination(); // switch to home page if no original destination was intercepted setResponsePage(getApplication().getHomePage()); } };
@Override public void onClick() { getModelObject().getProperties().setJavaScriptEnabled(false); WebSession.get().setClientInfo(getModelObject()); continueToOriginalDestination(); // switch to home page if no original destination was intercepted setResponsePage(getApplication().getHomePage()); } };
@Override public void onClick() { getModelObject().getProperties().setJavaScriptEnabled(false); WebSession.get().setClientInfo(getModelObject()); continueToOriginalDestination(); // switch to home page if no original destination was intercepted setResponsePage(getApplication().getHomePage()); } };