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