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
FieldsModifier and TypeFieldDescriptionprotected ContextThe Avalon contextprotected ExportCDMfrManagerThe component for CDM exportprotected AmetysObjectResolverThe Ametys object resolverstatic final StringThe name of request parameter to set this export for a Ametys applicationstatic final StringThe name of request parameter to use to get the valid version of contentstatic final StringAvalon Role -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_doExport(ContentHandler contentHandler, Program program) Do exportprotected ProgramGet the program to exportprotected RequestGet the requestprotected void_prepareRequest(Program program) Prepare the request before exportprotected void_prepareResponse(Program program) Prepare the responsevoidcontextualize(Context context) voidexport(ContentHandler contentHandler) Generate the CDM-fr XML export for the current program.voidservice(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:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
- Specified by:
contextualizein 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
-