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:
@@ -116,10 +116,10 @@ public abstract class AVMNodeImpl implements AVMNode, Serializable
|
||||
fIsRoot = false;
|
||||
long time = System.currentTimeMillis();
|
||||
String user =
|
||||
RawServices.Instance().getAuthenticationComponent().getCurrentUserName();
|
||||
RawServices.Instance().getAuthenticationContext().getCurrentUserName();
|
||||
if (user == null)
|
||||
{
|
||||
user = RawServices.Instance().getAuthenticationComponent().getSystemUserName();
|
||||
user = RawServices.Instance().getAuthenticationContext().getSystemUserName();
|
||||
}
|
||||
fBasicAttributes = new BasicAttributesImpl(user,
|
||||
user,
|
||||
@@ -332,10 +332,10 @@ public abstract class AVMNodeImpl implements AVMNode, Serializable
|
||||
checkReadOnly();
|
||||
}
|
||||
String user =
|
||||
RawServices.Instance().getAuthenticationComponent().getCurrentUserName();
|
||||
RawServices.Instance().getAuthenticationContext().getCurrentUserName();
|
||||
if (user == null)
|
||||
{
|
||||
user = RawServices.Instance().getAuthenticationComponent().getSystemUserName();
|
||||
user = RawServices.Instance().getAuthenticationContext().getSystemUserName();
|
||||
}
|
||||
fBasicAttributes.setModDate(System.currentTimeMillis());
|
||||
fBasicAttributes.setLastModifier(user);
|
||||
|
Reference in New Issue
Block a user