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:
@@ -191,6 +191,24 @@ public abstract class AbstractAVMNodeLinksDAOImpl implements AVMNodeLinksDAO
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public void updateChildEntry(AVMChildEntryEntity childEntryEntity)
|
||||
{
|
||||
ParameterCheck.mandatory("childEntryEntity", childEntryEntity);
|
||||
ParameterCheck.mandatory("childEntryEntity.getParentNodeId()", childEntryEntity.getParentNodeId());
|
||||
ParameterCheck.mandatory("childEntryEntity.getChildId()", childEntryEntity.getChildId());
|
||||
ParameterCheck.mandatory("childEntryEntity.getName()", childEntryEntity.getName());
|
||||
|
||||
ChildKey key = new ChildKey(childEntryEntity.getParentNodeId(), childEntryEntity.getName());
|
||||
int updated = avmChildEntryCache.updateValue(key, childEntryEntity);
|
||||
if (updated < 1)
|
||||
{
|
||||
throw new ConcurrencyFailureException("AVMChildEntry for parent/name (" + key.getParentNodeId() + ", " + key.getName() + ") no longer exists");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@@ -344,7 +362,7 @@ public abstract class AbstractAVMNodeLinksDAOImpl implements AVMNodeLinksDAO
|
||||
|
||||
public int updateValue(ChildKey key, AVMChildEntryEntity value)
|
||||
{
|
||||
throw new UnsupportedOperationException("updateValue(Long, AVMChildEntryEntity");
|
||||
return updateChildEntryEntity(value);
|
||||
}
|
||||
|
||||
public int deleteByKey(ChildKey key)
|
||||
@@ -367,6 +385,9 @@ public abstract class AbstractAVMNodeLinksDAOImpl implements AVMNodeLinksDAO
|
||||
protected abstract AVMChildEntryEntity getChildEntryEntity(AVMChildEntryEntity childEntryEntity);
|
||||
|
||||
protected abstract void createChildEntryEntity(AVMChildEntryEntity childEntryEntity);
|
||||
|
||||
protected abstract int updateChildEntryEntity(AVMChildEntryEntity childEntryEntity); // specific rename 'case' only
|
||||
|
||||
protected abstract int deleteChildEntryEntity(long parentNodeId, String name);
|
||||
protected abstract int deleteChildEntryEntity(long parentNodeId, long childNodeId);
|
||||
protected abstract int deleteChildEntryEntities(long parentNodeId);
|
||||
|
Reference in New Issue
Block a user