Package org.ametys.odf.cdmfr
Class DepositCDMfrProcessor
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.cdmfr.AbstractCDMfrProcessor
org.ametys.odf.cdmfr.DepositCDMfrProcessor
- All Implemented Interfaces:
LogEnabled
,Initializable
,Component
,Serviceable
Processor to deposit the CDM-fr file
-
Field Summary
FieldsFields inherited from class org.ametys.odf.cdmfr.AbstractCDMfrProcessor
_odfHelper, _sourceResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Get the configuration parameter name to determine if the process is active.protected String
Get the error message if process fails.void
protected boolean
true
to generate CDM-fr for another Ametys,false
otherwise.protected void
processProgram
(Program program, InputStream cdmfrContent) Process the program and its CDM-fr input stream.Methods inherited from class org.ametys.odf.cdmfr.AbstractCDMfrProcessor
_getCDMfrContent, filterPrograms, isActive, processPrograms, service
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The component role.
-
-
Constructor Details
-
DepositCDMfrProcessor
public DepositCDMfrProcessor()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Overrides:
initialize
in classAbstractCDMfrProcessor
- Throws:
Exception
-
getConfigActiveParam
Description copied from class:AbstractCDMfrProcessor
Get the configuration parameter name to determine if the process is active.- Specified by:
getConfigActiveParam
in classAbstractCDMfrProcessor
- Returns:
- The configuration parameter name
-
processProgram
Description copied from class:AbstractCDMfrProcessor
Process the program and its CDM-fr input stream.- Specified by:
processProgram
in classAbstractCDMfrProcessor
- Parameters:
program
- The programcdmfrContent
- The CDM-fr content asInputStream
- Throws:
IOException
- if an exception occurs
-
isCDMfrForAmetys
Description copied from class:AbstractCDMfrProcessor
true
to generate CDM-fr for another Ametys,false
otherwise.- Specified by:
isCDMfrForAmetys
in classAbstractCDMfrProcessor
- Returns:
true
to generate CDM-fr for another Ametys instance
-
getErrorMessage
Description copied from class:AbstractCDMfrProcessor
Get the error message if process fails.- Specified by:
getErrorMessage
in classAbstractCDMfrProcessor
- Returns:
- the error message
-