Ejemplo n.º 1
0
    @Override
    public Void call(ApiCaller ac, Deserializer parms) throws PerunException {
      ac.stateChangingCheck();

      ac.getServicesManager()
          .deleteServicesPackage(
              ac.getSession(), ac.getServicesPackageById(parms.readInt("servicesPackage")));
      return null;
    }
Ejemplo n.º 2
0
 @Override
 public List<Service> call(ApiCaller ac, Deserializer parms) throws PerunException {
   return ac.getServicesManager()
       .getServicesFromServicesPackage(
           ac.getSession(), ac.getServicesPackageById(parms.readInt("servicesPackage")));
 }
Ejemplo n.º 3
0
 @Override
 public ServicesPackage call(ApiCaller ac, Deserializer parms) throws PerunException {
   return ac.getServicesPackageById(parms.readInt("servicesPackageId"));
 }