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 classIdxCsvFormat.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 IdxWriterbuildWriter()StringcalculateHashForObject(long estateId, EstateImpl estateItem)protected booleancanPublishAttachment(String estateId, EstateAttachmentImpl attachment)AbstractFormatPanelcreateSetupPanel()protected FilegetAttachmentDirectory(long objectId, EstateAttachmentImpl attachment, File workDirectory)protected StringgetCsvFileName(ExportContext context)StringgetName()protected String[]getPreferredMimeTypes()String[]getSupportedMimeTypes()Liefert die von der Export-Schnittstelle fest vorgeschriebenen MIME-Types.AbstractFormat.TransferMode[]getSupportedTransferModes()StringgetTitle()StringgetVersion()voidinitDefaults()booleanprepareObjectForExport(long estateId, EstateImpl estate)FilewriteToDisk(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:
calculateHashForObjectin classAbstractFormat- Throws:
AbstractFormat.NotExportableExceptionAbstractFormat.HashCalculationException
-
canPublishAttachment
protected boolean canPublishAttachment(String estateId, EstateAttachmentImpl attachment)
- Overrides:
canPublishAttachmentin classAbstractFormat
-
createSetupPanel
public AbstractFormatPanel createSetupPanel()
- Specified by:
createSetupPanelin classAbstractFormat
-
getAttachmentDirectory
protected File getAttachmentDirectory(long objectId, EstateAttachmentImpl attachment, File workDirectory)
- Overrides:
getAttachmentDirectoryin classAbstractFormat
-
getCsvFileName
protected String getCsvFileName(ExportContext context)
- Specified by:
getCsvFileNamein classAbstractCsvFormat
-
getName
public String getName()
- Specified by:
getNamein classAbstractFormat
-
getPreferredMimeTypes
protected String[] getPreferredMimeTypes()
- Overrides:
getPreferredMimeTypesin classAbstractFormat
-
getSupportedMimeTypes
public String[] getSupportedMimeTypes()
Description copied from class:AbstractFormatLiefert die von der Export-Schnittstelle fest vorgeschriebenen MIME-Types.- Overrides:
getSupportedMimeTypesin 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:
getSupportedTransferModesin classAbstractFormat
-
getTitle
public String getTitle()
- Specified by:
getTitlein classAbstractFormat
-
getVersion
public String getVersion()
- Overrides:
getVersionin classAbstractFormat
-
initDefaults
public void initDefaults()
- Overrides:
initDefaultsin classAbstractFormat
-
prepareObjectForExport
public boolean prepareObjectForExport(long estateId, EstateImpl estate)- Overrides:
prepareObjectForExportin classAbstractFormat
-
writeToDisk
public File writeToDisk(File workDir, TransferImpl transfer, ExportContext context) throws IOException
- Specified by:
writeToDiskin classAbstractFormat- Throws:
IOException
-
-