mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user