From d4f3fa4179ef77e725eb559b2d3e4fb317a96e46 Mon Sep 17 00:00:00 2001 From: Jared Ottley Date: Wed, 4 Sep 2013 21:41:04 +0000 Subject: [PATCH] [RM-900] MT: Impossible to create RM site as tenant. Add additional wrapper test for rm_config_node to stop re-execution of module bootstrap if it has already been run. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54949 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../role/FilePlanRoleServiceImpl.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/role/FilePlanRoleServiceImpl.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/role/FilePlanRoleServiceImpl.java index feffed40a2..6da2ca6aa6 100644 --- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/role/FilePlanRoleServiceImpl.java +++ b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/role/FilePlanRoleServiceImpl.java @@ -106,6 +106,11 @@ public class FilePlanRoleServiceImpl implements FilePlanRoleService, /** Records management role zone */ public static final String RM_ROLE_ZONE_PREFIX = "rmRoleZone"; + + /** + * Records Management Config Node + */ + private static final String CONFIG_NODEID = "rm_config_folder"; /** Logger */ private static Log logger = LogFactory.getLog(FilePlanRoleServiceImpl.class); @@ -229,7 +234,11 @@ public class FilePlanRoleServiceImpl implements FilePlanRoleService, public NodeRef doWork() { //In a multi tenant store we need to initialize the rm config if it has been done yet - bootstrapImporterModule.execute(); + NodeRef nodeRef = new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, CONFIG_NODEID); + if (nodeService.exists(nodeRef) == false) + { + bootstrapImporterModule.execute(); + } // Create "all" role group for root node String allRoles = authorityService.createAuthority(