mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user