Package org.ametys.plugins.flipbook
Class ConvertMetadata2ImagesComponent
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.plugins.flipbook.AbstractConvertDocument2ImagesComponent
-
- org.ametys.plugins.flipbook.ConvertMetadata2ImagesComponent
-
- All Implemented Interfaces:
Initializable
,Component
,LogEnabled
,Serviceable
,ThreadSafe
public class ConvertMetadata2ImagesComponent extends AbstractConvertDocument2ImagesComponent
Implementation of aAbstractConvertDocument2ImagesComponent
for a binary metadata
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE
Avalon ROLE.-
Fields inherited from class org.ametys.plugins.flipbook.AbstractConvertDocument2ImagesComponent
_cocoonContext, _documentToImages, _resolver
-
-
Constructor Summary
Constructors Constructor Description ConvertMetadata2ImagesComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Binary
_getBinary(String dataPath, Content content)
private String
_getCacheDirectory(String metadataPath, String fileName, String contentName, String siteName)
String
doCache(Content content, String metadataPath, String siteName)
Put the file in cache-
Methods inherited from class org.ametys.plugins.flipbook.AbstractConvertDocument2ImagesComponent
cache, createImages, initialize, isMimeTypeSupported, service
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
ConvertMetadata2ImagesComponent
public ConvertMetadata2ImagesComponent()
-
-
Method Detail
-
doCache
public String doCache(Content content, String metadataPath, String siteName) throws Exception
Put the file in cache- Parameters:
content
- the contentmetadataPath
- the path of the metadatasiteName
- the name of the site- Returns:
- The absolute cache path
- Throws:
Exception
- if an error occurs while caching the file
-
_getBinary
private Binary _getBinary(String dataPath, Content content)
-
-