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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCondition(String key, String regex) createTask(String path, Map<String, Object> docMap) protected StringexpandPath(String value) getName()booleanbooleanprotected booleanprocess(String id, BiPredicate<String, String> consumer) protected booleanvoidregister()voidsetDirectoryNameLength(int directoryNameLength) voidsetGeneratorList(List<String> generatorList) voidsetMaxRedirectCount(int maxRedirectCount) voidprotected voidupdateThumbnailField(String thumbnailId, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codelibs.fess.thumbnail.ThumbnailGenerator
destroy, generate
-
Field Details
-
conditionMap
-
directoryNameLength
protected int directoryNameLength -
generatorList
-
filePathMap
-
name
-
maxRedirectCount
protected int maxRedirectCount -
available
-
-
Constructor Details
-
BaseThumbnailGenerator
public BaseThumbnailGenerator()
-
-
Method Details
-
register
public void register() -
addCondition
-
isTarget
- Specified by:
isTargetin interfaceThumbnailGenerator
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein interfaceThumbnailGenerator
-
createTask
public org.codelibs.core.misc.Tuple3<String,String, createTaskString> (String path, Map<String, Object> docMap) - Specified by:
createTaskin interfaceThumbnailGenerator
-
setDirectoryNameLength
public void setDirectoryNameLength(int directoryNameLength) -
expandPath
-
updateThumbnailField
-
process
-
process
-
setGeneratorList
-
getName
- Specified by:
getNamein interfaceThumbnailGenerator
-
setName
-
setMaxRedirectCount
public void setMaxRedirectCount(int maxRedirectCount)
-