mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Interim checkin. Attributes basically work.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5510 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
<import resource="classpath:alfresco/jcr-api-context.xml" />
|
||||
<import resource="classpath:alfresco/avm-services-context.xml" />
|
||||
<import resource="classpath:alfresco/audit-services-context.xml" />
|
||||
<import resource="classpath:alfresco/attributes-service-context.xml"/>
|
||||
<import resource="classpath*:alfresco/patch/*-context.xml" />
|
||||
<import resource="classpath*:alfresco/domain/*-context.xml" />
|
||||
|
||||
|
36
config/alfresco/attributes-service-context.xml
Normal file
36
config/alfresco/attributes-service-context.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING/DTD BEAN//EN"
|
||||
"http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="attributeService" class="org.alfresco.repo.attributes.AttributeServiceImpl">
|
||||
<property name="attributeConverter">
|
||||
<ref bean="attributeConverter"/>
|
||||
</property>
|
||||
<property name="globalAttributeEntryDao">
|
||||
<ref bean="globalAttributeEntryDAO"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="attributeConverter" class="org.alfresco.repo.attributes.AttributeConverter"/>
|
||||
|
||||
<bean id="attributeDAO" class="org.alfresco.repo.attributes.hibernate.AttributeDAOHibernate">
|
||||
<property name="sessionFactory">
|
||||
<ref bean="sessionFactory"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="globalAttributeEntryDAO" class="org.alfresco.repo.attributes.hibernate.GlobalAttributeEntryDAOHibernate">
|
||||
<property name="sessionFactory">
|
||||
<ref bean="sessionFactory"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="mapEntryDAO" class="org.alfresco.repo.attributes.hibernate.MapEntryDAOHibernate">
|
||||
<property name="sessionFactory">
|
||||
<ref bean="sessionFactory"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
@@ -119,6 +119,12 @@
|
||||
<property name="avmAspectNameDAO">
|
||||
<ref bean="avmAspectNameDAO"/>
|
||||
</property>
|
||||
<property name="attributeDAO">
|
||||
<ref bean="attributeDAO"/>
|
||||
</property>
|
||||
<property name="mapEntryDAO">
|
||||
<ref bean="mapEntryDAO"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="lookupCache" class="org.alfresco.repo.avm.LookupCache">
|
||||
|
@@ -46,6 +46,7 @@
|
||||
<value>org/alfresco/repo/domain/hibernate/AppliedPatch.hbm.xml</value>
|
||||
<value>org/alfresco/repo/domain/hibernate/Permission.hbm.xml</value>
|
||||
<value>org/alfresco/repo/avm/hibernate/AVM.hbm.xml</value>
|
||||
<value>org/alfresco/repo/attributes/hibernate/Attributes.hbm.xml</value>
|
||||
|
||||
<!-- Audit config -->
|
||||
<!-- TODO: Move into org/alfresco/repo/domain/hibernate/ -->
|
||||
|
@@ -890,6 +890,51 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- Attribute Service -->
|
||||
|
||||
<!-- Read transaction advisor for attribute service. -->
|
||||
<bean id="attributeServiceReadTxnAdvisor" class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
|
||||
<property name="advice">
|
||||
<ref bean="retryingReadTxnAdvice"/>
|
||||
</property>
|
||||
<property name="mappedNames">
|
||||
<list>
|
||||
<value>getAttributes</value>
|
||||
<value>query</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- Write transaction advisor for attribute service. -->
|
||||
<bean id="attributeServiceWriteTxnAdvisor" class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
|
||||
<property name="advice">
|
||||
<ref bean="retryingWriteTxnAdvice"/>
|
||||
</property>
|
||||
<property name="mappedNames">
|
||||
<list>
|
||||
<value>setAttribute</value>
|
||||
<value>removeAttribute</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="AttributeService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces">
|
||||
<list>
|
||||
<value>org.alfresco.service.cmr.attributes.AttributeService</value>
|
||||
</list>
|
||||
</property>
|
||||
<property name="targetName">
|
||||
<value>attributeService</value>
|
||||
</property>
|
||||
<property name="interceptorNames">
|
||||
<list>
|
||||
<value>attributeServiceWriteTxnAdvisor</value>
|
||||
<value>attributeServiceReadTxnAdvisor</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- Deployment Service. -->
|
||||
|
||||
<bean id="deploymentService" class="org.alfresco.repo.deploy.DeploymentServiceImpl">
|
||||
|
Reference in New Issue
Block a user