Fix authentication context samples to use authenticationComponentBase

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8215 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2008-02-07 11:00:05 +00:00
parent 998dbc59f0
commit 04930c909f
4 changed files with 23 additions and 10 deletions

View File

@@ -147,8 +147,17 @@
</props>
</property>
</bean>
<bean id="authenticationComponent" class="org.alfresco.repo.security.authentication.AuthenticationComponentImpl">
<!-- Parent bean for beans derived from AbstractAuthenticationComponent -->
<bean id="authenticationComponentBase" abstract="true">
<property name="tenantService">
<ref bean="tenantService"/>
</property>
</bean>
<bean id="authenticationComponent"
class="org.alfresco.repo.security.authentication.AuthenticationComponentImpl"
parent="authenticationComponentBase">
<property name="authenticationDao">
<ref bean="authenticationDao" />
</property>
@@ -157,9 +166,6 @@
</property>
<property name="allowGuestLogin">
<value>true</value>
</property>
<property name="tenantService">
<ref bean="tenantService"/>
</property>
</bean>
@@ -169,7 +175,9 @@
<!-- It should never go to the login screen so this is not required -->
<!--
<bean id="authenticationComponent" class="org.alfresco.repo.security.authentication.SimpleAcceptOrRejectAllAuthenticationComponentImpl">
<bean id="authenticationComponent"
class="org.alfresco.repo.security.authentication.SimpleAcceptOrRejectAllAuthenticationComponentImpl"
parent="authenticationComponentBase">
<property name="accept">
<value>true</value>
</property>