Class BaseThumbnailGenerator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCondition​(java.lang.String key, java.lang.String regex)  
      org.codelibs.core.misc.Tuple3<java.lang.String,​java.lang.String,​java.lang.String> createTask​(java.lang.String path, java.util.Map<java.lang.String,​java.lang.Object> docMap)  
      protected java.lang.String expandPath​(java.lang.String value)  
      java.lang.String getName()  
      boolean isAvailable()  
      boolean isTarget​(java.util.Map<java.lang.String,​java.lang.Object> docMap)  
      protected boolean process​(java.lang.String id, java.util.function.BiPredicate<java.lang.String,​java.lang.String> consumer)  
      protected boolean process​(java.lang.String id, java.util.function.Predicate<org.codelibs.fess.crawler.entity.ResponseData> consumer)  
      void setDirectoryNameLength​(int directoryNameLength)  
      void setGeneratorList​(java.util.List<java.lang.String> generatorList)  
      void setMaxRedirectCount​(int maxRedirectCount)  
      void setName​(java.lang.String name)  
      protected void updateThumbnailField​(java.lang.String thumbnailId, java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • conditionMap

        protected final java.util.Map<java.lang.String,​java.lang.String> conditionMap
      • directoryNameLength

        protected int directoryNameLength
      • generatorList

        protected java.util.List<java.lang.String> generatorList
      • filePathMap

        protected java.util.Map<java.lang.String,​java.lang.String> filePathMap
      • name

        protected java.lang.String name
      • maxRedirectCount

        protected int maxRedirectCount
      • available

        protected java.lang.Boolean available
    • Constructor Detail

      • BaseThumbnailGenerator

        public BaseThumbnailGenerator()
    • Method Detail

      • addCondition

        public void addCondition​(java.lang.String key,
                                 java.lang.String regex)
      • isTarget

        public boolean isTarget​(java.util.Map<java.lang.String,​java.lang.Object> docMap)
        Specified by:
        isTarget in interface ThumbnailGenerator
      • createTask

        public org.codelibs.core.misc.Tuple3<java.lang.String,​java.lang.String,​java.lang.String> createTask​(java.lang.String path,
                                                                                                                        java.util.Map<java.lang.String,​java.lang.Object> docMap)
        Specified by:
        createTask in interface ThumbnailGenerator
      • setDirectoryNameLength

        public void setDirectoryNameLength​(int directoryNameLength)
      • expandPath

        protected java.lang.String expandPath​(java.lang.String value)
      • updateThumbnailField

        protected void updateThumbnailField​(java.lang.String thumbnailId,
                                            java.lang.String value)
      • process

        protected boolean process​(java.lang.String id,
                                  java.util.function.BiPredicate<java.lang.String,​java.lang.String> consumer)
      • process

        protected boolean process​(java.lang.String id,
                                  java.util.function.Predicate<org.codelibs.fess.crawler.entity.ResponseData> consumer)
      • setGeneratorList

        public void setGeneratorList​(java.util.List<java.lang.String> generatorList)
      • setName

        public void setName​(java.lang.String name)
      • setMaxRedirectCount

        public void setMaxRedirectCount​(int maxRedirectCount)