Class AbstractSystemSetup

    • Constructor Detail

      • AbstractSystemSetup

        public AbstractSystemSetup()
    • Method Detail

      • getInitializationOptions

        public abstract java.util.List<SystemSetupParameter> getInitializationOptions()
        Abstract method to be implemented in subclasses.
        Returns:
        the list of SystemSetupParameters for the SystemSetup class.
      • logInfo

        public void logInfo​(SystemSetupContext context,
                            java.lang.String message)
        Log an info message in to the jsp context
        Parameters:
        context - the system setup context
        message - the message to log
      • logError

        public void logError​(SystemSetupContext context,
                             java.lang.String message,
                             java.lang.Throwable throwable)
        Log an error message in to the jsp context
        Parameters:
        context - the system setup context
        message - the message to log
        throwable - thrown exception, may be null
      • createBooleanSystemSetupParameter

        public SystemSetupParameter createBooleanSystemSetupParameter​(java.lang.String key,
                                                                      java.lang.String label,
                                                                      boolean defaultValue)
        Helper method for creating a Boolean setup parameter.
        Parameters:
        key -
        label -
        defaultValue -
      • getBooleanSystemSetupParameter

        public boolean getBooleanSystemSetupParameter​(SystemSetupContext context,
                                                      java.lang.String key)
        Helper method for checking setting of a Boolean setup parameter.
        Parameters:
        context -
        key -
        Returns:
        true if parameter is set to Yes
      • getDefaultValueForBooleanSystemSetupParameter

        public boolean getDefaultValueForBooleanSystemSetupParameter​(java.lang.String key)
        Helper method for getting default value of a Boolean setup parameter
        Parameters:
        key -
        Returns:
        the default value
      • getCatalogSyncJob

        public java.util.List<SyncItemJobModel> getCatalogSyncJob​(java.lang.String catalogId)
                                                           throws UnknownIdentifierException
        Searches for synchronization jobs of given catalog id
        Parameters:
        catalogId - to search synchronization jobs for.
        Returns:
        list of synchronizations
        Throws:
        UnknownIdentifierException - if no catalog with given id is found
      • importImpexFile

        public void importImpexFile​(SystemSetupContext context,
                                    java.lang.String file)
      • importImpexFile

        public void importImpexFile​(SystemSetupContext context,
                                    java.lang.String file,
                                    boolean errorIfMissing)
      • importImpexFile

        public void importImpexFile​(SystemSetupContext context,
                                    java.lang.String file,
                                    boolean errorIfMissing,
                                    boolean legacyMode)
      • createProductCatalogSyncJob

        public void createProductCatalogSyncJob​(SystemSetupContext context,
                                                java.lang.String catalogId)
      • createContentCatalogSyncJob

        public void createContentCatalogSyncJob​(SystemSetupContext context,
                                                java.lang.String catalogId)
      • createSolrIndexerCronJobs

        public void createSolrIndexerCronJobs​(java.lang.String solrFacetSearchConfigName)
      • executeSolrIndexerCronJob

        public void executeSolrIndexerCronJob​(java.lang.String solrFacetSearchConfigName,
                                              boolean fullReIndex)
      • activateSolrIndexerCronJobs

        public void activateSolrIndexerCronJobs​(java.lang.String solrFacetSearchConfigName)
      • isSyncRerunNeeded

        public boolean isSyncRerunNeeded​(PerformResult syncCronJobResult)
      • setSetupImpexService

        public void setSetupImpexService​(SetupImpexService setupImpexService)
      • setSetupSyncJobService

        public void setSetupSyncJobService​(SetupSyncJobService setupSyncJobService)
      • setSetupSolrIndexerService

        public void setSetupSolrIndexerService​(SetupSolrIndexerService setupSolrIndexerService)
      • setCatalogVersionService

        public void setCatalogVersionService​(CatalogVersionService catalogVersionService)
      • setEventService

        public void setEventService​(EventService eventService)