[CMA-39] Overload addAuthority to avoid multiple calls Created: 03/Feb/09 Updated: 21/May/10 Resolved: 08/Feb/09 |
|
| Status: | Closed |
| Project: | Remote Alfresco API rivet |
| Component/s: | CMA API, CMA Impl |
| Affects Version/s: | 1.9.0 |
| Fix Version/s: | 1.10.0 |
| Type: | Improvement | Priority: | Major |
| Reporter: | bgummadi | Assignee: | bgummadi |
| Resolution: | Completed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
With current implementation it takes 3 remote calls to add a user to a group. Can we overload addAuthority so this can be done in a single call. Current implementation is as follows. addAuthority(String, NodeRef, NodeRef) NodeRef userNodeRef=peopleService.getPerson(this.getAdminTicket(),username); NodeRef groupNodeRef=peopleService.getGroup(this.getAdminTicket(),alfrescoGroupName.toString()); peopleService.addAuthority(this.getAdminTicket(),groupNodeRef,userNodeRef); Ideal solution Solution 1 peopleService.addAuthority(String, String, String); Parameters: ticket, groupname, username Solution 2 peopleService.addAuthority(String, String, List<String>); Parameters: ticket, groupname, list of usernames |
| Comments |
| Comment by hlim [ 08/Feb/09 ] |
| two methods are now available in RAAr 1.10.0 |