All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spring.aps.managers.baseManagersConfig.xml Maven / Gradle / Ivy

Go to download

Entando Engine: an agile, modern and user-centric open source Portal platform.

There is a newer version: 6.2.27
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:jee="http://www.springframework.org/schema/jee"
       xmlns:util="http://www.springframework.org/schema/util"
       xmlns:cache="http://www.springframework.org/schema/cache"
       xmlns:p="http://www.springframework.org/schema/p"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xmlns:task="http://www.springframework.org/schema/task"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
			http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
			http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd
			http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
			http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
			http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
			http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd">

    <context:component-scan base-package="org.entando.entando.aps.util.crypto" />
    
    <cache:annotation-driven cache-manager="springCacheManager" />
    <aop:aspectj-autoproxy proxy-target-class="true" />

    <bean id="NotifyManager" class="com.agiletec.aps.system.common.notify.NotifyManager" />

    <bean id="abstractService" abstract="true" class="com.agiletec.aps.system.common.AbstractService"
          init-method="init" destroy-method="destroy" >
        <property name="notifyManager" ref="NotifyManager" />
    </bean>

    <bean name="defaultCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="pageCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="pageModelCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="categoryCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="widgetTypeCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="configCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="roleCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="groupCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="langCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="cacheInfoCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="i18lnCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="userProfileCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="initializerCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="apiCatalogCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="keyGeneratorCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="dataObjectCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="dataObjectModelCache" class="java.util.concurrent.ConcurrentHashMap"/>
    <bean name="dataObjectMapperCache" class="java.util.concurrent.ConcurrentHashMap"/>
    
    <!-- SPRING OBJECT -->
    <bean id="springCacheManager" class="org.entando.entando.aps.system.services.cache.EntandoCacheManager">
        <property name="caches">
            <set>
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean" 
                      p:name="Entando_Cache" p:store-ref="defaultCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_PageManager" p:store-ref="pageCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_PageModelManager" p:store-ref="pageModelCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_WidgetTypeManager" p:store-ref="widgetTypeCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_CategoryManager" p:store-ref="categoryCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_ConfigManager" p:store-ref="configCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_RoleManager" p:store-ref="roleCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_GroupManager" p:store-ref="groupCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_LangManager" p:store-ref="langCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_CacheInfoManager" p:store-ref="cacheInfoCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_I18nManager" p:store-ref="i18lnCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_UserProfileManager" p:store-ref="userProfileCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_InitializerManager" p:store-ref="initializerCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_ApiCatalogManager" p:store-ref="apiCatalogCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_KeyGeneratorManager" p:store-ref="keyGeneratorCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_DataObjectManager" p:store-ref="dataObjectCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_DataObjectModelManager" p:store-ref="dataObjectModelCache" />
                <bean class="org.entando.entando.aps.system.services.cache.CustomConcurrentMapCacheFactoryBean"
                      p:name="Entando_DataObjectPageMapperManager" p:store-ref="dataObjectMapperCache" />
            </set>
        </property>
    </bean>

    <bean id="CacheInfoManager" class="org.entando.entando.aps.system.services.cache.CacheInfoManager"
          parent="abstractService" depends-on="springCacheManager" >
        <property name="springCacheManager" ref="springCacheManager" />
    </bean>

    <bean id="BaseConfigManager" class="com.agiletec.aps.system.services.baseconfig.BaseConfigManager"
          parent="abstractService" depends-on="springCacheManager" >
        <property name="systemParams">
            <map>
                <entry key="version">
                    <value>${version}</value>
                </entry>
                <entry key="fileUploadMaxSize">
                    <value>${file.upload.maxSize}</value>
                </entry>
                <entry key="configVersion">
                    <value>${configVersion}</value>
                </entry>
                <entry key="applicationBaseURL">
                    <value>${applicationBaseURL}</value>
                </entry>
                <entry key="resourceRootURL">
                    <value>${resourceRootURL}</value>
                </entry>
                <entry key="resourceDiskRootFolder">
                    <value>${resourceDiskRootFolder}</value>
                </entry>
            </map>
        </property>
        <property name="securityConfigPath">
            <value>${algorithm.securityConfiguration.path}</value>
        </property>
        <property name="configDAO" >
            <bean class="com.agiletec.aps.system.services.baseconfig.ConfigItemDAO">
                <property name="dataSource" ref="portDataSource" />
            </bean>
        </property>
        <property name="cacheWrapper">
            <bean class="com.agiletec.aps.system.services.baseconfig.cache.ConfigManagerCacheWrapper">
                <property name="springCacheManager" ref="springCacheManager" />
            </bean>
        </property>
    </bean>

    <bean id="GroupManager" class="com.agiletec.aps.system.services.group.GroupManager"
          parent="abstractService" depends-on="springCacheManager" >
        <property name="groupDAO" >
            <bean class="com.agiletec.aps.system.services.group.GroupDAO">
                <property name="dataSource" ref="servDataSource" />
                <property name="dataSourceClassName"><value>${servDataSourceClassName}</value></property>
            </bean>
        </property>
        <property name="cacheWrapper">
            <bean class="com.agiletec.aps.system.services.group.cache.GroupManagerCacheWrapper">
                <property name="springCacheManager" ref="springCacheManager" />
            </bean>
        </property>
    </bean>

    <bean id="RoleManager" class="com.agiletec.aps.system.services.role.RoleManager"
          parent="abstractService" depends-on="springCacheManager" >
        <property name="roleDAO" >
            <bean class="com.agiletec.aps.system.services.role.RoleDAO">
                <property name="dataSource" ref="servDataSource" />
            </bean>
        </property>
        <property name="permissionDAO" >
            <bean class="com.agiletec.aps.system.services.role.PermissionDAO">
                <property name="dataSource" ref="servDataSource" />
            </bean>
        </property>
        <property name="roleCacheWrapper">
            <bean class="com.agiletec.aps.system.services.role.cache.RoleCacheWrapper">
                <property name="springCacheManager" ref="springCacheManager" />
            </bean>
        </property>
        <property name="permissionCacheWrapper">
            <bean class="com.agiletec.aps.system.services.role.cache.PermissionCacheWrapper">
                <property name="springCacheManager" ref="springCacheManager" />
            </bean>
        </property>
    </bean>

    <bean id="UserDAO" class="com.agiletec.aps.system.services.user.UserDAO">
        <property name="dataSource" ref="servDataSource" />
        <property name="passwordEncoder" ref="compatiblePasswordEncoder" />
    </bean>

    <bean id="UserManager" class="com.agiletec.aps.system.services.user.UserManager"
          parent="abstractService" >
        <property name="userDAO" ref="UserDAO" />
        <property name="configManager" ref="BaseConfigManager"/>
    </bean>

    <bean id="AuthorizationManager" class="com.agiletec.aps.system.services.authorization.AuthorizationManager"
          parent="abstractService" >
        <property name="groupManager" ref="GroupManager"/>
        <property name="roleManager" ref="RoleManager"/>
        <property name="authorizationDAO" >
            <bean class="com.agiletec.aps.system.services.authorization.AuthorizationDAO">
                <property name="dataSource" ref="servDataSource" />
                <property name="dataSourceClassName"><value>${servDataSourceClassName}</value></property>
            </bean>
        </property>
    </bean>

    <bean id="AuthenticationProviderManager" class="com.agiletec.aps.system.services.user.AuthenticationProviderManager"
          parent="abstractService" >
        <property name="userManager" ref="UserManager" />
        <property name="authorizationManager" ref="AuthorizationManager" />
        <property name="tokenManager" ref="OAuth2TokenManager" />
    </bean>

    <bean id="LangManager" class="com.agiletec.aps.system.services.lang.LangManager"
          parent="abstractService" depends-on="BaseConfigManager" >
        <property name="configManager" ref="BaseConfigManager"/>
        <property name="cacheWrapper">
            <bean class="com.agiletec.aps.system.services.lang.cache.LangManagerCacheWrapper">
                <property name="springCacheManager" ref="springCacheManager" />
            </bean>
        </property>
    </bean>

    <bean id="CategoryManager" class="com.agiletec.aps.system.services.category.CategoryManager"
          parent="abstractService" depends-on="BaseConfigManager" >
        <property name="langManager" ref="LangManager"/>
        <property name="categoryDAO" >
            <bean class="com.agiletec.aps.system.services.category.CategoryDAO">
                <property name="dataSource" ref="portDataSource" />
            </bean>
        </property>
        <property name="cacheWrapper">
            <bean class="com.agiletec.aps.system.services.category.cache.CategoryManagerCacheWrapper">
                <property name="springCacheManager" ref="springCacheManager" />
            </bean>
        </property>
    </bean>

    <bean id="WidgetTypeManager" class="org.entando.entando.aps.system.services.widgettype.WidgetTypeManager"
          parent="abstractService" depends-on="BaseConfigManager" >
        <property name="widgetTypeDAO" >
            <bean class="org.entando.entando.aps.system.services.widgettype.WidgetTypeDAO">
                <property name="dataSource" ref="portDataSource" />
                <property name="langManager" ref="LangManager"/>
            </bean>
        </property>
        <property name="guiFragmentManager" ref="GuiFragmentManager"/>
        <property name="cacheWrapper">
            <bean class="org.entando.entando.aps.system.services.widgettype.cache.WidgetTypeManagerCacheWrapper">
                <property name="springCacheManager" ref="springCacheManager" />
            </bean>
        </property>
    </bean>

    <bean id="ApiWidgetTypeInterface" class="org.entando.entando.aps.system.services.widgettype.api.ApiWidgetTypeInterface" >
        <property name="pageManager" ref="PageManager" />
        <property name="widgetTypeManager" ref="WidgetTypeManager" />
        <property name="guiFragmentManager" ref="GuiFragmentManager" />
        <property name="internalServletWidgetCode">
            <value>${widgets.internalServlet}</value>
        </property>
    </bean>

    <bean id="GuiFragmentManager" class="org.entando.entando.aps.system.services.guifragment.GuiFragmentManager"
          parent="abstractService">
        <property name="guiFragmentDAO">
            <bean class="org.entando.entando.aps.system.services.guifragment.GuiFragmentDAO">
                <property name="dataSource" ref="portDataSource" />
                <property name="dataSourceClassName"><value>${portDataSourceClassName}</value></property>
            </bean>
        </property>
    </bean>

    <bean id="ApiGuiFragmentInterface" class="org.entando.entando.aps.system.services.guifragment.api.ApiGuiFragmentInterface" >
        <property name="guiFragmentManager" ref="GuiFragmentManager" />
    </bean>

    <bean id="PageModelManager" class="com.agiletec.aps.system.services.pagemodel.PageModelManager"
          parent="abstractService" depends-on="BaseConfigManager" >
        <property name="pageModelDAO" >
            <bean class="com.agiletec.aps.system.services.pagemodel.PageModelDAO">
                <property name="dataSource" ref="portDataSource" />
                <property name="widgetTypeManager" ref="WidgetTypeManager" />
                <property name="dataSourceClassName"><value>${portDataSourceClassName}</value></property>
            </bean>
        </property>
        <property name="cacheWrapper">
            <bean class="com.agiletec.aps.system.services.pagemodel.cache.PageModelManagerCacheWrapper">
                <property name="springCacheManager" ref="springCacheManager" />
            </bean>
        </property>
    </bean>

    <bean id="ApiPageModelInterface" class="org.entando.entando.aps.system.services.pagemodel.api.ApiPageModelInterface" >
        <property name="pageModelManager" ref="PageModelManager" />
    </bean>

    <bean id="PageManager" class="com.agiletec.aps.system.services.page.PageManager"
          parent="abstractService" depends-on="PageModelManager,WidgetTypeManager" >
        <property name="pageDAO" >
            <bean class="com.agiletec.aps.system.services.page.PageDAO">
                <property name="dataSource" ref="portDataSource" />
                <property name="widgetTypeManager" ref="WidgetTypeManager" />
                <property name="pageModelManager" ref="PageModelManager" />
            </bean>
        </property>
        <property name="cacheWrapper">
            <bean class="com.agiletec.aps.system.services.page.cache.PageManagerCacheWrapper">
                <property name="springCacheManager" ref="springCacheManager" />
            </bean>
        </property>
    </bean>

    <bean id="NavigatorParser" class="com.agiletec.aps.system.services.page.widget.NavigatorParser">
        <property name="authManager" ref="AuthorizationManager"/>
        <property name="pageManager" ref="PageManager"/>
    </bean>

    <bean id="URLManager" class="com.agiletec.aps.system.services.url.URLManager"
          parent="abstractService" >
        <property name="configManager" ref="BaseConfigManager"/>
        <property name="pageManager" ref="PageManager"/>
        <property name="langManager" ref="LangManager"/>
    </bean>

    <bean id="I18nManager" class="com.agiletec.aps.system.services.i18n.I18nManager"
          parent="abstractService" >
        <property name="cacheWrapper">
            <bean class="com.agiletec.aps.system.services.i18n.cache.I18nManagerCacheWrapper">
                <property name="springCacheManager" ref="springCacheManager" />
            </bean>
        </property>
        <property name="i18nDAO" >
            <bean class="com.agiletec.aps.system.services.i18n.I18nDAO">
                <property name="dataSource" ref="portDataSource" />
            </bean>
        </property>
        <property name="langManager" ref="LangManager" />
    </bean>

    <bean id="ApiI18nLabelInterface" class="org.entando.entando.aps.system.services.i18n.ApiI18nLabelInterface" >
        <property name="i18nManager" ref="I18nManager" />
        <property name="langManager" ref="LangManager"/>
    </bean>

    <bean id="InlineApiI18nLabelInterface" class="org.entando.entando.aps.system.services.i18n.inlinediting.ApiI18nLabelInterface"
          parent="ApiI18nLabelInterface" />

    <bean id="KeyGeneratorManager" class="com.agiletec.aps.system.services.keygenerator.KeyGeneratorManager"
          parent="abstractService" depends-on="springCacheManager" >
        <property name="cacheWrapper">
            <bean class="com.agiletec.aps.system.services.keygenerator.cache.KeyGeneratorManagerCacheWrapper">
                <property name="springCacheManager" ref="springCacheManager" />
            </bean>
        </property>
        <property name="keyGeneratorDAO" >
            <bean class="com.agiletec.aps.system.services.keygenerator.KeyGeneratorDAO">
                <property name="dataSource" ref="portDataSource" />
            </bean>
        </property>
    </bean>

    <bean id="ActionLogManager" class="org.entando.entando.aps.system.services.actionlog.ActionLogManager"
          parent="abstractService" >
        <property name="keyGeneratorManager" ref="KeyGeneratorManager" />
        <property name="actionLogDAO">
            <bean class="org.entando.entando.aps.system.services.actionlog.ActionLogDAO">
                <property name="dataSource" ref="servDataSource" />
                <property name="dataSourceClassName"><value>${servDataSourceClassName}</value></property>
            </bean>
        </property>
        <property name="managerConfiguration" ref="ActionLogManagerConfiguration" />
    </bean>

    <bean id="ActionLogManagerConfiguration" class="org.entando.entando.aps.system.services.actionlog.model.ManagerConfiguration" >
        <property name="cleanOldActivities">
            <value>true</value>
        </property>
        <property name="maxActivitySizeByGroup">
            <value>10</value>
        </property>
    </bean>


    <bean id="SocialActivityStreamManager" class="org.entando.entando.aps.system.services.activitystream.SocialActivityStreamManager" 
          parent="abstractService" >
        <property name="keyGeneratorManager" ref="KeyGeneratorManager" />
        <property name="userProfileManager" ref="UserProfileManager" />
        <property name="actionLogManager" ref="ActionLogManager" />
        <property name="socialActivityStreamDAO">
            <bean class="org.entando.entando.aps.system.services.activitystream.SocialActivityStreamDAO">
                <property name="dataSource" ref="servDataSource" />
            </bean>
        </property>
    </bean>


    <bean id="PageTokenManager" class="org.entando.entando.aps.system.services.page.PageTokenManager" parent="abstractService" >
        <property name="configManager" ref="BaseConfigManager" />
    </bean>

    <bean id="BulkCommandManager" class="org.entando.entando.aps.system.services.command.BulkCommandManager" parent="abstractService" />


    <task:scheduler id="entandoScheduler" pool-size="10"/>

    <task:scheduled-tasks scheduler="entandoScheduler">
        <task:scheduled ref="BulkCommandManager" method="cleanCache" fixed-delay="3600000"  />
    </task:scheduled-tasks>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy