title: How set rights to a group with xml-rpc in eclipse
body: <p>i try to create a new group, but i cant set permissions </p>
  
  <p>my code is </p>
  
  <pre><code>    private static void createNewGroup() throws MalformedURLException, XmlRpcException { 
  
      XWikiXmlRpcClient rpc = new XWikiXmlRpcClient("http://localhost:8080/xwiki/xmlrpc/confluence"); 
      try { 
  
          rpc.login("Admin", "admin"); 
  
          // this create the group but without permissions 
          Page page = new Page();
          page.setSpace("XWiki");
          page.setParentId("XWiki.XWikiGroups");
          page.setTitle("XWikiUsersGroups");
          page.setId("XWiki.XWikiUsersGroup");
          page.setContent("{{include document=\"XWiki.XWikiGroupSheet\"/}}");
          rpc.storePage(page);
  
          //no puedo setearle permisos
          XWikiObject xobjgrp = new XWikiObject();
          xobjgrp.setClassName("XWiki.XWikiGroups");
          xobjgrp.setPageId("XWiki.XWikiUsersGroup");
          xobjgrp.setId(-1);
          xobjgrp.setProperty("levels", "View"); // this not work
          xobjgrp.setProperty("allow", true); //not work, too
          rpc.storeObject(xobjgrp);
  
      } catch (XmlRpcException e) { 
          System.out.println("invalid username/password was specified or communication problem or "); 
          System.out.println(e); 
      } finally { 
          rpc.logout(); 
      } 
      } 
  </code></pre>
  
  <p>I try to do it the same way that a user is created but I can not assign permissions.</p>
  
  <p><a href="http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples#HUser:CreateANewUser" rel="nofollow">http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples#HUser:CreateANewUser</a></p>
  
  <p>Help!!</p>