mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Another pair of convenience methods for AttributeService:
removeEntries, which removes map entries by query. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5806 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -191,6 +191,20 @@ public interface AttributeService
|
||||
*/
|
||||
public void removeAttribute(List<String> keys, int index);
|
||||
|
||||
/**
|
||||
* Remove entries from the designated map which match the given query.
|
||||
* @param keys The list of attribute path entries.
|
||||
* @param query The attribute query.
|
||||
*/
|
||||
public void removeEntries(List<String> keys, AttrQuery query);
|
||||
|
||||
/**
|
||||
* Remove entries from the designated map which match the given query.
|
||||
* @param path The path to the map.
|
||||
* @param query The attribute query.
|
||||
*/
|
||||
public void removeEntries(String path, AttrQuery query);
|
||||
|
||||
/**
|
||||
* Query for the list of attributes that is contained in the map
|
||||
* defined by the given path and meet the query criteria.
|
||||
|
@@ -231,4 +231,20 @@ public interface AttributeServiceTransport
|
||||
* @param entries
|
||||
*/
|
||||
public void setAttributes(String ticket, String path, Map<String, Attribute> entries);
|
||||
|
||||
/**
|
||||
* Remove entries from a map that match a query.
|
||||
* @param ticket
|
||||
* @param keys
|
||||
* @param query
|
||||
*/
|
||||
public void removeEntries(String ticket, List<String> keys, AttrQuery query);
|
||||
|
||||
/**
|
||||
* Remove entries from a map that match a query.
|
||||
* @param ticket
|
||||
* @param path
|
||||
* @param query
|
||||
*/
|
||||
public void removeEntries(String ticket, String path, AttrQuery query);
|
||||
}
|
||||
|
Reference in New Issue
Block a user