mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Performance tweaks for AVM Indexing.
Removed calls to getXXXPaths(). Changed mappings of properties and aspects on AVM Nodes to favor get all calls. Added getAspects() and getNodeProperties() which take AVMNodeDescriptors. Used these in AVM Indexing to reduce the number of redundant full lookups. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6121 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1068,6 +1068,18 @@ public class AVMServiceImpl implements AVMService
|
||||
return fAVMRepository.getNodeProperties(version, path);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.service.cmr.avm.AVMService#getNodeProperties(org.alfresco.service.cmr.avm.AVMNodeDescriptor)
|
||||
*/
|
||||
public Map<QName, PropertyValue> getNodeProperties(AVMNodeDescriptor desc)
|
||||
{
|
||||
if (desc == null)
|
||||
{
|
||||
throw new AVMBadArgumentException("Null descriptor.");
|
||||
}
|
||||
return fAVMRepository.getNodeProperties(desc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a property.
|
||||
* @param path The path to the node.
|
||||
@@ -1215,6 +1227,18 @@ public class AVMServiceImpl implements AVMService
|
||||
return fAVMRepository.getContentDataForRead(version, path);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.service.cmr.avm.AVMService#getContentDataForRead(org.alfresco.service.cmr.avm.AVMNodeDescriptor)
|
||||
*/
|
||||
public ContentData getContentDataForRead(AVMNodeDescriptor desc)
|
||||
{
|
||||
if (desc == null)
|
||||
{
|
||||
throw new AVMBadArgumentException("Null descriptor.");
|
||||
}
|
||||
return fAVMRepository.getContentDataForRead(desc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Content data for writing.
|
||||
* @param path The path to the node.
|
||||
@@ -1295,6 +1319,18 @@ public class AVMServiceImpl implements AVMService
|
||||
return fAVMRepository.getAspects(version, path);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.service.cmr.avm.AVMService#getAspects(org.alfresco.service.cmr.avm.AVMNodeDescriptor)
|
||||
*/
|
||||
public Set<QName> getAspects(AVMNodeDescriptor desc)
|
||||
{
|
||||
if (desc == null)
|
||||
{
|
||||
throw new AVMBadArgumentException("Null descriptor: " + desc);
|
||||
}
|
||||
return fAVMRepository.getAspects(desc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove an aspect and its properties from a node.
|
||||
* @param path The path to the node.
|
||||
|
Reference in New Issue
Block a user