public class ConvertContentAttachment2ImagesComponent extends AbstractConvertDocument2ImagesComponent
AbstractConvertDocument2ImagesComponent for a content attachment| Modifier 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, serviceenableLogging, getLogger, setupLogger, setupLogger, setupLoggerpublic 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)