Ejemplo n.º 1
0
 /**
  * This method allows an administrator of the application to create a protection group.
  *
  * @param name The name of the protection element.
  * @param description A description of the protection element.
  * @return The protection group that was created.
  * @throws RemoteException
  * @throws CSMInternalFault
  * @throws AccessDeniedFault
  * @throws CSMTransactionFault
  */
 public ProtectionGroup createProtectionGroup(String name, String description)
     throws RemoteException, CSMInternalFault, AccessDeniedFault, CSMTransactionFault {
   org.cagrid.gaards.csm.bean.ProtectionGroup bean =
       new org.cagrid.gaards.csm.bean.ProtectionGroup();
   bean.setApplicationId(getId());
   bean.setDescription(description);
   bean.setName(name);
   org.cagrid.gaards.csm.bean.ProtectionGroup pg =
       getCSM().getClient().createProtectionGroup(bean);
   return new ProtectionGroup(this, pg);
 }