mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
[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:
@@ -95,6 +95,13 @@ public interface RecordService
|
|||||||
*/
|
*/
|
||||||
boolean isFiled(NodeRef record);
|
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
|
* Hides a record within a collaboration site
|
||||||
*
|
*
|
||||||
|
@@ -343,7 +343,7 @@ public class RecordServiceImpl implements RecordService,
|
|||||||
public Void doWork() throws Exception
|
public Void doWork() throws Exception
|
||||||
{
|
{
|
||||||
NodeRef nodeRef = childAssocRef.getChildRef();
|
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
|
// create and file the content as a record
|
||||||
file(nodeRef);
|
file(nodeRef);
|
||||||
@@ -694,7 +694,8 @@ public class RecordServiceImpl implements RecordService,
|
|||||||
*
|
*
|
||||||
* @param record node reference to record (or soon to be record!)
|
* @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);
|
ParameterCheck.mandatory("item", record);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user