You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by "Aaron Coburn (JIRA)" <ji...@apache.org> on 2012/09/07 16:38:07 UTC

[jira] [Resolved] (VCL-617) new XML-RPC methods

     [ https://issues.apache.org/jira/browse/VCL-617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron Coburn resolved VCL-617.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.1

Added some additional functions beyond what is listed in the description and changed some of the proposed function names to make them more in line with the existing functions
                
> new XML-RPC methods
> -------------------
>
>                 Key: VCL-617
>                 URL: https://issues.apache.org/jira/browse/VCL-617
>             Project: VCL
>          Issue Type: New Feature
>          Components: web gui (frontend)
>    Affects Versions: 2.3
>            Reporter: Aaron Coburn
>            Assignee: Aaron Coburn
>             Fix For: 2.4, 2.3.1
>
>         Attachments: xmlrpcExtension.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira