|
15 | 15 | * along with this program; if not, write to the Free Software |
16 | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 | 17 | */ |
18 | | -package ru.mystamps.web.controller; |
| 18 | +package ru.mystamps.web.feature.series; |
19 | 19 |
|
20 | 20 | import java.io.IOException; |
21 | 21 | import java.time.Year; |
@@ -525,30 +525,35 @@ public String searchSeriesByCatalog( |
525 | 525 | return "series/search_result"; |
526 | 526 | } |
527 | 527 |
|
528 | | - protected void addCategoriesToModel(Model model, String lang) { |
| 528 | + // "public" in order to be accessible from SeriesImportController |
| 529 | + public void addCategoriesToModel(Model model, String lang) { |
529 | 530 | List<EntityWithParentDto> categories = categoryService.findCategoriesWithParents(lang); |
530 | 531 |
|
531 | 532 | List<SelectItem> groupedCategories = GroupByParent.transformEntities(categories); |
532 | 533 |
|
533 | 534 | model.addAttribute("categories", groupedCategories); |
534 | 535 | } |
535 | 536 |
|
536 | | - protected void addCountriesToModel(Model model, String lang) { |
| 537 | + // "public" in order to be accessible from SeriesImportController |
| 538 | + public void addCountriesToModel(Model model, String lang) { |
537 | 539 | List<LinkEntityDto> countries = countryService.findAllAsLinkEntities(lang); |
538 | 540 | model.addAttribute("countries", countries); |
539 | 541 | } |
540 | 542 |
|
541 | | - protected void addYearToModel(Model model) { |
| 543 | + // "public" in order to be accessible from SeriesImportController |
| 544 | + public void addYearToModel(Model model) { |
542 | 545 | model.addAttribute("years", YEARS); |
543 | 546 | } |
544 | 547 |
|
545 | | - protected void addSellersToModel(Model model) { |
| 548 | + // "public" in order to be accessible from SeriesImportController |
| 549 | + public void addSellersToModel(Model model) { |
546 | 550 | List<EntityWithParentDto> sellers = participantService.findSellersWithParents(); |
547 | 551 | List<SelectItem> groupedSellers = GroupByParent.transformEntities(sellers); |
548 | 552 | model.addAttribute("sellers", groupedSellers); |
549 | 553 | } |
550 | 554 |
|
551 | | - protected static void loadErrorsFromDownloadInterceptor( |
| 555 | + // "public" in order to be accessible from SeriesImportController |
| 556 | + public static void loadErrorsFromDownloadInterceptor( |
552 | 557 | NullableImageUrl form, |
553 | 558 | BindingResult result, |
554 | 559 | HttpServletRequest request) { |
|
0 commit comments