mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Adds some convenience methods to AttributeService.
Namely two flavors each of addAttributes, for adding attributes to lists, and setAttributes for adding entries to maps. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5804 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
package org.alfresco.repo.remote;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.repo.attributes.Attribute;
|
||||
import org.alfresco.service.cmr.attributes.AttrQuery;
|
||||
@@ -217,4 +218,36 @@ public class AttributeServiceRemote implements AttributeService
|
||||
{
|
||||
return fTransport.getCount(fTicketHolder.getTicket(), path);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.service.cmr.attributes.AttributeService#addAttributes(java.util.List, java.util.List)
|
||||
*/
|
||||
public void addAttributes(List<String> keys, List<Attribute> values)
|
||||
{
|
||||
fTransport.addAttributes(fTicketHolder.getTicket(), keys, values);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.service.cmr.attributes.AttributeService#addAttributes(java.lang.String, java.util.List)
|
||||
*/
|
||||
public void addAttributes(String path, List<Attribute> values)
|
||||
{
|
||||
fTransport.addAttributes(fTicketHolder.getTicket(), path, values);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.service.cmr.attributes.AttributeService#setAttributes(java.util.List, java.util.Map)
|
||||
*/
|
||||
public void setAttributes(List<String> keys, Map<String, Attribute> entries)
|
||||
{
|
||||
fTransport.setAttributes(fTicketHolder.getTicket(), keys, entries);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.service.cmr.attributes.AttributeService#setAttributes(java.lang.String, java.util.Map)
|
||||
*/
|
||||
public void setAttributes(String path, Map<String, Attribute> entries)
|
||||
{
|
||||
fTransport.setAttributes(fTicketHolder.getTicket(), path, entries);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user