mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
[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
This commit is contained in:
@@ -106,6 +106,11 @@ public class FilePlanRoleServiceImpl implements FilePlanRoleService,
|
|||||||
|
|
||||||
/** Records management role zone */
|
/** Records management role zone */
|
||||||
public static final String RM_ROLE_ZONE_PREFIX = "rmRoleZone";
|
public static final String RM_ROLE_ZONE_PREFIX = "rmRoleZone";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Records Management Config Node
|
||||||
|
*/
|
||||||
|
private static final String CONFIG_NODEID = "rm_config_folder";
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
private static Log logger = LogFactory.getLog(FilePlanRoleServiceImpl.class);
|
private static Log logger = LogFactory.getLog(FilePlanRoleServiceImpl.class);
|
||||||
@@ -229,7 +234,11 @@ public class FilePlanRoleServiceImpl implements FilePlanRoleService,
|
|||||||
public NodeRef doWork()
|
public NodeRef doWork()
|
||||||
{
|
{
|
||||||
//In a multi tenant store we need to initialize the rm config if it has been done yet
|
//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
|
// Create "all" role group for root node
|
||||||
String allRoles = authorityService.createAuthority(
|
String allRoles = authorityService.createAuthority(
|
||||||
|
Reference in New Issue
Block a user