Class AbstractDemoPatch

    • Constructor Detail

      • AbstractDemoPatch

        public AbstractDemoPatch​(java.lang.String patchId,
                                 java.lang.String patchName,
                                 Release release,
                                 StructureState structureState)
    • Method Detail

      • createProjectData

        public void createProjectData​(StructureState structureState)
        Description copied from interface: Patch
        Execute Patch with given structureState.
        Specified by:
        createProjectData in interface Patch
        Parameters:
        structureState - that should be used for creating project data
      • createGlobalData

        protected void createGlobalData​(StructureState structureState,
                                        boolean update)
        This method is responsible for update global data (not organisation specific).
        Parameters:
        structureState - indicates which structureState should be used to import these global data (see update parameter)
        update - if set to true:
        only language specific files will be imported (assumption is that not language specific files were imported before since this is just update). It also means that data will uploaded only for languages defined for organisations defined in this structureState that weren't introduced for other organisations before
      • createShopsData

        protected void createShopsData​(StructureState structureState,
                                       boolean update)
        This method will update shop data with specific structureState.
        Parameters:
        structureState - indicates which structureState should be used to import these global data (see update parameter)
        update - if set to true:
        only language specific files will be imported (assumption is that not language specific files were imported before since this is just update). It also means that data will uploaded only for languages defined for organisations defined in this structureState that weren't introduced for other organisations before
      • createShopsData

        protected void createShopsData​(java.util.Collection<ShopOrganisation> shops,
                                       boolean update)
        This method will update set of given shop organisations with given structureState. Update indicate if only language specific files should be imported.
        Parameters:
        shops -
        update -
      • createShopsData

        @Deprecated(since="1811",
                    forRemoval=true)
        protected void createShopsData​(java.util.Collection<ShopOrganisation> shops,
                                       StructureState structureState,
                                       boolean update)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811 This method will update set of given shop organisations with given structureState. Update indicate if only language specific files should be imported.
        Parameters:
        shops -
        structureState -
        update -
      • importShopSpecificData

        protected void importShopSpecificData​(java.lang.String fileName,
                                              java.util.Set<ImportLanguage> languages,
                                              ShopOrganisation shopOrganisation,
                                              boolean runAgain)
      • importShopCatalogVersionSpecificData

        protected void importShopCatalogVersionSpecificData​(java.lang.String fileName,
                                                            java.util.Set<ImportLanguage> languages,
                                                            ShopOrganisation shopOrganisation,
                                                            boolean runAgain)
      • importShopCatalogVersionSpecificData

        protected void importShopCatalogVersionSpecificData​(java.lang.String fileName,
                                                            java.util.Set<ImportLanguage> languages,
                                                            ShopOrganisation shopOrganisation,
                                                            boolean runAgain,
                                                            ImpexImportUnitOption[] importOptions)
      • importCountryData

        protected void importCountryData​(java.lang.String fileName,
                                         CountryOrganisation countryOrganisationn)