Package org.codelibs.fess.thumbnail.impl
Class BaseThumbnailGenerator
- java.lang.Object
-
- org.codelibs.fess.thumbnail.impl.BaseThumbnailGenerator
-
- All Implemented Interfaces:
ThumbnailGenerator
- Direct Known Subclasses:
CommandGenerator,EmptyGenerator,HtmlTagBasedGenerator
public abstract class BaseThumbnailGenerator extends Object implements ThumbnailGenerator
-
-
Field Summary
Fields Modifier and Type Field Description protected Booleanavailableprotected Map<String,String>conditionMapprotected intdirectoryNameLengthprotected Map<String,String>filePathMapprotected List<String>generatorListprotected intmaxRedirectCountprotected Stringname
-
Constructor Summary
Constructors Constructor Description BaseThumbnailGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCondition(String key, String regex)org.codelibs.core.misc.Tuple3<String,String,String>createTask(String path, Map<String,Object> docMap)protected StringexpandPath(String value)StringgetName()booleanisAvailable()booleanisTarget(Map<String,Object> docMap)protected booleanprocess(String id, BiPredicate<String,String> consumer)protected booleanprocess(String id, Predicate<org.codelibs.fess.crawler.entity.ResponseData> consumer)voidregister()voidsetDirectoryNameLength(int directoryNameLength)voidsetGeneratorList(List<String> generatorList)voidsetMaxRedirectCount(int maxRedirectCount)voidsetName(String name)protected voidupdateThumbnailField(String thumbnailId, String value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codelibs.fess.thumbnail.ThumbnailGenerator
destroy, generate
-
-
-
-
Method Detail
-
register
public void register()
-
isTarget
public boolean isTarget(Map<String,Object> docMap)
- Specified by:
isTargetin interfaceThumbnailGenerator
-
isAvailable
public boolean isAvailable()
- Specified by:
isAvailablein interfaceThumbnailGenerator
-
createTask
public org.codelibs.core.misc.Tuple3<String,String,String> createTask(String path, Map<String,Object> docMap)
- Specified by:
createTaskin interfaceThumbnailGenerator
-
setDirectoryNameLength
public void setDirectoryNameLength(int directoryNameLength)
-
process
protected boolean process(String id, BiPredicate<String,String> consumer)
-
process
protected boolean process(String id, Predicate<org.codelibs.fess.crawler.entity.ResponseData> consumer)
-
getName
public String getName()
- Specified by:
getNamein interfaceThumbnailGenerator
-
setName
public void setName(String name)
-
setMaxRedirectCount
public void setMaxRedirectCount(int maxRedirectCount)
-
-