Package com.plannaplan.services
Class ConfiguratorService
java.lang.Object
com.plannaplan.services.ConfiguratorService
@Component
public class ConfiguratorService
extends java.lang.Object
FileReader is used for reading xls file from input stream.
-
Constructor Summary
Constructors Constructor Description ConfiguratorService()
-
Method Summary
Modifier and Type Method Description void
config(ConfigData data)
methoid to config system.AppConfig
getCurrentConfig()
current config gettervoid
importCoursesStream(java.io.InputStream inputStream)
void
saveTours(TourData firstTour, TourData secondTour)
Save tours to DataBase and shedule PerformAcceptAlgorythmTask as a side effect
-
Constructor Details
-
ConfiguratorService
public ConfiguratorService()
-
-
Method Details
-
config
methoid to config system. it shedules PerformAcceptAlgorythmTask as a side effect- Parameters:
data
- ConfigData containng system configs
-
saveTours
Save tours to DataBase and shedule PerformAcceptAlgorythmTask as a side effect- Parameters:
firstTour
- First tour period.secondTour
- Second tour period.
-
getCurrentConfig
current config getter- Returns:
- AppConfig with newest config_date
-
importCoursesStream
public void importCoursesStream(java.io.InputStream inputStream)- Parameters:
inputStream
- This input stream contains new courses to import.
-