Class CrawlingConfigHelper


  • public class CrawlingConfigHelper
    extends java.lang.Object
    • Field Detail

      • crawlingConfigMap

        protected final java.util.Map<java.lang.String,​CrawlingConfig> crawlingConfigMap
      • count

        protected int count
      • crawlingConfigCache

        protected com.google.common.cache.Cache<java.lang.String,​CrawlingConfig> crawlingConfigCache
    • Constructor Detail

      • CrawlingConfigHelper

        public CrawlingConfigHelper()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • getId

        protected java.lang.String getId​(java.lang.String configId)
      • getCrawlingConfig

        public CrawlingConfig getCrawlingConfig​(java.lang.String configId)
      • getPipeline

        public org.dbflute.optional.OptionalThing<java.lang.String> getPipeline​(java.lang.String configId)
      • refresh

        public void refresh()
      • store

        public java.lang.String store​(java.lang.String sessionId,
                                      CrawlingConfig crawlingConfig)
      • remove

        public void remove​(java.lang.String sessionId)
      • getAllWebConfigList

        public java.util.List<WebConfig> getAllWebConfigList()
      • getWebConfigListByIds

        public java.util.List<WebConfig> getWebConfigListByIds​(java.util.List<java.lang.String> idList)
      • getAllWebConfigList

        public java.util.List<WebConfig> getAllWebConfigList​(boolean withLabelType,
                                                             boolean withRoleType,
                                                             boolean available,
                                                             java.util.List<java.lang.String> idList)
      • getAllFileConfigList

        public java.util.List<FileConfig> getAllFileConfigList()
      • getFileConfigListByIds

        public java.util.List<FileConfig> getFileConfigListByIds​(java.util.List<java.lang.String> idList)
      • getAllFileConfigList

        public java.util.List<FileConfig> getAllFileConfigList​(boolean withLabelType,
                                                               boolean withRoleType,
                                                               boolean available,
                                                               java.util.List<java.lang.String> idList)
      • getAllDataConfigList

        public java.util.List<DataConfig> getAllDataConfigList()
      • getDataConfigListByIds

        public java.util.List<DataConfig> getDataConfigListByIds​(java.util.List<java.lang.String> idList)
      • getAllDataConfigList

        public java.util.List<DataConfig> getAllDataConfigList​(boolean withLabelType,
                                                               boolean withRoleType,
                                                               boolean available,
                                                               java.util.List<java.lang.String> idList)
      • getExcludedUrlList

        public java.util.List<java.lang.String> getExcludedUrlList​(java.lang.String configId)