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:
File diff suppressed because it is too large
Load Diff
@@ -37,7 +37,7 @@ import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.node.NodeServicePolicies;
|
||||
import org.alfresco.repo.policy.JavaBehaviour;
|
||||
import org.alfresco.repo.policy.PolicyComponent;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationContext;
|
||||
import org.alfresco.repo.transaction.AlfrescoTransactionSupport;
|
||||
import org.alfresco.repo.transaction.TransactionListenerAdapter;
|
||||
import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback;
|
||||
@@ -516,8 +516,8 @@ public class NodeMonitor extends TransactionListenerAdapter
|
||||
|
||||
// Use the system user as the authenticated context for the node monitor
|
||||
|
||||
AuthenticationComponent authComponent = m_filesysDriver.getAuthComponent();
|
||||
authComponent.setCurrentUser( authComponent.getSystemUserName());
|
||||
AuthenticationContext authenticationContext = m_filesysDriver.getAuthenticationContext();
|
||||
authenticationContext.setSystemUserAsCurrentUser();
|
||||
|
||||
// Loop until shutdown
|
||||
|
||||
|
Reference in New Issue
Block a user