public class ConvertContentAttachment2ImagesAction extends ServiceableAction
| Modifier and Type | Field and Description |
|---|---|
protected ConvertContentAttachment2ImagesComponent |
_attachmentComponent
The component for conversion
|
protected AmetysObjectResolver |
_resolver
The ametys object resolver.
|
managerEMPTY_MAP| Constructor and Description |
|---|
ConvertContentAttachment2ImagesAction() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
_decodePath(String path)
Decode the resource path
|
protected Content |
_getContent(Resource resource)
Get the content from resource
|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected AmetysObjectResolver _resolver
protected ConvertContentAttachment2ImagesComponent _attachmentComponent
public ConvertContentAttachment2ImagesAction()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class ServiceableActionServiceExceptionpublic Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exceptionprotected Content _getContent(Resource resource)
resource - The resourceprotected String _decodePath(String path) throws UnsupportedEncodingException
path - the resource pathUnsupportedEncodingException - if UTF-8 encoding is not supported