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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
containsLocale(Locale locale)
com.evolveum.midpoint.task.api.Task
createSimpleTask(String operation)
static MidPointApplication
get()
String
getAdditionalPackagesToScan()
Returns customizable comma-separated list of additional packages to scan.AsyncWebProcessManager
getAsyncWebProcessManager()
ModelAuditService
getAuditService()
com.evolveum.midpoint.repo.api.CacheRegistry
getCacheRegistry()
AccessCertificationService
getCertificationService()
Clock
getClock()
static Locale
getDefaultLocale()
DeploymentInformationType
getDeploymentInfo()
com.evolveum.midpoint.repo.common.expression.ExpressionFactory
getExpressionFactory()
Class<? extends PageAdminLTE>
getHomePage()
LocalizationService
getLocalizationService()
MatchingRuleRegistry
getMatchingRuleRegistry()
ModelService
getModel()
ModelInteractionService
getModelInteractionService()
PrismContext
getPrismContext()
Protector
getProtector()
RelationRegistry
getRelationRegistry()
com.evolveum.midpoint.repo.api.RepositoryService
getRepositoryService()
SchemaService
getSchemaService()
com.evolveum.midpoint.security.api.SecurityContextManager
getSecurityContextManager()
com.evolveum.midpoint.security.enforcer.api.SecurityEnforcer
getSecurityEnforcer()
protected Class<? extends org.apache.wicket.markup.html.WebPage>
getSignInPageClass()
com.evolveum.midpoint.repo.api.SqlPerformanceMonitorsCollection
getSqlPerformanceMonitorsCollection()
com.evolveum.midpoint.repo.common.util.SubscriptionUtil.SubscriptionType
getSubscriptionType()
SystemConfigurationType
getSystemConfigurationIfAvailable()
com.evolveum.midpoint.task.api.TaskManager
getTaskManager()
TaskService
getTaskService()
WebApplicationConfiguration
getWebApplicationConfiguration()
protected Class<? extends org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession>
getWebSessionClass()
com.evolveum.midpoint.cases.api.CaseManager
getWorkflowManager()
CaseService
getWorkflowService()
void
init()
protected org.apache.wicket.IConverterLocator
newConverterLocator()
void
setApplicationContext(@NotNull org.springframework.context.ApplicationContext applicationContext)
-
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 com.evolveum.midpoint.repo.common.util.SubscriptionUtil.SubscriptionType getSubscriptionType()
-
newConverterLocator
protected org.apache.wicket.IConverterLocator newConverterLocator()
- Overrides:
newConverterLocator
in classorg.apache.wicket.Application
-
getWebApplicationConfiguration
public WebApplicationConfiguration getWebApplicationConfiguration()
-
getSecurityEnforcer
public com.evolveum.midpoint.security.enforcer.api.SecurityEnforcer getSecurityEnforcer()
-
getModel
public ModelService getModel()
-
getTaskManager
public com.evolveum.midpoint.task.api.TaskManager getTaskManager()
-
getLocalizationService
public LocalizationService getLocalizationService()
-
getAuditService
public ModelAuditService getAuditService()
-
getSqlPerformanceMonitorsCollection
public com.evolveum.midpoint.repo.api.SqlPerformanceMonitorsCollection getSqlPerformanceMonitorsCollection()
-
getRepositoryService
public com.evolveum.midpoint.repo.api.RepositoryService getRepositoryService()
-
getCacheRegistry
public com.evolveum.midpoint.repo.api.CacheRegistry getCacheRegistry()
-
getTaskService
public TaskService getTaskService()
-
getPrismContext
public PrismContext getPrismContext()
-
getSchemaService
public SchemaService getSchemaService()
-
getExpressionFactory
public com.evolveum.midpoint.repo.common.expression.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 com.evolveum.midpoint.cases.api.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()
-
createSimpleTask
public com.evolveum.midpoint.task.api.Task createSimpleTask(String operation)
-
getAsyncWebProcessManager
public AsyncWebProcessManager getAsyncWebProcessManager()
-
getSecurityContextManager
public com.evolveum.midpoint.security.api.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()
-
-