public class ConvertContentAttachment2ImagesComponent extends AbstractConvertDocument2ImagesComponent
AbstractConvertDocument2ImagesComponent
for a content attachmentModifier and Type | Field and Description |
---|---|
static String |
ROLE
Avalon ROLE.
|
_cocoonContext, _documentToImages, _resolver
Constructor and Description |
---|
ConvertContentAttachment2ImagesComponent() |
Modifier and Type | Method and Description |
---|---|
private String |
_getCacheDirectory(Resource resource,
String contentName,
String siteName) |
String |
doCache(Resource resource,
String contentName,
String siteName)
Put the file in cache
|
cache, createImages, initialize, isMimeTypeSupported, service
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public ConvertContentAttachment2ImagesComponent()
public String doCache(Resource resource, String contentName, String siteName) throws Exception
resource
- the resourcecontentName
- the name of the contentsiteName
- the name of the siteException
- if an error occurs while caching the fileprivate String _getCacheDirectory(Resource resource, String contentName, String siteName)