mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Removed the unused method and the warning
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@61321 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -15,7 +15,6 @@ import org.alfresco.service.cmr.model.FileFolderService;
|
|||||||
import org.alfresco.service.cmr.model.FileInfo;
|
import org.alfresco.service.cmr.model.FileInfo;
|
||||||
import org.alfresco.service.cmr.model.FileNotFoundException;
|
import org.alfresco.service.cmr.model.FileNotFoundException;
|
||||||
import org.alfresco.service.cmr.repository.NodeRef;
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
import org.alfresco.service.cmr.search.CategoryService;
|
|
||||||
import org.apache.commons.lang.ArrayUtils;
|
import org.apache.commons.lang.ArrayUtils;
|
||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
@@ -40,7 +39,7 @@ public class FileToAction extends RMActionExecuterAbstractBase
|
|||||||
|
|
||||||
/** file plan service */
|
/** file plan service */
|
||||||
private FilePlanService filePlanService;
|
private FilePlanService filePlanService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param fileFolderService file folder service
|
* @param fileFolderService file folder service
|
||||||
*/
|
*/
|
||||||
@@ -191,7 +190,7 @@ public class FileToAction extends RMActionExecuterAbstractBase
|
|||||||
{
|
{
|
||||||
return resolvePath(context, pathValues, false);
|
return resolvePath(context, pathValues, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param context
|
* @param context
|
||||||
@@ -214,14 +213,14 @@ public class FileToAction extends RMActionExecuterAbstractBase
|
|||||||
{
|
{
|
||||||
List<String> partialPathValueList = pathValueList.subList(0, i);
|
List<String> partialPathValueList = pathValueList.subList(0, i);
|
||||||
fileInfo = fileFolderService.resolveNamePath(context, partialPathValueList, false);
|
fileInfo = fileFolderService.resolveNamePath(context, partialPathValueList, false);
|
||||||
if(fileInfo == null)
|
if(fileInfo == null)
|
||||||
{
|
{
|
||||||
parent = this.filePlanService.createRecordCategory(parent, partialPathValueList.get(partialPathValueList.size() - 1));
|
parent = this.filePlanService.createRecordCategory(parent, partialPathValueList.get(partialPathValueList.size() - 1));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
parent = fileInfo.getNodeRef();
|
parent = fileInfo.getNodeRef();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
result = parent;
|
result = parent;
|
||||||
}
|
}
|
||||||
@@ -237,17 +236,6 @@ public class FileToAction extends RMActionExecuterAbstractBase
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param context
|
|
||||||
* @param pathValues
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
private NodeRef resolveParent(NodeRef context, String[] pathValues)
|
|
||||||
{
|
|
||||||
return resolveParent(context, pathValues, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param context
|
* @param context
|
||||||
|
Reference in New Issue
Block a user