mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
MOB-412: Decouple thread local authentication methods from AuthenticationComponent into new AuthenticationContext super-interface. The AuthenticationContext is a delegate of AbstractAuthenticationComponent and can be accessed directly by low-level classes (e.g. schema bootstrap) before the authentication subsystem is available.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13721 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -5,7 +5,7 @@ package org.alfresco.repo.avm.util;
|
||||
|
||||
import org.alfresco.repo.avm.LookupCache;
|
||||
import org.alfresco.repo.content.ContentStore;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationContext;
|
||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||
import org.alfresco.service.cmr.repository.ContentService;
|
||||
import org.alfresco.service.cmr.repository.MimetypeService;
|
||||
@@ -30,9 +30,9 @@ public class RawServices implements ApplicationContextAware
|
||||
private ApplicationContext fContext;
|
||||
|
||||
/**
|
||||
* The AuthenticationComponent.
|
||||
* The AuthenticationContext.
|
||||
*/
|
||||
private AuthenticationComponent fAuthenticationComponent;
|
||||
private AuthenticationContext fAuthenticationContext;
|
||||
|
||||
/**
|
||||
* The Content Service.
|
||||
@@ -82,14 +82,14 @@ public class RawServices implements ApplicationContextAware
|
||||
fContext = applicationContext;
|
||||
}
|
||||
|
||||
public AuthenticationComponent getAuthenticationComponent()
|
||||
public AuthenticationContext getAuthenticationContext()
|
||||
{
|
||||
if (fAuthenticationComponent == null)
|
||||
if (fAuthenticationContext == null)
|
||||
{
|
||||
fAuthenticationComponent =
|
||||
(AuthenticationComponent)fContext.getBean("authenticationComponent");
|
||||
fAuthenticationContext =
|
||||
(AuthenticationContext)fContext.getBean("authenticationContext");
|
||||
}
|
||||
return fAuthenticationComponent;
|
||||
return fAuthenticationContext;
|
||||
}
|
||||
|
||||
public ContentService getContentService()
|
||||
|
Reference in New Issue
Block a user