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