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 StringGet the configuration parameter name to determine if the process is active.protected StringGet the error message if process fails.voidprotected booleantrueto generate CDM-fr for another Ametys,falseotherwise.protected voidprocessProgram(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, serviceMethods 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:
initializein interfaceInitializable- Overrides:
initializein classAbstractCDMfrProcessor- Throws:
Exception
-
getConfigActiveParam
Description copied from class:AbstractCDMfrProcessorGet the configuration parameter name to determine if the process is active.- Specified by:
getConfigActiveParamin classAbstractCDMfrProcessor- Returns:
- The configuration parameter name
-
processProgram
Description copied from class:AbstractCDMfrProcessorProcess the program and its CDM-fr input stream.- Specified by:
processProgramin classAbstractCDMfrProcessor- Parameters:
program- The programcdmfrContent- The CDM-fr content asInputStream- Throws:
IOException- if an exception occurs
-
isCDMfrForAmetys
Description copied from class:AbstractCDMfrProcessortrueto generate CDM-fr for another Ametys,falseotherwise.- Specified by:
isCDMfrForAmetysin classAbstractCDMfrProcessor- Returns:
trueto generate CDM-fr for another Ametys instance
-
getErrorMessage
Description copied from class:AbstractCDMfrProcessorGet the error message if process fails.- Specified by:
getErrorMessagein classAbstractCDMfrProcessor- Returns:
- the error message
-