Package org.ametys.plugins.flipbook
Class ConvertResource2ImagesComponent
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.flipbook.AbstractConvertDocument2ImagesComponent
org.ametys.plugins.flipbook.ConvertResource2ImagesComponent
- All Implemented Interfaces:
 Initializable,Component,LogEnabled,Serviceable,ThreadSafe
Implementation of a 
AbstractConvertDocument2ImagesComponent for a Resource- 
Field Summary
FieldsFields inherited from class org.ametys.plugins.flipbook.AbstractConvertDocument2ImagesComponent
_cocoonContext, _documentToImages, _resolver - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class org.ametys.plugins.flipbook.AbstractConvertDocument2ImagesComponent
cache, cleanCache, createImages, getCacheFile, initialize, isMimeTypeSupported, serviceMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger 
- 
Field Details
- 
ROLE
Avalon ROLE. 
 - 
 - 
Constructor Details
- 
ConvertResource2ImagesComponent
public ConvertResource2ImagesComponent() 
 - 
 - 
Method Details
- 
doCache
Put the file in cache- Parameters:
 resource- the resource to cachesiteName- the name of the site- Returns:
 - The absolute cache path
 - Throws:
 Exception- if an error occurs while caching the file
 - 
doCleanCache
Remove a resource from the flipbook cache. This method will first try to determine if the provided path either point to shared resource or a site resource. If it's neither, the method won't do anything as this component only handle resource- Parameters:
 path- the JCR path of the resourceresourcePath- the resource path (as return byResource:getResourcePath)
 
 -