public class FeatureProviderImpl extends Object implements FeatureProvider
FeatureProvider implementation.| Constructor and Description |
|---|
FeatureProviderImpl(Properties applicationProperties)
Creates a new
FeatureProviderImpl using the given Properties, which have been retrieved from a
Application. |
| Modifier and Type | Method and Description |
|---|---|
File |
getImageCache()
Returns the folder to use for caching images, only available if
featureImageProcessing is enabled. |
ImageProcessor |
getImageProcessor(File sourceFile,
String targetFile)
Returns an
ImageProcessor for the given sourceFile.To enable this feature, set the Application's Property featureImageProcessing to
true. |
Consumer<DocumentEvent,DocumentProducer> |
getIndexer()
Returns a
Consumer which consumes DocumentEvents produced by a DocumentProducer.The
returned Consumer writes to the Lucene-poweredsearch-index of the Site.To enable this feature, set the Application's Property featureIndexing to true . |
void |
initImageProcessor(File imageMagickPath,
File imageCache)
|
void |
setIndexer(DocumentIndexer indexer)
|
public FeatureProviderImpl(Properties applicationProperties)
FeatureProviderImpl using the given Properties, which have been retrieved from a
Application.applicationProperties - the Properties to use.public void initImageProcessor(File imageMagickPath, File imageCache)
imageMagickPath - the path to the ImageMagick executableimageCache - the folder to use for caching imagesgetImageProcessor(File, String)public void setIndexer(DocumentIndexer indexer)
indexer - the DocumentIndexergetIndexer()public ImageProcessor getImageProcessor(File sourceFile, String targetFile)
FeatureProviderImageProcessor for the given sourceFile.Application's Property featureImageProcessing to
true.getImageProcessor in interface FeatureProvidersourceFile - the source image (should have an absolute path)targetFile - the path to the target file to be created, relative to Platform.Property.IMAGE_CACHE_FOLDER.ImageProcessor for the given source filepublic File getImageCache()
FeatureProviderfeatureImageProcessing is enabled.getImageCache in interface FeatureProviderFeatureProvider.getImageProcessor(File, String)public Consumer<DocumentEvent,DocumentProducer> getIndexer()
FeatureProviderConsumer which consumes DocumentEvents produced by a DocumentProducer.The
returned Consumer writes to the Lucene-poweredSite.Application's Property featureIndexing to true .getIndexer in interface FeatureProviderConsumer consuming DocumentEvents produced by a DocumentProducerCopyright © 2011–2018 aiticon GmbH. All rights reserved.