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.
|
manager
EMPTY_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, setupLogger
protected AmetysObjectResolver _resolver
protected ConvertContentAttachment2ImagesComponent _attachmentComponent
public ConvertContentAttachment2ImagesAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected Content _getContent(Resource resource)
resource
- The resourceprotected String _decodePath(String path) throws UnsupportedEncodingException
path
- the resource pathUnsupportedEncodingException
- if UTF-8 encoding is not supported