com.alogient.cameleon.extension.wicket
Class AbstractCameleonApplication

java.lang.Object
  extended by org.apache.wicket.Application
      extended by org.apache.wicket.protocol.http.WebApplication
          extended by org.apache.wicket.authentication.AuthenticatedWebApplication
              extended by com.alogient.cameleon.extension.wicket.AbstractCameleonApplication
All Implemented Interfaces:
org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener, org.apache.wicket.authorization.strategies.role.IRoleCheckingStrategy

public abstract class AbstractCameleonApplication
extends org.apache.wicket.authentication.AuthenticatedWebApplication

Base WebApplication class


Field Summary
 
Fields inherited from class org.apache.wicket.Application
CONFIGURATION, CONTEXTPATH, DEPLOYMENT, DEVELOPMENT
 
Constructor Summary
AbstractCameleonApplication()
           
 
Method Summary
static AbstractCameleonApplication get()
          Returns the current application as an instance of this class.
abstract  Class<? extends org.apache.wicket.markup.html.WebPage> getAccessDeniedPage()
           
static AbstractCameleonApplication getApplication()
           
 org.springframework.context.ApplicationContext getApplicationContext()
           
protected abstract  String getApplicationName()
           
 org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()
           
abstract  String getBasePackage()
           
abstract  Class<? extends org.apache.wicket.markup.html.WebPage> getCameleonSignInPageClass()
           
abstract  org.apache.commons.configuration.PropertiesConfiguration getConfiguration()
           
abstract  Class<? extends org.apache.wicket.markup.html.WebPage> getExpiredErrorPage()
           
 Class<? extends org.apache.wicket.markup.html.WebPage> getHomePage()
          Application subclasses must specify a home page class by implementing this abstract method.
abstract  Class<? extends org.apache.wicket.markup.html.WebPage> getHttpErrorPage()
          Used to manage any HTTP Error pages.
abstract  Class<? extends org.apache.wicket.markup.html.WebPage> getInternalErrorPage()
           
 NavigationCache getMenuCache()
           
protected  Class<? extends org.apache.wicket.markup.html.WebPage> getSignInPageClass()
           
protected  List<WicketStaticRoute> getStaticRoutes()
           
protected  Class<? extends org.apache.wicket.authentication.AuthenticatedWebSession> getWebSessionClass()
           
protected  void init()
           
 Boolean isSecurityAware()
           
 org.apache.wicket.RequestCycle newRequestCycle(org.apache.wicket.Request request, org.apache.wicket.Response response)
           
protected  org.apache.wicket.request.IRequestCycleProcessor newRequestCycleProcessor()
           
 org.apache.wicket.Session newSession(org.apache.wicket.Request request, org.apache.wicket.Response response)
           
protected  org.apache.wicket.protocol.http.WebResponse newWebResponse(javax.servlet.http.HttpServletResponse servletResponse)
           
protected  void onDestroy()
          
 boolean onlySupportDefaultLanguage()
          The project by default supports multi-languages Some projects are only available in one language.
 void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
          Injected by spring
protected  void springBeanInjection()
           
 
Methods inherited from class org.apache.wicket.authentication.AuthenticatedWebApplication
hasAnyRole, onUnauthorizedInstantiation, onUnauthorizedPage
 
Methods inherited from class org.apache.wicket.protocol.http.WebApplication
addIgnoreMountPath, getApplicationKey, getConfigurationType, getDefaultRequestCycleFactory, getInitParameter, getRequestCycleProcessor, getResourceFinder, getServletContext, getSessionAttributePrefix, getSessionAttributePrefix, getWicketFilter, internalDestroy, internalInit, logEventTarget, logResponseTarget, mount, mount, mountBookmarkablePage, mountBookmarkablePage, mountSharedResource, newAjaxRequestTarget, newSession, newSession, newSessionStore, newWebRequest, outputDevelopmentModeWarning, sessionDestroyed, setApplicationKey, setWicketFilter, unmount
 
Methods inherited from class org.apache.wicket.Application
addComponentInstantiationListener, addComponentOnAfterRenderListener, addPostComponentOnBeforeRenderListener, addPreComponentOnBeforeRenderListener, addRenderHeadListener, configure, destroy, exists, get, getApplicationKeys, getApplicationSettings, getConverterLocator, getDebugSettings, getExceptionSettings, getFrameworkSettings, getMarkupCache, getMarkupSettings, getMetaData, getName, getPageSettings, getRequestCycleFactory, getRequestCycleSettings, getRequestLogger, getRequestLoggerSettings, getResourceSettings, getSecuritySettings, getSessionFactory, getSessionSettings, getSessionStore, getSharedResources, initializeComponents, newConverterLocator, newRequestCycle, newRequestLogger, notifyRenderHeadListener, removeComponentInstantiationListener, removeComponentOnAfterRenderListener, removePostComponentOnBeforeRenderListener, removePreComponentOnBeforeRenderListener, removeRenderHeadListener, set, setMetaData, unset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCameleonApplication

public AbstractCameleonApplication()
Method Detail

get

public static AbstractCameleonApplication get()
Returns the current application as an instance of this class.

Returns:
the current application

getConfiguration

public abstract org.apache.commons.configuration.PropertiesConfiguration getConfiguration()

getBasePackage

public abstract String getBasePackage()

getCameleonSignInPageClass

public abstract Class<? extends org.apache.wicket.markup.html.WebPage> getCameleonSignInPageClass()

getExpiredErrorPage

public abstract Class<? extends org.apache.wicket.markup.html.WebPage> getExpiredErrorPage()

getAccessDeniedPage

public abstract Class<? extends org.apache.wicket.markup.html.WebPage> getAccessDeniedPage()

getInternalErrorPage

public abstract Class<? extends org.apache.wicket.markup.html.WebPage> getInternalErrorPage()

getHttpErrorPage

public abstract Class<? extends org.apache.wicket.markup.html.WebPage> getHttpErrorPage()
Used to manage any HTTP Error pages. 404, etc...

Returns:
the http error page

getApplicationName

protected abstract String getApplicationName()

init

protected void init()
Overrides:
init in class org.apache.wicket.authentication.AuthenticatedWebApplication

onDestroy

protected void onDestroy()

Overrides:
onDestroy in class org.apache.wicket.Application

onlySupportDefaultLanguage

public boolean onlySupportDefaultLanguage()
The project by default supports multi-languages Some projects are only available in one language. By default, Cameleon comes with two supported language. This method is used to specify that this project supports only the default language.


getHomePage

public final Class<? extends org.apache.wicket.markup.html.WebPage> getHomePage()
Application subclasses must specify a home page class by implementing this abstract method.

Specified by:
getHomePage in class org.apache.wicket.Application
Returns:
Home page class for this application

getSignInPageClass

protected final Class<? extends org.apache.wicket.markup.html.WebPage> getSignInPageClass()
Specified by:
getSignInPageClass in class org.apache.wicket.authentication.AuthenticatedWebApplication

getWebSessionClass

protected Class<? extends org.apache.wicket.authentication.AuthenticatedWebSession> getWebSessionClass()
Specified by:
getWebSessionClass in class org.apache.wicket.authentication.AuthenticatedWebApplication

newSession

public org.apache.wicket.Session newSession(org.apache.wicket.Request request,
                                            org.apache.wicket.Response response)
Overrides:
newSession in class org.apache.wicket.authentication.AuthenticatedWebApplication

newWebResponse

protected org.apache.wicket.protocol.http.WebResponse newWebResponse(javax.servlet.http.HttpServletResponse servletResponse)
Overrides:
newWebResponse in class org.apache.wicket.protocol.http.WebApplication

newRequestCycle

public final org.apache.wicket.RequestCycle newRequestCycle(org.apache.wicket.Request request,
                                                            org.apache.wicket.Response response)
Overrides:
newRequestCycle in class org.apache.wicket.protocol.http.WebApplication

newRequestCycleProcessor

protected org.apache.wicket.request.IRequestCycleProcessor newRequestCycleProcessor()
Overrides:
newRequestCycleProcessor in class org.apache.wicket.protocol.http.WebApplication

getApplication

public static AbstractCameleonApplication getApplication()

springBeanInjection

protected void springBeanInjection()

getApplicationContext

public org.springframework.context.ApplicationContext getApplicationContext()
Returns:
the Spring application context

setAuthenticationManager

public void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
Injected by spring

Parameters:
authenticationManager - the authentication manager

getAuthenticationManager

public org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()

getStaticRoutes

protected List<WicketStaticRoute> getStaticRoutes()

isSecurityAware

public Boolean isSecurityAware()

getMenuCache

public NavigationCache getMenuCache()


Copyright © 2011 Alogient. All Rights Reserved.