Class AbstractFormat
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,String>
-
- com.openindex.openestate.tool.agency.export.AbstractFormat
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,String>
- Direct Known Subclasses:
AbstractCsvFormat
,AbstractPhpFormat
,AbstractXmlFormat
,Is24RestFormat
,WebsiteHtmlFormat
public abstract class AbstractFormat extends HashMap<String,String>
AbstractFormat.- Author:
- Andreas Rudolph
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractFormat.AttachmentMarker
static class
AbstractFormat.AttachmentMode
static class
AbstractFormat.Compression
static class
AbstractFormat.DefaultMessageCode
static class
AbstractFormat.HashCalculationException
static class
AbstractFormat.ImageWatermarkPosition
static class
AbstractFormat.NotExportableException
static class
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 Modifier Constructor Description protected
AbstractFormat()
-
Method Summary
-
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
-
calculateHashForObject
public String calculateHashForObject(long estateId, EstateImpl estateItem) throws AbstractFormat.NotExportableException, AbstractFormat.HashCalculationException
-
canPublishAttachment
protected boolean canPublishAttachment(String estateId, EstateAttachmentImpl attachment)
-
canPublishLink
protected boolean canPublishLink(String estateId, EstateLinkImpl link)
-
createExportProcess
public ExportProcess createExportProcess()
-
createExportRequests
public AbstractTransportRequest[] createExportRequests(AbstractTransport transport, File exportFile, AbstractFormat.TransferMode transferMode)
-
createSetupPanel
public abstract AbstractFormatPanel createSetupPanel()
-
equals
public boolean equals(Object o)
-
getAgentId
public String getAgentId()
-
getAgentMail
public String getAgentMail()
-
getAttachmentDirectory
protected File getAttachmentDirectory(long objectId, EstateAttachmentImpl attachment, File workDirectory)
-
getAttachmentImageScaleHeight
public int getAttachmentImageScaleHeight()
-
getAttachmentImageScaleWidth
public int getAttachmentImageScaleWidth()
-
getAttachmentMimeTypes
public String[] getAttachmentMimeTypes()
-
getAttachmentMode
public AbstractFormat.AttachmentMode getAttachmentMode()
-
getCompressedFileName
protected String getCompressedFileName(AbstractFormat.Compression c, ExportContext context)
-
getCompression
public AbstractFormat.Compression getCompression()
-
getFormat
public static AbstractFormat getFormat(String name)
-
getFormats
public static Map<String,AbstractFormat> getFormats()
-
getLanguage
public Locale getLanguage()
-
getLanguages
public Locale[] getLanguages()
-
getName
public abstract String getName()
-
getObjectKey
protected final String getObjectKey(ExportEntry entry)
-
getPreferredMimeTypes
protected String[] getPreferredMimeTypes()
-
getPropertyAddressPublication
public PublishingMode getPropertyAddressPublication()
-
getPropertyFilePublication
public PublishingMode getPropertyFilePublication()
-
getPropertyImageLimit
public int getPropertyImageLimit()
-
getPropertyImageWatermarkAlpha
public int getPropertyImageWatermarkAlpha()
-
getPropertyImageWatermarkHeight
public int getPropertyImageWatermarkHeight()
-
getPropertyImageWatermarkMargin
public int getPropertyImageWatermarkMargin()
-
getPropertyImageWatermarkPosition
public AbstractFormat.ImageWatermarkPosition getPropertyImageWatermarkPosition()
-
getPropertyImageWatermarkWidth
public int getPropertyImageWatermarkWidth()
-
getPropertyLinkPublication
public PublishingMode getPropertyLinkPublication()
-
getPropertyPrefix
public String getPropertyPrefix()
-
getPropertyPricePublication
public PublishingMode getPropertyPricePublication()
-
getPropertyVideoLimit
public int getPropertyVideoLimit()
-
getSupportedMimeTypes
public String[] getSupportedMimeTypes()
Liefert die von der Export-Schnittstelle fest vorgeschriebenen MIME-Types.- Returns:
- Liste der fest vorgeschriebenen MIME-Types, oder null wenn keine Vorgaben existieren.
public String[] getRequiredMimeTypes() { return null; }
-
getSupportedTransferModes
public abstract AbstractFormat.TransferMode[] getSupportedTransferModes()
-
getSupportedTransports
public abstract AbstractTransport[] getSupportedTransports()
-
getTitle
public abstract String getTitle()
-
getVersion
public String getVersion()
-
hasLanguage
public boolean hasLanguage(Locale l)
-
hashCode
public int hashCode()
-
initDefaults
public void initDefaults()
-
isAttachmentImageScale
public boolean isAttachmentImageScale()
-
isFullTransferSupported
public boolean isFullTransferSupported()
-
isFullTransportWarningShown
public boolean isFullTransportWarningShown()
-
isIncrementalTransferSupported
public boolean isIncrementalTransferSupported()
-
isPropertyAddressHiddenIfUnpublished
public boolean isPropertyAddressHiddenIfUnpublished()
-
isPropertyDescriptionWithEnergyCertificate
public boolean isPropertyDescriptionWithEnergyCertificate()
-
isPropertyFileHiddenIfUnpublished
public boolean isPropertyFileHiddenIfUnpublished()
-
isPropertyImageWatermark
public boolean isPropertyImageWatermark()
-
isPropertyLinkHiddenIfUnpublished
public boolean isPropertyLinkHiddenIfUnpublished()
-
isPropertyPriceHiddenIfUnpublished
public boolean isPropertyPriceHiddenIfUnpublished()
-
isPropertyPublicId
public boolean isPropertyPublicId()
-
listAvailableExports
@Deprecated public static Map<String,AbstractFormat> listAvailableExports()
Deprecated.
-
prepareObjectForExport
public boolean prepareObjectForExport(long estateId, EstateImpl estate)
-
setAgentId
public void setAgentId(String val)
-
setAgentMail
public void setAgentMail(String val)
-
setAttachmentImageScale
public void setAttachmentImageScale(boolean val)
-
setAttachmentImageScaleHeight
public void setAttachmentImageScaleHeight(int val)
-
setAttachmentImageScaleWidth
public void setAttachmentImageScaleWidth(int val)
-
setAttachmentMimeTypes
public void setAttachmentMimeTypes(String[] val)
-
setAttachmentMode
public void setAttachmentMode(AbstractFormat.AttachmentMode val)
-
setCompression
public void setCompression(AbstractFormat.Compression val)
-
setLanguage
public void setLanguage(Locale val)
-
setLanguages
public void setLanguages(Locale[] val)
-
setPropertyAddressHiddenIfUnpublished
public void setPropertyAddressHiddenIfUnpublished(boolean val)
-
setPropertyAddressPublication
public void setPropertyAddressPublication(PublishingMode val)
-
setPropertyDescriptionWithEnergyCertificate
public void setPropertyDescriptionWithEnergyCertificate(boolean val)
-
setPropertyFileHiddenIfUnpublished
public void setPropertyFileHiddenIfUnpublished(boolean val)
-
setPropertyFilePublication
public void setPropertyFilePublication(PublishingMode val)
-
setPropertyImageLimit
public void setPropertyImageLimit(int val)
-
setPropertyImageWatermark
public void setPropertyImageWatermark(boolean val)
-
setPropertyImageWatermarkAlpha
public void setPropertyImageWatermarkAlpha(int val)
-
setPropertyImageWatermarkHeight
public void setPropertyImageWatermarkHeight(int val)
-
setPropertyImageWatermarkMargin
public void setPropertyImageWatermarkMargin(int val)
-
setPropertyImageWatermarkPosition
public void setPropertyImageWatermarkPosition(AbstractFormat.ImageWatermarkPosition val)
-
setPropertyImageWatermarkWidth
public void setPropertyImageWatermarkWidth(int val)
-
setPropertyLinkHiddenIfUnpublished
public void setPropertyLinkHiddenIfUnpublished(boolean val)
-
setPropertyLinkPublication
public void setPropertyLinkPublication(PublishingMode val)
-
setPropertyPrefix
public void setPropertyPrefix(String val)
-
setPropertyPublicId
public void setPropertyPublicId(boolean val)
-
setPropertyPriceHiddenIfUnpublished
public void setPropertyPriceHiddenIfUnpublished(boolean val)
-
setPropertyPricePublication
public void setPropertyPricePublication(PublishingMode val)
-
setPropertyVideoLimit
public void setPropertyVideoLimit(int val)
-
writeToDisk
public abstract File writeToDisk(File workDir, TransferImpl transfer, ExportContext context) throws IOException, SQLException
- Throws:
IOException
SQLException
-
-