Queries are implemented, and appear to work as expected. Added getKeys() method

to AttributeService.  Fixed NPE in MapAttributeImpl.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5514 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-04-19 19:24:49 +00:00
parent 8eb616f446
commit 65ddab9b8c
14 changed files with 223 additions and 29 deletions

View File

@@ -28,6 +28,7 @@ package org.alfresco.repo.attributes;
import java.util.List;
import org.alfresco.service.cmr.attributes.AttrQuery;
import org.alfresco.util.Pair;
/**
* Interface for persistence operations on attributes.
@@ -49,10 +50,9 @@ public interface AttributeDAO
/**
* Find all attributes that match a given path and AttrQuery.
* @param path The path, starting from the top to the map in which to
* search for matching attributes.
* @param map The map within which to query.
* @param query The AttrQuery.
* @return A List of Attributes.
* @return A List of key, attribute value pairs.
*/
List<Attribute> find(String path, AttrQuery query);
List<Pair<String,Attribute>> find(MapAttribute map, AttrQuery query);
}