Added exists and getCount to AttributeService.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5709 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-05-17 13:55:33 +00:00
parent 7d2159686f
commit ee7e8cb4d0
7 changed files with 198 additions and 0 deletions

View File

@@ -236,4 +236,32 @@ public interface AttributeService
* @return A list of all keys at the specified Attribute location
*/
public List<String> getKeys(List<String> keys);
/**
* Get the size of a map or list.
* @param keys List of attribute path keys.
* @return The size of of the list or map.
*/
public int getCount(List<String> keys);
/**
* Get the size of a map or list.
* @param path The path to the map or list.
* @return The size of the list or map.
*/
public int getCount(String path);
/**
* Does an attribute exist.
* @param keys List of attribute path keys.
* @return Whether the attribute exists.
*/
public boolean exists(List<String> keys);
/**
* Does an attribute exist.
* @param path The path to the attribute.
* @return Whether the attribute exists.
*/
public boolean exists(String path);
}