You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by bkhanna <kh...@gmail.com> on 2012/11/28 18:33:19 UTC

Assign resource roles to Users using Continuum XML RPC API

Hi,

I am using Continuum XMLRPC API to add M2 projects in the continuum and
provide access to the users on the newly created Project Group/Project.
Using the API I am able to create the Project Group and add a new Project
from the URL but I couldn't able to find any method to provide users access
on this Group.
I am currently using the methods exposed by ContinuumXmlRpcClient.java (V
1.4.0).
Do I have to use some other interface class to assign the User to different
resource roles?

Thanks
Bharat
-- 
View this message in context: http://old.nabble.com/Assign-resource-roles-to-Users-using-Continuum-XML-RPC-API-tp34733672p34733672.html
Sent from the Continuum - Users mailing list archive at Nabble.com.

Re: Assign resource roles to Users using Continuum XML RPC API

Posted by Brett Porter <br...@apache.org>.
Hi Bharat,

Sorry for the delay in responding. This functionality is only available in Continuum 1.4.1 (trunk, which will be released shortly).

If you are using that version, you can use the library org.codehaus.redback:redback-xmlrpc-client:1.3-M2 to perform security operations. For example:

===
        String url = "http://localhost:8080/continuum/redback-xmlrpc";
        String username = "service";
        String password = "qwerty123";

        RoleServiceClient roleServiceClient = new RoleServiceClient( url, username, password );

        roleServiceClient.assignRoleByName( "Project User - Foo", "bar" );
===

You can find more examples here:
https://github.com/redback/redback/blob/redback-1.3-Mx/redback-xmlrpc/redback-xmlrpc-client/src/main/java/org/codehaus/redback/xmlrpc/client/CommandLineClient.java

Regards,
Brett

On 29/11/2012, at 4:33 AM, bkhanna <kh...@gmail.com> wrote:

> 
> Hi,
> 
> I am using Continuum XMLRPC API to add M2 projects in the continuum and
> provide access to the users on the newly created Project Group/Project.
> Using the API I am able to create the Project Group and add a new Project
> from the URL but I couldn't able to find any method to provide users access
> on this Group.
> I am currently using the methods exposed by ContinuumXmlRpcClient.java (V
> 1.4.0).
> Do I have to use some other interface class to assign the User to different
> resource roles?
> 
> Thanks
> Bharat
> -- 
> View this message in context: http://old.nabble.com/Assign-resource-roles-to-Users-using-Continuum-XML-RPC-API-tp34733672p34733672.html
> Sent from the Continuum - Users mailing list archive at Nabble.com.

--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter
http://twitter.com/brettporter






Re: Assign resource roles to Users using Continuum XML RPC API

Posted by bkhanna <kh...@gmail.com>.
Any suggestions?

Thanks
Bharat Khanna


bkhanna wrote:
> 
> Hi,
> 
> I am using Continuum XMLRPC API to add M2 projects in the continuum and
> provide access to the users on the newly created Project Group/Project.
> Using the API I am able to create the Project Group and add a new Project
> from the URL but I couldn't able to find any method to provide users
> access on this Group.
> I am currently using the methods exposed by ContinuumXmlRpcClient.java (V
> 1.4.0).
> Do I have to use some other interface class to assign the User to
> different resource roles?
> 
> Thanks
> Bharat
> 

-- 
View this message in context: http://old.nabble.com/Assign-resource-roles-to-Users-using-Continuum-XML-RPC-API-tp34733672p34749483.html
Sent from the Continuum - Users mailing list archive at Nabble.com.