mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
MT - initial AMP support (AR-2063, ACT-1280)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8262 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -198,26 +198,6 @@ public class TenantInterpreter extends BaseInterpreter
|
||||
return "Syntax Error, try 'help'.\n";
|
||||
}
|
||||
|
||||
String newTenant = new String(command[1]).toLowerCase();
|
||||
String tenantAdminRawPassword = new String(command[2]);
|
||||
|
||||
String createTenantArgs = newTenant + " " + tenantAdminRawPassword;
|
||||
if (command.length == 4)
|
||||
{
|
||||
createTenantArgs = createTenantArgs + " " + new String(command[3]);
|
||||
}
|
||||
|
||||
out.print(executeCommand("createWithoutWorkflows " + createTenantArgs));
|
||||
out.print(executeCommand("bootstrapWorkflows " + newTenant));
|
||||
}
|
||||
|
||||
else if (command[0].equals("createWithoutWorkflows"))
|
||||
{
|
||||
if ((command.length != 3) && (command.length != 4))
|
||||
{
|
||||
return "Syntax Error, try 'help'.\n";
|
||||
}
|
||||
|
||||
String newTenant = new String(command[1]).toLowerCase();
|
||||
char[] tenantAdminRawPassword = new String(command[2]).toCharArray();
|
||||
String rootContentStoreDir = null;
|
||||
@@ -231,20 +211,6 @@ public class TenantInterpreter extends BaseInterpreter
|
||||
out.println("created tenant: " + newTenant);
|
||||
}
|
||||
|
||||
else if (command[0].equals("bootstrapWorkflows"))
|
||||
{
|
||||
if (command.length != 2)
|
||||
{
|
||||
return "Syntax Error, try 'help'.\n";
|
||||
}
|
||||
|
||||
String newTenant = new String(command[1]).toLowerCase();
|
||||
|
||||
tenantAdminService.bootstrapWorkflows(newTenant);
|
||||
|
||||
out.println("bootstrap workflows deployed for tenant: " + newTenant);
|
||||
}
|
||||
|
||||
else if (command[0].equals("import"))
|
||||
{
|
||||
if ((command.length != 3) && (command.length != 4))
|
||||
@@ -264,7 +230,6 @@ public class TenantInterpreter extends BaseInterpreter
|
||||
tenantAdminService.importTenant(newTenant, directorySource, rootContentStoreDir);
|
||||
|
||||
out.println("imported tenant: " + newTenant);
|
||||
out.print(executeCommand("bootstrapWorkflows " + newTenant));
|
||||
}
|
||||
|
||||
else if (command[0].equals("export"))
|
||||
|
Reference in New Issue
Block a user