Package org.ametys.odf.cdmfr
Class ExportCDMfrHelper
java.lang.Object
org.ametys.odf.cdmfr.ExportCDMfrHelper
- All Implemented Interfaces:
Component
,Contextualizable
,Serviceable
- Direct Known Subclasses:
WebExportCDMfrHelper
Default helper to export a
Program
to CDM-fr format.-
Field Summary
Modifier and TypeFieldDescriptionprotected Context
The Avalon contextprotected ExportCDMfrManager
The component for CDM exportprotected AmetysObjectResolver
The Ametys object resolverstatic final String
The name of request parameter to set this export for a Ametys applicationstatic final String
The name of request parameter to use to get the valid version of contentstatic final String
Avalon Role -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_doExport
(ContentHandler contentHandler, Program program) Do exportprotected Program
Get the program to exportprotected Request
Get the requestprotected void
_prepareRequest
(Program program) Prepare the request before exportprotected void
_prepareResponse
(Program program) Prepare the responsevoid
contextualize
(Context context) void
export
(ContentHandler contentHandler) Generate the CDM-fr XML export for the current program.void
service
(ServiceManager smanager)
-
Field Details
-
ROLE
Avalon Role -
REQUEST_PARAM_VALID_LABEL
The name of request parameter to use to get the valid version of content- See Also:
-
REQUEST_PARAM_EXPORT_FOR_AMETYS
The name of request parameter to set this export for a Ametys application- See Also:
-
_resolver
The Ametys object resolver -
_exportCDMfrManager
The component for CDM export -
_context
The Avalon context
-
-
Constructor Details
-
ExportCDMfrHelper
public ExportCDMfrHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
export
Generate the CDM-fr XML export for the current program.- Parameters:
contentHandler
- The content handler- Throws:
SAXException
- If an error occurs during sax
-
_doExport
Do export- Parameters:
contentHandler
- The content handler to sax intoprogram
- the porogram to export- Throws:
SAXException
- If an error occurs during sax
-
_getProgram
Get the program to export- Returns:
- the program to export
-
_prepareRequest
Prepare the request before export- Parameters:
program
- the program to export
-
_prepareResponse
Prepare the response- Parameters:
program
- the program to export
-
_getRequest
Get the request- Returns:
- the request
-