Class MidPointApplication
- java.lang.Object
-
- org.apache.wicket.Application
-
- org.apache.wicket.protocol.http.WebApplication
-
- org.apache.wicket.authroles.authentication.AuthenticatedWebApplication
-
- com.evolveum.midpoint.web.security.MidPointApplication
-
- All Implemented Interfaces:
org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener
,org.apache.wicket.authroles.authorization.strategies.role.IRoleCheckingStrategy
,org.apache.wicket.event.IEventSink
,org.apache.wicket.IMetadataContext<Object,org.apache.wicket.Application>
,org.apache.wicket.session.ISessionStore.UnboundListener
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class MidPointApplication extends org.apache.wicket.authroles.authentication.AuthenticatedWebApplication implements org.springframework.context.ApplicationContextAware
- Author:
- lazyman
-
-
Field Summary
Fields Modifier and Type Field Description static List<LocaleDescriptor>
AVAILABLE_LOCALES
static String
MOUNT_FORBIDDEN_ERROR
static String
MOUNT_GONE_ERROR
static String
MOUNT_INTERNAL_SERVER_ERROR
static String
MOUNT_NOT_FOUND_ERROR
static String
MOUNT_UNAUTHORIZED_ERROR
-
Constructor Summary
Constructors Constructor Description MidPointApplication()
-
Method Summary
-
Methods inherited from class org.apache.wicket.authroles.authentication.AuthenticatedWebApplication
hasAnyRole, newSession, onUnauthorizedInstantiation, onUnauthorizedPage, restartResponseAtSignInPage
-
Methods inherited from class org.apache.wicket.protocol.http.WebApplication
addResourceReplacement, addResourceReplacement, getAjaxRequestTargetListeners, getAjaxRequestTargetProvider, getAndRemoveBufferedResponse, getApplicationKey, getConfigurationType, getCspSettings, getFilterFactoryManager, getInitParameter, getMimeType, getServletContext, getSessionAttributePrefix, getWicketFilter, hasBufferedResponse, hasFilterFactoryManager, internalDestroy, internalInit, logEventTarget, logResponseTarget, mount, mountPackage, mountPage, mountResource, newAjaxRequestTarget, newCspSettings, newWebRequest, newWebResponse, outputDevelopmentModeWarning, renderXmlDecl, sessionUnbound, setAjaxRequestTargetProvider, setConfigurationType, setCspSettings, setServletContext, setWicketFilter, storeBufferedResponse, unmount, validateInit
-
Methods inherited from class org.apache.wicket.Application
checkSettingsAvailable, configure, createRequestCycle, decorateHeaderResponse, exists, fetchCreateAndSetSession, get, getApplicationKeys, getApplicationListeners, getApplicationSettings, getBehaviorInstantiationListeners, getComponentInitializationListeners, getComponentInstantiationListeners, getComponentOnAfterRenderListeners, getComponentOnConfigureListeners, getComponentPostOnBeforeRenderListeners, getComponentPreOnBeforeRenderListeners, getConverterLocator, getDebugSettings, getExceptionMapperProvider, getExceptionSettings, getFrameworkSettings, getHeaderContributorListeners, getHeaderResponseDecorators, getInitializers, getJavaScriptLibrarySettings, getMapperContext, getMarkupSettings, getMetaData, getName, getOnComponentTagListeners, getPageFactory, getPageManagerProvider, getPageRendererProvider, getPageSettings, getRequestCycleListeners, getRequestCycleProvider, getRequestCycleSettings, getRequestLogger, getRequestLoggerSettings, getResourceBundles, getResourceReferenceRegistry, getResourceSettings, getRootRequestMapper, getRootRequestMapperAsCompound, getSecuritySettings, getSessionListeners, getSessionStore, getSessionStoreProvider, getSharedResources, getStoreSettings, initApplication, newMapperContext, newPageFactory, newRequestLogger, newResourceBundles, newResourceReferenceRegistry, newSharedResources, onDestroy, onEvent, setApplicationSettings, setDebugSettings, setExceptionMapperProvider, setExceptionSettings, setFrameworkSettings, setHeaderResponseDecorator, setJavaScriptLibrarySettings, setMarkupSettings, setMetaData, setName, setPageManagerProvider, setPageRendererProvider, setPageSettings, setRequestCycleProvider, setRequestCycleSettings, setRequestLoggerSettings, setResourceSettings, setRootRequestMapper, setSecuritySettings, setSessionStoreProvider, setStoreSettings, usesDeploymentConfig, usesDevelopmentConfig
-
-
-
-
Field Detail
-
AVAILABLE_LOCALES
public static final List<LocaleDescriptor> AVAILABLE_LOCALES
-
MOUNT_INTERNAL_SERVER_ERROR
public static final String MOUNT_INTERNAL_SERVER_ERROR
- See Also:
- Constant Field Values
-
MOUNT_UNAUTHORIZED_ERROR
public static final String MOUNT_UNAUTHORIZED_ERROR
- See Also:
- Constant Field Values
-
MOUNT_FORBIDDEN_ERROR
public static final String MOUNT_FORBIDDEN_ERROR
- See Also:
- Constant Field Values
-
MOUNT_NOT_FOUND_ERROR
public static final String MOUNT_NOT_FOUND_ERROR
- See Also:
- Constant Field Values
-
MOUNT_GONE_ERROR
public static final String MOUNT_GONE_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHomePage
public Class<? extends PageAdminLTE> getHomePage()
- Specified by:
getHomePage
in classorg.apache.wicket.Application
-
init
public void init()
- Overrides:
init
in classorg.apache.wicket.authroles.authentication.AuthenticatedWebApplication
-
getDeploymentInfo
public DeploymentInformationType getDeploymentInfo()
-
getSubscriptionType
@NotNull public SubscriptionUtil.SubscriptionType getSubscriptionType()
-
newConverterLocator
protected org.apache.wicket.IConverterLocator newConverterLocator()
- Overrides:
newConverterLocator
in classorg.apache.wicket.Application
-
getWebApplicationConfiguration
public WebApplicationConfiguration getWebApplicationConfiguration()
-
getSecurityEnforcer
public SecurityEnforcer getSecurityEnforcer()
-
getModel
public ModelService getModel()
-
getTaskManager
public TaskManager getTaskManager()
-
getLocalizationService
public LocalizationService getLocalizationService()
-
getAuditService
public ModelAuditService getAuditService()
-
getSqlPerformanceMonitorsCollection
public SqlPerformanceMonitorsCollection getSqlPerformanceMonitorsCollection()
-
getRepositoryService
public RepositoryService getRepositoryService()
-
getCacheRegistry
public CacheRegistry getCacheRegistry()
-
getTaskService
public TaskService getTaskService()
-
getPrismContext
public PrismContext getPrismContext()
-
getSchemaService
public SchemaService getSchemaService()
-
getExpressionFactory
public ExpressionFactory getExpressionFactory()
-
getProtector
public Protector getProtector()
-
getSignInPageClass
protected Class<? extends org.apache.wicket.markup.html.WebPage> getSignInPageClass()
- Specified by:
getSignInPageClass
in classorg.apache.wicket.authroles.authentication.AuthenticatedWebApplication
-
getWebSessionClass
protected Class<? extends org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession> getWebSessionClass()
- Specified by:
getWebSessionClass
in classorg.apache.wicket.authroles.authentication.AuthenticatedWebApplication
-
getWorkflowService
public CaseService getWorkflowService()
-
getWorkflowManager
public CaseManager getWorkflowManager()
-
getModelInteractionService
public ModelInteractionService getModelInteractionService()
-
getRelationRegistry
public RelationRegistry getRelationRegistry()
-
getCertificationService
public AccessCertificationService getCertificationService()
-
containsLocale
public static boolean containsLocale(Locale locale)
-
getDefaultLocale
public static Locale getDefaultLocale()
-
getMatchingRuleRegistry
public MatchingRuleRegistry getMatchingRuleRegistry()
-
getSystemConfigurationIfAvailable
public SystemConfigurationType getSystemConfigurationIfAvailable()
-
getAdditionalPackagesToScan
public String getAdditionalPackagesToScan()
Returns customizable comma-separated list of additional packages to scan. This can be set with `midpoint.additionalPackagesToScan` property.
-
get
public static MidPointApplication get()
-
getAsyncWebProcessManager
public AsyncWebProcessManager getAsyncWebProcessManager()
-
getSecurityContextManager
public SecurityContextManager getSecurityContextManager()
-
setApplicationContext
public void setApplicationContext(@NotNull @NotNull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getClock
public Clock getClock()
-
-