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_LOCALESstatic StringMOUNT_FORBIDDEN_ERRORstatic StringMOUNT_GONE_ERRORstatic StringMOUNT_INTERNAL_SERVER_ERRORstatic StringMOUNT_NOT_FOUND_ERRORstatic StringMOUNT_UNAUTHORIZED_ERROR
-
Constructor Summary
Constructors Constructor Description MidPointApplication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancontainsLocale(Locale locale)com.evolveum.midpoint.task.api.TaskcreateSimpleTask(String operation)static MidPointApplicationget()StringgetAdditionalPackagesToScan()Returns customizable comma-separated list of additional packages to scan.AsyncWebProcessManagergetAsyncWebProcessManager()ModelAuditServicegetAuditService()com.evolveum.midpoint.repo.api.CacheRegistrygetCacheRegistry()AccessCertificationServicegetCertificationService()ClockgetClock()static LocalegetDefaultLocale()DeploymentInformationTypegetDeploymentInfo()com.evolveum.midpoint.repo.common.expression.ExpressionFactorygetExpressionFactory()Class<? extends PageAdminLTE>getHomePage()LocalizationServicegetLocalizationService()MatchingRuleRegistrygetMatchingRuleRegistry()ModelServicegetModel()ModelInteractionServicegetModelInteractionService()PrismContextgetPrismContext()ProtectorgetProtector()RelationRegistrygetRelationRegistry()com.evolveum.midpoint.repo.api.RepositoryServicegetRepositoryService()SchemaServicegetSchemaService()com.evolveum.midpoint.security.api.SecurityContextManagergetSecurityContextManager()com.evolveum.midpoint.security.enforcer.api.SecurityEnforcergetSecurityEnforcer()protected Class<? extends org.apache.wicket.markup.html.WebPage>getSignInPageClass()com.evolveum.midpoint.repo.api.SqlPerformanceMonitorsCollectiongetSqlPerformanceMonitorsCollection()com.evolveum.midpoint.repo.common.util.SubscriptionUtil.SubscriptionTypegetSubscriptionType()SystemConfigurationTypegetSystemConfigurationIfAvailable()com.evolveum.midpoint.task.api.TaskManagergetTaskManager()TaskServicegetTaskService()WebApplicationConfigurationgetWebApplicationConfiguration()protected Class<? extends org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession>getWebSessionClass()com.evolveum.midpoint.cases.api.CaseManagergetWorkflowManager()CaseServicegetWorkflowService()voidinit()protected org.apache.wicket.IConverterLocatornewConverterLocator()voidsetApplicationContext(@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:
getHomePagein classorg.apache.wicket.Application
-
init
public void init()
- Overrides:
initin 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:
newConverterLocatorin 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:
getSignInPageClassin classorg.apache.wicket.authroles.authentication.AuthenticatedWebApplication
-
getWebSessionClass
protected Class<? extends org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession> getWebSessionClass()
- Specified by:
getWebSessionClassin 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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getClock
public Clock getClock()
-
-