citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/country/pagemode/WorldIndicatorsPageModContentFactoryImpl.java
private void createDataIndicatorSummaryChartPanel(final VerticalLayout verticalLayout,final String indicator) {

		final DataContainer<ViewWorldbankIndicatorDataCountrySummary, WorldbankIndicatorDataCountrySummaryEmbeddedId> indicatorDataCountrSummaryDailyDataContainer = getApplicationManager()
				.getDataContainer(ViewWorldbankIndicatorDataCountrySummary.class);


		final Optional<ViewWorldbankIndicatorDataCountrySummary> indicatorSummary = indicatorDataCountrSummaryDailyDataContainer
				.getAll()
				.parallelStream()
				.filter(t -> t != null && t.getEmbeddedId().getIndicatorId().equals(indicator)).findFirst();


		ViewWorldbankIndicatorDataCountrySummary indicatorSummaryValue = null;
		if (indicatorSummary.isPresent()) {
			indicatorSummaryValue = indicatorSummary.get();

			getFormFactory().addFormPanelTextFields(verticalLayout,
					indicatorSummaryValue,
							ViewWorldbankIndicatorDataCountrySummary.class,
							AS_LIST);
		}

		final DataContainer<WorldBankData, Serializable> dataContainer = getApplicationManager()
		.getDataContainer(WorldBankData.class);


		final List<WorldBankData> dataList = dataContainer.findListByEmbeddedProperty(WorldBankData.class, WorldBankData_.indicator, Indicator.class, Indicator_.id, indicator);

		chartDataManager.createIndicatorChart(verticalLayout,dataList,indicatorSummaryValue);

	}
private void createDataIndicatorSummaryChartPanel(final VerticalLayout verticalLayout,final String indicator) {

		final DataContainer<ViewWorldbankIndicatorDataCountrySummary, WorldbankIndicatorDataCountrySummaryEmbeddedId> indicatorDataCountrSummaryDailyDataContainer = getApplicationManager()
				.getDataContainer(ViewWorldbankIndicatorDataCountrySummary.class);


		final Optional<ViewWorldbankIndicatorDataCountrySummary> indicatorSummary = indicatorDataCountrSummaryDailyDataContainer
				.getAll()
				.parallelStream()
				.filter(t -> t != null && t.getEmbeddedId().getIndicatorId().equals(indicator)).findFirst();


		ViewWorldbankIndicatorDataCountrySummary indicatorSummaryValue = null;
		if (indicatorSummary.isPresent()) {
			indicatorSummaryValue = indicatorSummary.get();

			getFormFactory().addFormPanelTextFields(verticalLayout,
					indicatorSummaryValue,
							ViewWorldbankIndicatorDataCountrySummary.class,
							AS_LIST);
		}

		final DataContainer<WorldBankData, Serializable> dataContainer = getApplicationManager()
		.getDataContainer(WorldBankData.class);


		final List<WorldBankData> dataList = dataContainer.findListByEmbeddedProperty(WorldBankData.class, WorldBankData_.indicator, Indicator.class, Indicator_.id, indicator);

		chartDataManager.createIndicatorChart(verticalLayout,dataList,indicatorSummaryValue);

	}
private void createDataIndicatorSummaryChartPanel ( final VerticalLayout verticalLayout , final String indicator ) { final DataContainer < ViewWorldbankIndicatorDataCountrySummary , WorldbankIndicatorDataCountrySummaryEmbeddedId > indicatorDataCountrSummaryDailyDataContainer = getApplicationManager ( ) . getDataContainer ( ViewWorldbankIndicatorDataCountrySummary . class ) ; final Optional < ViewWorldbankIndicatorDataCountrySummary > indicatorSummary = indicatorDataCountrSummaryDailyDataContainer . getAll ( ) . parallelStream ( ) . filter ( t -> t != null && t . getEmbeddedId ( ) . getIndicatorId ( ) . equals ( indicator ) ) . findFirst ( ) ; ViewWorldbankIndicatorDataCountrySummary indicatorSummaryValue = null ; if ( indicatorSummary . isPresent ( ) ) { indicatorSummaryValue = indicatorSummary . get ( ) ; getFormFactory ( ) . addFormPanelTextFields ( verticalLayout , indicatorSummaryValue , ViewWorldbankIndicatorDataCountrySummary . class , AS_LIST ) ; } final DataContainer < WorldBankData , Serializable > dataContainer = getApplicationManager ( ) . getDataContainer ( WorldBankData . class ) ; final List < WorldBankData > dataList = dataContainer . findListByEmbeddedProperty ( WorldBankData . class , WorldBankData_ . indicator , Indicator . class , Indicator_ . id , indicator ) ; chartDataManager . createIndicatorChart ( verticalLayout , dataList , indicatorSummaryValue ) ; }
Creates the data indicator summary chart panel.

@param verticalLayout
the vertical layout
@param indicator
the indicator
Creates the data indicator summary chart panel .