Uploaded image for project: 'Remote Alfresco API rivet'
  1. Remote Alfresco API rivet
  2. CMA-39

Overload addAuthority to avoid multiple calls

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Completed
    • Affects Version/s: 1.9.0
    • Fix Version/s: 1.10.0
    • Component/s: CMA API, CMA Impl
    • Labels:
      None

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bgummadi bgummadi
                Reporter:
                bgummadi bgummadi
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support