mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix for AMP init/bootstrap issue found by RW - see also r6631.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6632 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -138,7 +138,7 @@ public class RepoXMLConfigService extends XMLConfigService implements TenantDepl
|
||||
super(configSource);
|
||||
}
|
||||
|
||||
public void init()
|
||||
public void initConfig()
|
||||
{
|
||||
// can be null e.g. initial login, after fresh bootstrap
|
||||
String currentUser = authenticationComponent.getCurrentUserName();
|
||||
@@ -153,7 +153,8 @@ public class RepoXMLConfigService extends XMLConfigService implements TenantDepl
|
||||
{
|
||||
userTransaction.begin();
|
||||
|
||||
super.init(); // parse config and initialise caches
|
||||
// parse config and initialise caches
|
||||
super.initConfig();
|
||||
|
||||
userTransaction.commit();
|
||||
|
||||
@@ -189,7 +190,7 @@ public class RepoXMLConfigService extends XMLConfigService implements TenantDepl
|
||||
{
|
||||
public Object doWork()
|
||||
{
|
||||
init();
|
||||
initConfig();
|
||||
return null;
|
||||
}
|
||||
}, AuthenticationUtil.getSystemUserName());
|
||||
@@ -223,7 +224,7 @@ public class RepoXMLConfigService extends XMLConfigService implements TenantDepl
|
||||
|
||||
public void onEnableTenant()
|
||||
{
|
||||
init(); // will be called in context of tenant
|
||||
initConfig(); // will be called in context of tenant
|
||||
}
|
||||
|
||||
public void onDisableTenant()
|
||||
|
Reference in New Issue
Block a user