Package com.logicaldoc.core.conversion
Class NotAvailableConverter
java.lang.Object
com.logicaldoc.core.conversion.NotAvailableConverter
- All Implemented Interfaces:
FormatConverter
- Direct Known Subclasses:
NoConversionConverter
A converter that always convert into a static PDF that says 'not available'
- Since:
- 7.6.4
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms the conversionvoidPerforms the conversiongetParameter(String name) Gets the value of a parameterImplementations should return the list of the required parameters.Returns the map of parametersbooleanChecks if the converter is enabled or notvoidReads it's own parameters and stores them in the parameters mapvoidsetEnabled(boolean enabled) Enables or disables the converter
-
Constructor Details
-
NotAvailableConverter
public NotAvailableConverter()
-
-
Method Details
-
convert
Description copied from interface:FormatConverterPerforms the conversion- Specified by:
convertin interfaceFormatConverter- Parameters:
src- The source filedest- The converted file, the extension of it's filename defines the output format- Throws:
IOException- raised if the conversion resulted in an error
-
convert
Description copied from interface:FormatConverterPerforms the conversion- Specified by:
convertin interfaceFormatConverter- Parameters:
sid- The actual Session ID (optional)document- The document (optional)src- The source filedest- The converted file, the extension of it's filename defines the output format- Throws:
IOException- raised if the conversion resulted in an error
-
getParameterNames
Description copied from interface:FormatConverterImplementations should return the list of the required parameters. A parameter is stored in the context as converter.SimpleClassName.parameter = value- Specified by:
getParameterNamesin interfaceFormatConverter- Returns:
- list of the configuration parameters
-
getParameters
Description copied from interface:FormatConverterReturns the map of parameters- Specified by:
getParametersin interfaceFormatConverter- Returns:
- map param_name = param_value
-
getParameter
Description copied from interface:FormatConverterGets the value of a parameter- Specified by:
getParameterin interfaceFormatConverter- Parameters:
name- name of the configuration parameter- Returns:
- the value of the configuration parameter
-
loadParameters
public void loadParameters()Description copied from interface:FormatConverterReads it's own parameters and stores them in the parameters map- Specified by:
loadParametersin interfaceFormatConverter
-
isEnabled
public boolean isEnabled()Description copied from interface:FormatConverterChecks if the converter is enabled or not- Specified by:
isEnabledin interfaceFormatConverter- Returns:
- if the converter is enabled
-
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:FormatConverterEnables or disables the converter- Specified by:
setEnabledin interfaceFormatConverter- Parameters:
enabled- the enabled flag
-