/** * Convenience method for pages to get access to the catalog. */ protected Catalog getCatalog() { return getGeoServerApplication().getCatalog(); }
/** * Convenience method for pages to get access to the geoserver * configuration. */ protected GeoServer getGeoServer() { return getGeoServerApplication().getGeoServer(); }
@SuppressWarnings("serial") public DemoPage(){ List<DemoLinkInfo> links = getGeoServerApplication().getBeansOfType(DemoLinkInfo.class); add(new ListView("demoList", links){ public void populateItem(ListItem item){ final DemoLinkInfo info = (DemoLinkInfo)item.getModelObject(); item.add(new BookmarkablePageLink("theLink", info.getComponentClass()) .add(new Label("theTitle", new StringResourceModel(info.getTitleKey(), (Component)null, null)))); item.add(new Label("theDescription", new StringResourceModel(info.getDescriptionKey(), (Component)null, null))); } }); } }
/** Returns the application singleton. */ protected GeoServerApplication getApplication() { return GeoServerApplication.get(); } /**
@Override protected List<T> load() { GeoServerApplication app = getGeoServerApplication(); List<T> providers = app.getBeansOfType(providerClass); return providers; } };
/** * Returns the security manager. */ public GeoServerSecurityManager getSecurityManager() { return getBeanOfType(GeoServerSecurityManager.class); }
@Override public void onEndRequest(org.apache.wicket.request.cycle.RequestCycle cycle) { for (WicketCallback callback : callbacks) { callback.onEndRequest(); } }
public MenuPageInfo() { /* * Returns the object used to check whether this page can be accessed or not.<br> * It's used to hide the pages that cannot be accessed from the left menu.<br> * This method is invoked only if the page happens to be a {@link GeoServerSecuredPage}. * <p>If you do override this method, make sure to override the authorizer grabbing * method in the page as well</p> * */ setAuthorizer(GeoServerSecuredPage.DEFAULT_AUTHORIZER); }
@Override public void onDetach(org.apache.wicket.request.cycle.RequestCycle cycle) { for (WicketCallback callback : callbacks) { callback.onAfterTargetsDetached(); } }
@Override public IRequestHandler onException( org.apache.wicket.request.cycle.RequestCycle cycle, Exception ex) { for (WicketCallback callback : callbacks) { callback.onRuntimeException(cycle, ex); } return null; } }
@Override protected String load() { return getPageTitle(); } }));
public GeoServerExpiredPage() { add( new Link("homeLink") { public void onClick() { setResponsePage(GeoServerHomePage.class); } }); } }
@Override public void onRequestHandlerResolved( org.apache.wicket.request.cycle.RequestCycle cycle, IRequestHandler handler) { processHandler(cycle, handler); }
@Override public IRequestMapper getDelegateMapper() { return getMapper(); } }
/** * Returns the spring application context. */ public ApplicationContext getApplicationContext() { return internalGetApplicationContext(); }
/** Convenience method for pages to get access to the catalog. */ protected Catalog getCatalog() { return getGeoServerApplication().getCatalog(); }
/** Convenience method for pages to get access to the geoserver configuration. */ protected GeoServer getGeoServer() { return getGeoServerApplication().getGeoServer(); }
@Override protected List<T> load() { GeoServerApplication app = getGeoServerApplication(); List<T> providers = app.getBeansOfType(providerClass); return providers; } };
@Override protected void onEndRequest() { for (WicketCallback callback : callbacks) { callback.onEndRequest(); } }
public MenuPageInfo() { /* * Returns the object used to check whether this page can be accessed or not.<br> * It's used to hide the pages that cannot be accessed from the left menu.<br> * This method is invoked only if the page happens to be a {@link GeoServerSecuredPage}. * <p>If you do override this method, make sure to override the authorizer grabbing * method in the page as well</p> * @return */ setAuthorizer(GeoServerSecuredPage.DEFAULT_AUTHORIZER); } public void setCategory(Category category){