Fix for WebClient config reload/reset - skip invalid config sources

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6868 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2007-09-27 09:47:28 +00:00
parent b4ec9a4992
commit 45ea44b784

View File

@@ -32,6 +32,7 @@ import java.util.concurrent.locks.ReentrantReadWriteLock;
import javax.transaction.UserTransaction;
import org.alfresco.config.ConfigDeployment;
import org.alfresco.config.ConfigImpl;
import org.alfresco.config.ConfigSection;
import org.alfresco.config.ConfigSource;
@@ -138,8 +139,10 @@ public class RepoXMLConfigService extends XMLConfigService implements TenantDepl
super(configSource);
}
public void initConfig()
public List<ConfigDeployment> initConfig()
{
List<ConfigDeployment> configDeployments = null;
// can be null e.g. initial login, after fresh bootstrap
String currentUser = authenticationComponent.getCurrentUserName();
if (currentUser == null)
@@ -154,7 +157,7 @@ public class RepoXMLConfigService extends XMLConfigService implements TenantDepl
userTransaction.begin();
// parse config and initialise caches
super.initConfig();
configDeployments = super.initConfig();
userTransaction.commit();
@@ -172,6 +175,8 @@ public class RepoXMLConfigService extends XMLConfigService implements TenantDepl
authenticationComponent.clearCurrentSecurityContext();
}
}
return configDeployments;
}
public void destroy()