mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
19246: ALF-1940 - case-insensitive AVM path lookups fail on a DB that is (configured by default to be) case-sensitive 19280: AVM - preserve case on child lookup, add unit tests 19316: AVM - fix rename (change in 'case') & add unit tests (ALF-1725 & ALF-1767) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19337 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -21,6 +21,7 @@ package org.alfresco.repo.avm;
|
||||
import org.alfresco.service.cmr.avm.AVMBadArgumentException;
|
||||
import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
|
||||
import org.alfresco.service.cmr.avm.AVMNotFoundException;
|
||||
import org.alfresco.util.Pair;
|
||||
|
||||
/**
|
||||
* Base class for Directories.
|
||||
@@ -82,4 +83,21 @@ public abstract class DirectoryNodeImpl extends AVMNodeImpl implements Directory
|
||||
{
|
||||
return AVMDAOs.Instance().fChildEntryDAO.existsParentChild(this, node);
|
||||
}
|
||||
|
||||
/**
|
||||
* Lookup a child node by name.
|
||||
* @param lPath The lookup path so far.
|
||||
* @param name The name to lookup.
|
||||
* @param includeDeleted Whether to lookup deleted nodes.
|
||||
* @return The child node or null.
|
||||
*/
|
||||
public Pair<AVMNode, Boolean> lookupChild(Lookup lPath, String name, boolean includeDeleted)
|
||||
{
|
||||
Pair<ChildEntry, Boolean> result = lookupChildEntry(lPath, name, includeDeleted);
|
||||
if (result == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return new Pair<AVMNode, Boolean>(result.getFirst().getChild(), result.getSecond());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user