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:
Britt Park
2006-09-01 20:56:11 +00:00
parent 8a8511c605
commit 5136c45e34
7 changed files with 64 additions and 28 deletions

View File

@@ -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;
}
}