public KeywordTabHandler(UiGeneratorController ui) { super(ui, true); FrontlineSMS frontlineController = ui.getFrontlineController(); this.keywordDao = frontlineController.getKeywordDao(); this.groupDao = frontlineController.getGroupDao(); this.keywordActionDao = frontlineController.getKeywordActionDao(); }
/** * FormsManager * * @param frontlineController FrontlineSMS * @param pluginController FrontlineSMS * @param appContext FrontlineSMS */ public FormsManager(FrontlineSMS frontlineController, MappingPluginController pluginController) { this.pluginController = pluginController; frontlineController.getEventBus().registerObserver(this); this.contactDao = pluginController.getContactDao(); this.categoryDao = pluginController.getCategoryDao(); this.locationDao = pluginController.getLocationDao(); this.incidentDao = pluginController.getIncidentDao(); this.mappingSetupDao = pluginController.getMappingSetupDao(); FormsPluginController formsPluginController = getPluginController(frontlineController, FormsPluginController.class); this.formDao = formsPluginController.getFormDao(); this.formResponseDao = formsPluginController.getFormResponseDao(); this.formName = MappingMessages.getIncidentReport(); }