mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Taught AVM to be aware of the current user for tracking creator,
modifier, etc. AVM nodes can have ACLs. Not used for anything yet. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3657 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
package org.alfresco.repo.avm;
|
||||
|
||||
import org.alfresco.repo.content.ContentStore;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||
import org.alfresco.service.cmr.repository.ContentService;
|
||||
import org.alfresco.service.cmr.repository.MimetypeService;
|
||||
@@ -119,7 +120,7 @@ public class AVMContext implements ApplicationContextAware
|
||||
*/
|
||||
private NodeService fNodeService;
|
||||
|
||||
private AuthenticationService fAuthenticationService;
|
||||
private AuthenticationComponent fAuthenticationComponent;
|
||||
|
||||
/**
|
||||
* The application context.
|
||||
@@ -297,12 +298,12 @@ public class AVMContext implements ApplicationContextAware
|
||||
return fNodeService;
|
||||
}
|
||||
|
||||
public AuthenticationService getAuthenticationService()
|
||||
public AuthenticationComponent getAuthenticationComponent()
|
||||
{
|
||||
if (fAuthenticationService == null)
|
||||
if (fAuthenticationComponent == null)
|
||||
{
|
||||
fAuthenticationService = (AuthenticationService)fAppContext.getBean("AuthenticationService");
|
||||
fAuthenticationComponent = (AuthenticationComponent)fAppContext.getBean("authenticationComponent");
|
||||
}
|
||||
return fAuthenticationService;
|
||||
return fAuthenticationComponent;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user