Revision b0ddfd38 src/rm/RequestManager.cc

View differences:

src/rm/RequestManager.cc
231 231
    xmlrpc_c::methodPtr vm_info(new 
232 232
        RequestManager::VirtualMachineInfo(vmpool,upool));
233 233

  
234
    xmlrpc_c::methodPtr vm_chown(new
235
        RequestManager::GenericChown(this,VM));
236

  
234 237
    xmlrpc_c::methodPtr vm_pool_info(new
235 238
        RequestManager::VirtualMachinePoolInfo(vmpool,upool));
236 239

  
......
252 255
    xmlrpc_c::methodPtr template_publish(new
253 256
        RequestManager::TemplatePublish(tpool, upool));
254 257

  
258
    xmlrpc_c::methodPtr template_chown(new
259
        RequestManager::GenericChown(this,TEMPLATE));
260

  
255 261
    xmlrpc_c::methodPtr template_pool_info(new
256 262
        RequestManager::TemplatePoolInfo(tpool,upool));
257 263

  
......
321 327
    xmlrpc_c::methodPtr vn_rmleases(new
322 328
        RequestManager::VirtualNetworkRemoveLeases(vnpool, upool));
323 329

  
330
    xmlrpc_c::methodPtr vn_chown(new
331
        RequestManager::GenericChown(this,NET));
332

  
324 333
    xmlrpc_c::methodPtr user_allocate(new    
325 334
        RequestManager::UserAllocate(upool));
326 335

  
......
333 342
    xmlrpc_c::methodPtr user_change_password(new
334 343
        RequestManager::UserChangePassword(upool));
335 344

  
345
    xmlrpc_c::methodPtr user_chown(new
346
        RequestManager::GenericChown(this,USER));
347

  
336 348
    xmlrpc_c::methodPtr userpool_info(new    
337 349
        RequestManager::UserPoolInfo(upool));
338 350
        
......
359 371
        
360 372
    xmlrpc_c::methodPtr image_enable(new    
361 373
        RequestManager::ImageEnable(ipool, upool));
362
        
374

  
375
    xmlrpc_c::methodPtr image_chown(new
376
        RequestManager::GenericChown(this,IMAGE));
377

  
363 378
    xmlrpc_c::methodPtr imagepool_info(new    
364 379
        RequestManager::ImagePoolInfo(ipool, upool));
365 380

  
......
371 386
    RequestManagerRegistry.addMethod("one.vm.migrate", vm_migrate);
372 387
    RequestManagerRegistry.addMethod("one.vm.info", vm_info);
373 388
    RequestManagerRegistry.addMethod("one.vm.savedisk", vm_savedisk);
389
    RequestManagerRegistry.addMethod("one.vm.chown", vm_chown);
374 390

  
375 391
    RequestManagerRegistry.addMethod("one.vmpool.info", vm_pool_info);
376 392

  
......
382 398
    RequestManagerRegistry.addMethod("one.template.update", template_update);
383 399
    RequestManagerRegistry.addMethod("one.template.rmattr", template_rm_attribute);
384 400
    RequestManagerRegistry.addMethod("one.template.publish", template_publish);
401
    RequestManagerRegistry.addMethod("one.template.chown", template_chown);
385 402

  
386 403
    RequestManagerRegistry.addMethod("one.templatepool.info",template_pool_info);
387 404

  
......
420 437
    RequestManagerRegistry.addMethod("one.vn.delete", vn_delete);
421 438
    RequestManagerRegistry.addMethod("one.vn.addleases", vn_addleases);
422 439
    RequestManagerRegistry.addMethod("one.vn.rmleases", vn_rmleases);
440
    RequestManagerRegistry.addMethod("one.vn.chown", vn_chown);
423 441

  
424 442
    RequestManagerRegistry.addMethod("one.vnpool.info", vnpool_info); 
425 443
    
......
430 448
    RequestManagerRegistry.addMethod("one.user.delete", user_delete);
431 449
    RequestManagerRegistry.addMethod("one.user.info", user_info);
432 450
    RequestManagerRegistry.addMethod("one.user.passwd", user_change_password);
451
    RequestManagerRegistry.addMethod("one.user.chown", user_chown);
433 452

  
434 453
    RequestManagerRegistry.addMethod("one.userpool.info", userpool_info);
435 454
    
......
443 462
    RequestManagerRegistry.addMethod("one.image.publish", image_publish);
444 463
    RequestManagerRegistry.addMethod("one.image.persistent", image_persistent);
445 464
    RequestManagerRegistry.addMethod("one.image.enable", image_enable);    
465
    RequestManagerRegistry.addMethod("one.image.chown", image_chown);
446 466

  
447 467
    RequestManagerRegistry.addMethod("one.imagepool.info", imagepool_info);
448 468
    

Also available in: Unified diff