Subversion Repositories SmartDukaan

Rev

Rev 27892 | Rev 27987 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27892 Rev 27948
Line 373... Line 373...
373
			}
373
			}
374
			if (args.containsOption("deleteGeofences")) {
374
			if (args.containsOption("deleteGeofences")) {
375
				List<String> geofenceIds = args.getOptionValues("geofenceId");
375
				List<String> geofenceIds = args.getOptionValues("geofenceId");
376
				runOnceTasks.deleteGeofences(geofenceIds);
376
				runOnceTasks.deleteGeofences(geofenceIds);
377
			}
377
			}
-
 
378
			if (args.containsOption("createOffers")) {
-
 
379
				if(args.containsOption("offerId")) {
-
 
380
					int offerId = Integer.parseInt(args.getOptionValues("offerId").get(0));
-
 
381
					runOnceTasks.createOffers(offerId);
-
 
382
				}
-
 
383
			}
378
			if(args.containsOption("schemeout")) {
384
			if(args.containsOption("schemeout")) {
379
				if(args.containsOption("invoices")) {
385
				if(args.containsOption("invoices")) {
380
					String invoicesString = args.getOptionValues("invoices").get(0);
386
					String invoicesString = args.getOptionValues("invoices").get(0);
381
					List<String> invoices = Arrays.asList(invoicesString.split(","));
387
					List<String> invoices = Arrays.asList(invoicesString.split(","));
382
					scheduledTasks.processSchemeOut(invoices);
388
					scheduledTasks.processSchemeOut(invoices);