From ede2db0bbf8ddca557659493fa9d9e515111653a Mon Sep 17 00:00:00 2001 From: Tuna Aksoy Date: Mon, 19 May 2014 13:24:42 +0000 Subject: [PATCH] Removed unnecessary hard coded text git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@70988 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../org_alfresco_module_rm/patch/v21/RMv21InPlacePatch.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/patch/v21/RMv21InPlacePatch.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/patch/v21/RMv21InPlacePatch.java index 7b8236e19b..abc6797b12 100644 --- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/patch/v21/RMv21InPlacePatch.java +++ b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/patch/v21/RMv21InPlacePatch.java @@ -52,13 +52,11 @@ public class RMv21InPlacePatch extends RMv21PatchComponent implements BeanNameAware, RecordsManagementModel, DOD5015Model { /** Extended reader and writer role details */ - private static final String ROLE_READERS = "ExtendedReaders"; private static final String ROLE_READERS_LABEL = "In-Place Readers"; private static final String[] ROLE_READERS_CAPABILITIES = new String[] { "ViewRecords" }; - private static final String ROLE_WRITERS = "ExtendedWriters"; private static final String ROLE_WRITERS_LABEL = "In-Place Writers"; private static final String[] ROLE_WRITERS_CAPABILITIES = new String[] { @@ -173,8 +171,8 @@ public class RMv21InPlacePatch extends RMv21PatchComponent moveExistingTransfers(filePlan); // add the inplace roles - filePlanRoleService.createRole(filePlan, ROLE_READERS, ROLE_READERS_LABEL, getCapabilities(ROLE_READERS_CAPABILITIES)); - filePlanRoleService.createRole(filePlan, ROLE_WRITERS, ROLE_WRITERS_LABEL, getCapabilities(ROLE_WRITERS_CAPABILITIES)); + filePlanRoleService.createRole(filePlan, FilePlanRoleService.ROLE_EXTENDED_READERS, ROLE_READERS_LABEL, getCapabilities(ROLE_READERS_CAPABILITIES)); + filePlanRoleService.createRole(filePlan, FilePlanRoleService.ROLE_EXTENDED_WRITERS, ROLE_WRITERS_LABEL, getCapabilities(ROLE_WRITERS_CAPABILITIES)); } finally {