diff --git a/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-model-context.xml b/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-model-context.xml index 0ab48b9cc7..4cb71d28e0 100644 --- a/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-model-context.xml +++ b/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-model-context.xml @@ -144,7 +144,6 @@ - diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspect.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspect.java index 74d5bda602..16c8423228 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspect.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspect.java @@ -101,9 +101,6 @@ public class RecordAspect extends AbstractDisposableItem /** File folder service */ private FileFolderService fileFolderService; - /** Content service */ - private ContentService contentService; - /** I18N */ private static final String MSG_CANNOT_UPDATE_RECORD_CONTENT = "rm.service.update-record-content"; @@ -149,15 +146,6 @@ public class RecordAspect extends AbstractDisposableItem this.fileFolderService = fileFolderService; } - /** - * - * @param contentService content service - */ - public void setContentService(ContentService contentService) - { - this.contentService = contentService; - } - /** * Behaviour to ensure renditions have the appropriate extended security. * @@ -391,7 +379,7 @@ public class RecordAspect extends AbstractDisposableItem ContentReader reader = fileFolderService.getReader(targetNodeRef); if (reader != null) { - ContentWriter writer = contentService.getWriter(targetNodeRef, ContentModel.PROP_CONTENT, true); + ContentWriter writer = fileFolderService.getWriter(targetNodeRef); writer.putContent(reader); } }