public static void setReference( final RepositoryEntry repoEntry, final PortfolioStructure map, final ModuleConfiguration moduleConfig) { moduleConfig.set(PortfolioCourseNodeConfiguration.MAP_KEY, map.getKey()); if (repoEntry != null && repoEntry.getSoftkey() != null) { moduleConfig.set(PortfolioCourseNodeConfiguration.REPO_SOFT_KEY, repoEntry.getSoftkey()); } }
protected ModuleConfiguration getUpdatedConfig() { final String durationStr = durationSelection.getSelectedKey(); config.set(InfoCourseNodeConfiguration.CONFIG_DURATION, durationStr); final String lengthStr = lengthSelection.getSelectedKey(); config.set(InfoCourseNodeConfiguration.CONFIG_LENGTH, lengthStr); return config; }