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:
@@ -258,3 +258,4 @@ patch.webSiteAddModerated.result=Changed Web Site visibility.
|
|||||||
|
|
||||||
patch.mtShareExistingTenants.description=Update existing tenants for MT Share.
|
patch.mtShareExistingTenants.description=Update existing tenants for MT Share.
|
||||||
patch.mtShareExistingTenants.result=Update existing tenants for MT Share.
|
patch.mtShareExistingTenants.result=Update existing tenants for MT Share.
|
||||||
|
patch.mtShareExistingTenants.result.not_applicable=Patch applied, although no changes made since MT is not enabled.
|
||||||
|
@@ -38,7 +38,8 @@ import org.alfresco.repo.workflow.WorkflowDeployer;
|
|||||||
*/
|
*/
|
||||||
public class MultiTShareExistingTenantsPatch extends AbstractPatch
|
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 SiteAVMBootstrap siteBootstrap;
|
||||||
private WorkflowDeployer workflowPatchDeployer;
|
private WorkflowDeployer workflowPatchDeployer;
|
||||||
@@ -81,6 +82,11 @@ public class MultiTShareExistingTenantsPatch extends AbstractPatch
|
|||||||
@Override
|
@Override
|
||||||
protected String applyInternal() throws Exception
|
protected String applyInternal() throws Exception
|
||||||
{
|
{
|
||||||
|
if (!tenantService.isEnabled())
|
||||||
|
{
|
||||||
|
return I18NUtil.getMessage(MSG_RESULT_NA);
|
||||||
|
}
|
||||||
|
|
||||||
if (! tenantService.getCurrentUserDomain().equals(TenantService.DEFAULT_DOMAIN))
|
if (! tenantService.getCurrentUserDomain().equals(TenantService.DEFAULT_DOMAIN))
|
||||||
{
|
{
|
||||||
this.siteBootstrap.bootstrap();
|
this.siteBootstrap.bootstrap();
|
||||||
|
Reference in New Issue
Block a user