mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Consolidate/fix bootstrap import (MT & ST) of repo-sourced workflow defs
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8087 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -239,16 +239,8 @@ public class TenantInterpreter extends BaseInterpreter
|
||||
}
|
||||
|
||||
String newTenant = new String(command[1]).toLowerCase();
|
||||
|
||||
String tenantAdminUsername = tenantService.getDomainUser(TenantService.ADMIN_BASENAME, newTenant);
|
||||
AuthenticationUtil.runAs(new RunAsWork<Object>()
|
||||
{
|
||||
public Object doWork() throws Exception
|
||||
{
|
||||
tenantAdminService.bootstrapWorkflows();
|
||||
return null;
|
||||
}
|
||||
}, tenantAdminUsername);
|
||||
|
||||
tenantAdminService.bootstrapWorkflows(newTenant);
|
||||
|
||||
out.println("bootstrap workflows deployed for tenant: " + newTenant);
|
||||
}
|
||||
|
Reference in New Issue
Block a user