public abstract class SwarmWebApplication
extends org.wicketstuff.security.WaspWebApplication
META_INF_RESOURCESCONFIGURATION| Constructor and Description |
|---|
SwarmWebApplication() |
| Modifier and Type | Method and Description |
|---|---|
org.wicketstuff.security.actions.WaspActionFactory |
getActionFactory() |
protected abstract Object |
getHiveKey()
Returns the key to specify the hive.
|
org.wicketstuff.security.strategies.StrategyFactory |
getStrategyFactory() |
protected void |
init()
triggers the setup of the factories and the hive.
|
protected void |
setActionFactory(org.wicketstuff.security.actions.WaspActionFactory factory)
Allows the
ActionFactory field to be set once. |
protected void |
setStrategyFactory(org.wicketstuff.security.strategies.StrategyFactory factory)
Allows the
StrategyFactory field to be set once. |
protected void |
setupActionFactory() |
protected abstract void |
setUpHive()
Set up a Hive for this Application.
|
protected void |
setupStrategyFactory() |
addResourceReplacement, addResourceReplacement, get, getAjaxRequestTargetListeners, getAjaxRequestTargetProvider, getAndRemoveBufferedResponse, getApplicationKey, getConfigurationType, getFilterFactoryManager, getInitParameter, getMimeType, getServletContext, getSessionAttributePrefix, getUpdateAutoLabelsOnAjaxRequests, getWicketFilter, hasBufferedResponse, hasFilterFactoryManager, internalDestroy, internalInit, logEventTarget, logResponseTarget, mount, mountPackage, mountPage, mountResource, newAjaxRequestTarget, newWebRequest, newWebResponse, outputDevelopmentModeWarning, renderXmlDecl, sessionUnbound, setAjaxRequestTargetProvider, setConfigurationType, setServletContext, setWicketFilter, storeBufferedResponse, unmountconfigure, createRequestCycle, decorateHeaderResponse, exists, fetchCreateAndSetSession, get, getApplicationKeys, getApplicationListeners, getApplicationSettings, getBehaviorInstantiationListeners, getComponentInitializationListeners, getComponentInstantiationListeners, getComponentOnAfterRenderListeners, getComponentOnConfigureListeners, getComponentPostOnBeforeRenderListeners, getComponentPreOnBeforeRenderListeners, getConverterLocator, getDebugSettings, getExceptionMapperProvider, getExceptionSettings, getFrameworkSettings, getHeaderContributorListeners, getHomePage, getInitializers, getJavaScriptLibrarySettings, getMapperContext, getMarkupSettings, getMetaData, getName, getOnComponentTagListeners, getPageFactory, getPageManagerContext, getPageManagerProvider, getPageRendererProvider, getPageSettings, getRequestCycleListeners, getRequestCycleProvider, getRequestCycleSettings, getRequestLogger, getRequestLoggerSettings, getResourceBundles, getResourceReferenceRegistry, getResourceSettings, getRootRequestMapper, getRootRequestMapperAsCompound, getSecuritySettings, getSessionListeners, getSessionStore, getSessionStoreProvider, getSharedResources, getStoreSettings, initApplication, newConverterLocator, newMapperContext, newPageFactory, newRequestLogger, newResourceBundles, newResourceReferenceRegistry, newSharedResources, onEvent, setApplicationSettings, setDebugSettings, setExceptionSettings, setFrameworkSettings, setHeaderResponseDecorator, setJavaScriptLibrarySettings, setMarkupSettings, setMetaData, setName, setPageManagerProvider, setPageRendererProvider, setPageSettings, setRequestCycleProvider, setRequestCycleSettings, setRequestLoggerSettings, setResourceSettings, setRootRequestMapper, setSecuritySettings, setSessionStoreProvider, setStoreSettings, usesDeploymentConfig, usesDevelopmentConfig, validateInitprotected void setupActionFactory()
setupActionFactory in class org.wicketstuff.security.WaspWebApplicationWaspWebApplication.setupActionFactory()protected final void setActionFactory(org.wicketstuff.security.actions.WaspActionFactory factory)
ActionFactory field to be set once.factory - the actionfactoryIllegalStateException - if the factory is set more than once.protected void setupStrategyFactory()
setupStrategyFactory in class org.wicketstuff.security.WaspWebApplicationWaspWebApplication.setupStrategyFactory()protected final void setStrategyFactory(org.wicketstuff.security.strategies.StrategyFactory factory)
StrategyFactory field to be set once.factory - the strategyfactoryIllegalStateException - if the factory is set more than once.protected void init()
init in class org.wicketstuff.security.WaspWebApplicationWaspWebApplication.init()protected abstract void setUpHive()
PolicyFileHiveFactory factory = new PolicyFileHiveFactory();
factory.addPolicyFile("/policy.hive");
HiveMind.registerHive(getHiveKey(), factory);
Note that you must setup the actionfactory before you can setup the hive. Note that
the hive is not automatically unregistered since there is a chance you want to share it with
another webapp. If you want to unregister the hive please do so in the WaspWebApplication.onDestroy()public org.wicketstuff.security.actions.WaspActionFactory getActionFactory()
WaspApplication.getActionFactory()public org.wicketstuff.security.strategies.StrategyFactory getStrategyFactory()
WaspApplication.getStrategyFactory()protected abstract Object getHiveKey()
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.