@Bean public AuthController authManager() { AuthController authManager = new AuthController(); authManager.setAuthRequired(auth_Required); authManager.setUserName(basic_UserName); authManager.setPassword(basic_password); return authManager; }
public static void ferilizeWitPayment() throws NotEnoughMoneyException { Farmer farmer = AuthController.getFarmer(); ServiceInjector.moneyTransactionService.commitMoneyTransaction(farmer, -100); List<FertilizationItem> result = ServiceInjector.recommenderService.fertilize(farmer); toJson(result); }
public static void ferilize() { Farmer farmer = AuthController.getFarmer(); List<FertilizationItem> result = ServiceInjector.recommenderService.fertilize(farmer); toJson(result); }