mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Fixed tabs during review
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@109608 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -203,7 +203,7 @@ public class ModuleComponentHelper
|
||||
/*
|
||||
* Ensure transactionality and the correct authentication
|
||||
*/
|
||||
AuthenticationUtil.runAs(new RunAsWork<Object>()
|
||||
AuthenticationUtil.runAs(new RunAsWork<Object>()
|
||||
{
|
||||
public Object doWork() throws Exception
|
||||
{
|
||||
@@ -245,81 +245,81 @@ public class ModuleComponentHelper
|
||||
}
|
||||
}
|
||||
|
||||
final List<Tenant> tenants = tenantsNonFinal;
|
||||
final List<Tenant> tenants = tenantsNonFinal;
|
||||
|
||||
for (final ModuleDetails module : modules)
|
||||
{
|
||||
RetryingTransactionCallback<Object> startModuleWork = new RetryingTransactionCallback<Object>()
|
||||
{
|
||||
public Object execute() throws Exception
|
||||
{
|
||||
startModule(module, mapStartedModules.get(tenantDomainCtx), mapExecutedComponents.get(tenantDomainCtx));
|
||||
for (final ModuleDetails module : modules)
|
||||
{
|
||||
RetryingTransactionCallback<Object> startModuleWork = new RetryingTransactionCallback<Object>()
|
||||
{
|
||||
public Object execute() throws Exception
|
||||
{
|
||||
startModule(module, mapStartedModules.get(tenantDomainCtx), mapExecutedComponents.get(tenantDomainCtx));
|
||||
|
||||
if (tenants != null)
|
||||
{
|
||||
for (Tenant tenant : tenants)
|
||||
{
|
||||
final String tenantDomain = tenant.getTenantDomain();
|
||||
TenantUtil.runAsSystemTenant(new TenantRunAsWork<Object>()
|
||||
{
|
||||
public Object doWork() throws Exception
|
||||
{
|
||||
startModule(module, mapStartedModules.get(tenantDomain), mapExecutedComponents.get(tenantDomain));
|
||||
return null;
|
||||
}
|
||||
}, tenantDomain);
|
||||
}
|
||||
}
|
||||
if (tenants != null)
|
||||
{
|
||||
for (Tenant tenant : tenants)
|
||||
{
|
||||
final String tenantDomain = tenant.getTenantDomain();
|
||||
TenantUtil.runAsSystemTenant(new TenantRunAsWork<Object>()
|
||||
{
|
||||
public Object doWork() throws Exception
|
||||
{
|
||||
startModule(module, mapStartedModules.get(tenantDomain), mapExecutedComponents.get(tenantDomain));
|
||||
return null;
|
||||
}
|
||||
}, tenantDomain);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
};
|
||||
return null;
|
||||
}
|
||||
};
|
||||
transactionService.getRetryingTransactionHelper().doInTransaction(startModuleWork, transactionService.isReadOnly());
|
||||
}
|
||||
}
|
||||
|
||||
// Check for missing modules.
|
||||
checkForMissingModules();
|
||||
// Check for missing modules.
|
||||
checkForMissingModules();
|
||||
|
||||
if (tenants != null)
|
||||
{
|
||||
for (Tenant tenant : tenants)
|
||||
{
|
||||
TenantUtil.runAsSystemTenant(new TenantRunAsWork<Object>()
|
||||
{
|
||||
public Object doWork() throws Exception
|
||||
{
|
||||
checkForMissingModules();
|
||||
return null;
|
||||
}
|
||||
}, tenant.getTenantDomain());
|
||||
}
|
||||
}
|
||||
if (tenants != null)
|
||||
{
|
||||
for (Tenant tenant : tenants)
|
||||
{
|
||||
TenantUtil.runAsSystemTenant(new TenantRunAsWork<Object>()
|
||||
{
|
||||
public Object doWork() throws Exception
|
||||
{
|
||||
checkForMissingModules();
|
||||
return null;
|
||||
}
|
||||
}, tenant.getTenantDomain());
|
||||
}
|
||||
}
|
||||
|
||||
// Check that all components where executed, or considered for execution
|
||||
checkForOrphanComponents(mapExecutedComponents.get(tenantDomainCtx));
|
||||
// Check that all components where executed, or considered for execution
|
||||
checkForOrphanComponents(mapExecutedComponents.get(tenantDomainCtx));
|
||||
|
||||
if (tenants != null)
|
||||
{
|
||||
for (Tenant tenant : tenants)
|
||||
{
|
||||
final String tenantDomain = tenant.getTenantDomain();
|
||||
TenantUtil.runAsSystemTenant(new TenantRunAsWork<Object>()
|
||||
{
|
||||
public Object doWork() throws Exception
|
||||
{
|
||||
checkForOrphanComponents(mapExecutedComponents.get(tenantDomain));
|
||||
return null;
|
||||
}
|
||||
}, tenantDomain);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
throw new AlfrescoRuntimeException("Failed to start modules", e);
|
||||
}
|
||||
if (tenants != null)
|
||||
{
|
||||
for (Tenant tenant : tenants)
|
||||
{
|
||||
final String tenantDomain = tenant.getTenantDomain();
|
||||
TenantUtil.runAsSystemTenant(new TenantRunAsWork<Object>()
|
||||
{
|
||||
public Object doWork() throws Exception
|
||||
{
|
||||
checkForOrphanComponents(mapExecutedComponents.get(tenantDomain));
|
||||
return null;
|
||||
}
|
||||
}, tenantDomain);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
throw new AlfrescoRuntimeException("Failed to start modules", e);
|
||||
}
|
||||
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
}, AuthenticationUtil.getSystemUserName());
|
||||
}
|
||||
|
Reference in New Issue
Block a user