Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-617

new XML-RPC methods

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.3.1, 2.4
    • web gui (frontend)
    • None

    Description

      I have written some code to expand the methods available to the XML-RPC interface. I have a particular interest in having the following methods available –

      methods for modifying the privilege tree:

      XMLRPCgetNodeTree(int rootNode=0)
      XMLRPCaddNode(string nodeName, int parentID)
      XMLRPCremoveNode(int nodeID)
      XMLRPCnodeExists(string nodeName, int parentID)
      XMLRPCaddResourceGroupPriv(string groupName, string resourceType, int nodeID, string permissions)
      XMLRPCgetResourceGroupPriv(string groupName, string resourceType, int nodeID)
      XMLRPCremoveResourceGroupPriv(string groupName, string resourceType, int nodeID, string permissions)
      XMLRPCaddUserGroupPriv(string groupName, string affiliation, int nodeID, string permissions)
      XMLRPCgetResourceGroupPriv(string groupName, string affiliation, int nodeID)
      XMLRPCremoveUserGroupPriv(string groupName, string affiliation, int nodeID, string permissions)

      methods for adding user and resource groups:

      XMLRPCaddResourceGroup(string name, string managingGroup, string resourceType)
      XMLRPCgetResourceGroups(string resourceType)
      XMLRPCremoveResourceGroup(string name, string resourceType)
      XMLRPCgetUserGroups(int groupType=0, int affiliationid=0)

      methods for modifying image mappings:

      XMLRPCaddImageToGroup(string groupName, int imageID)
      XMLRPCremoveImageFromGroup(string groupName, int imageID)
      XMLRPCgetGroupImages(string groupName)

      The return values follow the structure of the existing interface, with the XMLRPCadd* and XMLRPCremove* functions returning a simple array('status' => 'success') on success. The get* functions return an additional array of data.

      Before I submit the code, I thought it might be worthwhile to discuss the function interface – some of you may have opinions about how the methods are called, especially since this nearly doubles the number of existing API functions.

      Attachments

        1. xmlrpcExtension.patch
          61 kB
          Aaron Coburn

        Activity

          People

            acoburn Aaron Coburn
            acoburn Aaron Coburn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: