mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
use fileFolderService instead of contentService
This commit is contained in:
@@ -144,7 +144,6 @@
|
||||
<property name="dispositionService" ref="DispositionService" />
|
||||
<property name="quickShareService" ref="QuickShareService"/>
|
||||
<property name="fileFolderService" ref="FileFolderService"/>
|
||||
<property name="contentService" ref="ContentService"/>
|
||||
</bean>
|
||||
|
||||
<bean id="rma.recordComponentIdentifier" class="org.alfresco.module.org_alfresco_module_rm.model.rma.aspect.RecordComponentIdentifierAspect" parent="rm.baseBehaviour">
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user