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
Action to convert a content attachment file into images.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConvertContentAttachment2ImagesComponentThe component for conversionprotected AmetysObjectResolverThe ametys object resolver.Fields inherited from class org.apache.cocoon.acting.ServiceableAction
managerFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Content_getContent(Resource resource) Get the content from resourceact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) voidservice(ServiceManager serviceManager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_resolver
The ametys object resolver. -
_attachmentComponent
The component for conversion
-
-
Constructor Details
-
ConvertContentAttachment2ImagesAction
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableAction- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-
_getContent
Get the content from resource- Parameters:
resource- The resource- Returns:
- the content or null if not found
-