Class IdxCsvFormat
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,String>
-
- com.openindex.openestate.tool.agency.export.AbstractFormat
-
- com.openindex.openestate.tool.agency.export.AbstractCsvFormat
-
- com.openindex.openestate.tool.agency.export.IdxCsvFormat
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,String>
public class IdxCsvFormat extends AbstractCsvFormat
IdxCsvFormat.- Author:
- Andreas Rudolph
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IdxCsvFormat.Writer
-
Nested classes/interfaces inherited from class com.openindex.openestate.tool.agency.export.AbstractFormat
AbstractFormat.AttachmentMarker, AbstractFormat.AttachmentMode, AbstractFormat.Compression, AbstractFormat.DefaultMessageCode, AbstractFormat.HashCalculationException, AbstractFormat.ImageWatermarkPosition, AbstractFormat.NotExportableException, AbstractFormat.TransferMode
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description IdxCsvFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IdxWriter
buildWriter()
String
calculateHashForObject(long estateId, EstateImpl estateItem)
protected boolean
canPublishAttachment(String estateId, EstateAttachmentImpl attachment)
AbstractFormatPanel
createSetupPanel()
protected File
getAttachmentDirectory(long objectId, EstateAttachmentImpl attachment, File workDirectory)
protected String
getCsvFileName(ExportContext context)
String
getName()
protected String[]
getPreferredMimeTypes()
String[]
getSupportedMimeTypes()
Liefert die von der Export-Schnittstelle fest vorgeschriebenen MIME-Types.AbstractFormat.TransferMode[]
getSupportedTransferModes()
String
getTitle()
String
getVersion()
void
initDefaults()
boolean
prepareObjectForExport(long estateId, EstateImpl estate)
File
writeToDisk(File workDir, TransferImpl transfer, ExportContext context)
-
Methods inherited from class com.openindex.openestate.tool.agency.export.AbstractCsvFormat
getSupportedTransports
-
Methods inherited from class com.openindex.openestate.tool.agency.export.AbstractFormat
canPublishLink, createExportProcess, createExportRequests, equals, getAgentId, getAgentMail, getAttachmentImageScaleHeight, getAttachmentImageScaleWidth, getAttachmentMimeTypes, getAttachmentMode, getCompressedFileName, getCompression, getFormat, getFormats, getLanguage, getLanguages, getMessageCodeTranslation, getMessageCodeTranslation, getObjectKey, getObjectKey, getPropertyAddressPublication, getPropertyFilePublication, getPropertyImageLimit, getPropertyImageWatermarkAlpha, getPropertyImageWatermarkHeight, getPropertyImageWatermarkMargin, getPropertyImageWatermarkPosition, getPropertyImageWatermarkWidth, getPropertyLinkPublication, getPropertyPrefix, getPropertyPricePublication, getPropertyVideoLimit, hashCode, hasLanguage, isAttachmentImageScale, isFullTransferSupported, isFullTransportWarningShown, isIncrementalTransferSupported, isPropertyAddressHiddenIfUnpublished, isPropertyDescriptionWithEnergyCertificate, isPropertyFileHiddenIfUnpublished, isPropertyImageWatermark, isPropertyLinkHiddenIfUnpublished, isPropertyPriceHiddenIfUnpublished, isPropertyPublicId, listAvailableExports, setAgentId, setAgentMail, setAttachmentImageScale, setAttachmentImageScaleHeight, setAttachmentImageScaleWidth, setAttachmentMimeTypes, setAttachmentMode, setCompression, setLanguage, setLanguages, setPropertyAddressHiddenIfUnpublished, setPropertyAddressPublication, setPropertyDescriptionWithEnergyCertificate, setPropertyFileHiddenIfUnpublished, setPropertyFilePublication, setPropertyImageLimit, setPropertyImageWatermark, setPropertyImageWatermarkAlpha, setPropertyImageWatermarkHeight, setPropertyImageWatermarkMargin, setPropertyImageWatermarkPosition, setPropertyImageWatermarkWidth, setPropertyLinkHiddenIfUnpublished, setPropertyLinkPublication, setPropertyPrefix, setPropertyPriceHiddenIfUnpublished, setPropertyPricePublication, setPropertyPublicId, setPropertyVideoLimit
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
toString
-
-
-
-
Method Detail
-
buildWriter
protected IdxWriter buildWriter()
-
calculateHashForObject
public String calculateHashForObject(long estateId, EstateImpl estateItem) throws AbstractFormat.NotExportableException, AbstractFormat.HashCalculationException
- Overrides:
calculateHashForObject
in classAbstractFormat
- Throws:
AbstractFormat.NotExportableException
AbstractFormat.HashCalculationException
-
canPublishAttachment
protected boolean canPublishAttachment(String estateId, EstateAttachmentImpl attachment)
- Overrides:
canPublishAttachment
in classAbstractFormat
-
createSetupPanel
public AbstractFormatPanel createSetupPanel()
- Specified by:
createSetupPanel
in classAbstractFormat
-
getAttachmentDirectory
protected File getAttachmentDirectory(long objectId, EstateAttachmentImpl attachment, File workDirectory)
- Overrides:
getAttachmentDirectory
in classAbstractFormat
-
getCsvFileName
protected String getCsvFileName(ExportContext context)
- Specified by:
getCsvFileName
in classAbstractCsvFormat
-
getName
public String getName()
- Specified by:
getName
in classAbstractFormat
-
getPreferredMimeTypes
protected String[] getPreferredMimeTypes()
- Overrides:
getPreferredMimeTypes
in classAbstractFormat
-
getSupportedMimeTypes
public String[] getSupportedMimeTypes()
Description copied from class:AbstractFormat
Liefert die von der Export-Schnittstelle fest vorgeschriebenen MIME-Types.- Overrides:
getSupportedMimeTypes
in classAbstractFormat
- Returns:
- Liste der fest vorgeschriebenen MIME-Types, oder null wenn keine Vorgaben existieren.
public String[] getRequiredMimeTypes() { return null; }
-
getSupportedTransferModes
public AbstractFormat.TransferMode[] getSupportedTransferModes()
- Specified by:
getSupportedTransferModes
in classAbstractFormat
-
getTitle
public String getTitle()
- Specified by:
getTitle
in classAbstractFormat
-
getVersion
public String getVersion()
- Overrides:
getVersion
in classAbstractFormat
-
initDefaults
public void initDefaults()
- Overrides:
initDefaults
in classAbstractFormat
-
prepareObjectForExport
public boolean prepareObjectForExport(long estateId, EstateImpl estate)
- Overrides:
prepareObjectForExport
in classAbstractFormat
-
writeToDisk
public File writeToDisk(File workDir, TransferImpl transfer, ExportContext context) throws IOException
- Specified by:
writeToDisk
in classAbstractFormat
- Throws:
IOException
-
-