public class ConvertMetadata2ImagesComponent extends AbstractConvertDocument2ImagesComponent
AbstractConvertDocument2ImagesComponent
for a binary metadataModifier and Type | Field and Description |
---|---|
static String |
ROLE
Avalon ROLE.
|
_cocoonContext, _documentToImages, _resolver
Constructor and Description |
---|
ConvertMetadata2ImagesComponent() |
Modifier and Type | Method and Description |
---|---|
private BinaryMetadata |
_getBinaryMetadata(String metadataPath,
CompositeMetadata metadata) |
private String |
_getCacheDirectory(String metadataPath,
String fileName,
String contentName,
String siteName) |
String |
doCache(Content content,
String metadataPath,
String siteName)
Put the file in cache
|
cache, createImages, initialize, isMimeTypeSupported, service
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public ConvertMetadata2ImagesComponent()
public String doCache(Content content, String metadataPath, String siteName) throws Exception
content
- the contentmetadataPath
- the path of the metadatasiteName
- the name of the siteException
- if an error occurs while caching the fileprivate BinaryMetadata _getBinaryMetadata(String metadataPath, CompositeMetadata metadata)