Package org.ametys.plugins.flipbook
Class ConvertContentAttachment2ImagesAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.flipbook.ConvertContentAttachment2ImagesAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class ConvertContentAttachment2ImagesAction extends ServiceableAction
Action to convert a content attachment file into images.
-
-
Field Summary
Fields Modifier and Type Field Description protected ConvertContentAttachment2ImagesComponent
_attachmentComponent
The component for conversionprotected AmetysObjectResolver
_resolver
The ametys object resolver.-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description ConvertContentAttachment2ImagesAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Content
_getContent(Resource resource)
Get the content from resourceMap
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
service(ServiceManager serviceManager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_resolver
protected AmetysObjectResolver _resolver
The ametys object resolver.
-
_attachmentComponent
protected ConvertContentAttachment2ImagesComponent _attachmentComponent
The component for conversion
-
-
Constructor Detail
-
ConvertContentAttachment2ImagesAction
public ConvertContentAttachment2ImagesAction()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
_getContent
protected Content _getContent(Resource resource)
Get the content from resource- Parameters:
resource
- The resource- Returns:
- the content or null if not found
-
-