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