MERGE DEV TO HEAD

55401 - ALF-19922 MT: Custom model (exampleModel.xml) is not applied for tenant

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55450 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2013-09-18 12:23:58 +00:00
parent 70cdf799a8
commit 3a4ece465a

View File

@@ -117,7 +117,7 @@ public class RepoXMLConfigService extends XMLConfigService implements TenantDepl
return null; return null;
} }
}; };
RunAsWork<Void> getConfigRunAs = new RunAsWork<Void>() TenantUtil.TenantRunAsWork<Void> getConfigRunAs = new TenantUtil.TenantRunAsWork<Void>()
{ {
@Override @Override
public Void doWork() throws Exception public Void doWork() throws Exception
@@ -138,8 +138,8 @@ public class RepoXMLConfigService extends XMLConfigService implements TenantDepl
// Put some mutable config onto the current thread and have the superclasses mess with that. // Put some mutable config onto the current thread and have the superclasses mess with that.
ConfigData configData = new ConfigData(); ConfigData configData = new ConfigData();
configUnderConstruction.set(configData); configUnderConstruction.set(configData);
// Do the work // Do the work as system tenant, see ALF-19922
AuthenticationUtil.runAsSystem(getConfigRunAs); TenantUtil.runAsSystemTenant(getConfigRunAs, tenantDomain);
// Now wrap the config so that it cannot be changed // Now wrap the config so that it cannot be changed
configData = new ImmutableConfigData(configData); configData = new ImmutableConfigData(configData);
// Done // Done