[RM-799] Can't Move folders. Make the file utility method public. Folder moves need to call the method to update any record children.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54727 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jared Ottley
2013-08-30 19:44:17 +00:00
parent 5a9066e8c5
commit fb7b363eb1
2 changed files with 10 additions and 2 deletions

View File

@@ -95,6 +95,13 @@ public interface RecordService
*/
boolean isFiled(NodeRef record);
/**
* 'File' a new document that arrived in the file plan structure.
*
* @param nodeRef record
*/
void file(NodeRef record);
/**
* Hides a record within a collaboration site
*

View File

@@ -343,7 +343,7 @@ public class RecordServiceImpl implements RecordService,
public Void doWork() throws Exception
{
NodeRef nodeRef = childAssocRef.getChildRef();
if (nodeService.exists(nodeRef) == true)
if (nodeService.exists(nodeRef) == true && !nodeService.getType(nodeRef).equals(TYPE_RECORD_FOLDER) && !nodeService.getType(nodeRef).equals(TYPE_RECORD_CATEGORY))
{
// create and file the content as a record
file(nodeRef);
@@ -694,7 +694,8 @@ public class RecordServiceImpl implements RecordService,
*
* @param record node reference to record (or soon to be record!)
*/
private void file(NodeRef record)
@Override
public void file(NodeRef record)
{
ParameterCheck.mandatory("item", record);