mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
MT Share - minor fix to upgrade patch for existing tenants (result message)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13783 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -38,7 +38,8 @@ import org.alfresco.repo.workflow.WorkflowDeployer;
|
||||
*/
|
||||
public class MultiTShareExistingTenantsPatch extends AbstractPatch
|
||||
{
|
||||
private static final String MSG_RESULT = "patch.mtShareExitingTenants.result";
|
||||
private static final String MSG_RESULT = "patch.mtShareExistingTenants.result";
|
||||
private static final String MSG_RESULT_NA = "patch.mtShareExistingTenants.result.not_applicable";
|
||||
|
||||
private SiteAVMBootstrap siteBootstrap;
|
||||
private WorkflowDeployer workflowPatchDeployer;
|
||||
@@ -81,6 +82,11 @@ public class MultiTShareExistingTenantsPatch extends AbstractPatch
|
||||
@Override
|
||||
protected String applyInternal() throws Exception
|
||||
{
|
||||
if (!tenantService.isEnabled())
|
||||
{
|
||||
return I18NUtil.getMessage(MSG_RESULT_NA);
|
||||
}
|
||||
|
||||
if (! tenantService.getCurrentUserDomain().equals(TenantService.DEFAULT_DOMAIN))
|
||||
{
|
||||
this.siteBootstrap.bootstrap();
|
||||
|
Reference in New Issue
Block a user