com.openindex.openestate.tool.agency.export
Class AbstractXmlExport

java.lang.Object
  extended by com.openindex.openestate.tool.agency.export.AbstractExport
      extended by com.openindex.openestate.tool.agency.export.AbstractXmlExport
Direct Known Subclasses:
ImmobiliareExport, ImmoXmlExport, IS24XmlExport, KyeroExport, OpenEstateXmlExport, OpenImmoXmlExport, WisItXMLExport

public abstract class AbstractXmlExport
extends AbstractExport

AbstractXmlExport.
$Id: AbstractXmlExport.java 1779 2012-09-25 15:45:05Z andy $

Author:
Andreas Rudolph

Field Summary
static String KEY_LINEBREAK
           
static String LINEBREAK_HTML
           
static String LINEBREAK_NATIVE
           
static String LINEBREAK_XHTML
           
 
Fields inherited from class com.openindex.openestate.tool.agency.export.AbstractExport
IMAGEMODE_BASE64, IMAGEMODE_DISABLED, IMAGEMODE_FILE, KEY_ID_PREFIX, KEY_IMAGE_ALL, KEY_IMAGE_COUNT, KEY_IMAGE_SCALE, KEY_IMAGE_SCALE_HEIGHT, KEY_IMAGE_SCALE_WIDTH, KEY_IMAGE_WATERMARK, KEY_IMAGE_WATERMARK_ALPHA, KEY_IMAGE_WATERMARK_HEIGHT, KEY_IMAGE_WATERMARK_POSITION, KEY_IMAGE_WATERMARK_WIDTH, KEY_IMAGEMODE, KEY_INCREMENTAL, KEY_LANGUAGE, KEY_MIME_TYPES, KEY_UNPUBLISHED_ADDRESS_HIDDEN, KEY_VIDEO_COUNT, KEY_ZIPPED, POSITION_BOTTOM_CENTER, POSITION_BOTTOM_LEFT, POSITION_BOTTOM_RIGHT, POSITION_CENTER_CENTER, POSITION_CENTER_LEFT, POSITION_CENTER_RIGHT, POSITION_TOP_CENTER, POSITION_TOP_LEFT, POSITION_TOP_RIGHT
 
Constructor Summary
AbstractXmlExport()
           
 
Method Summary
protected  void buildFileList(File dir, String prefix, StringBuilder fileList)
           
 Object doConvert(AgencyExportSummary summary, SerializableXmlElement element, boolean incremental, Map<String,String> errors)
           
 File doExport(AgencyExportSummary summary, ImmoToolTask.Callback callback)
          Export durchführen.
protected abstract  void doWrite(Object obj, Writer w)
           
 String getLineBreak()
           
 String getXmlFileName()
           
protected  void handleAttachments(long estateId, EstateImpl estate, org.xmldb.api.base.Collection estateFileCollection)
           
 void setLineBreak(String val)
           
 
Methods inherited from class com.openindex.openestate.tool.agency.export.AbstractExport
buildTransfer, canExportAttachment, canTransportAttachment, convertImage, convertImage, createSetupPanel, doFinishExport, doFinishFtpTransport, doPrepareFtpTransport, getAddressPublishing, getAttachmentDirectory, getEstateForUpdate, getEstateIdForRemoval, getExportDirectory, getIdPrefix, getImageCount, getImageMode, getLocale, getMimeTypes, getName, getPositions, getRequiredMimeTypes, getScaleImageHeight, getScaleImageWidth, getTitle, getVideoCount, getWatermarkAlpha, getWatermarkHeight, getWatermarkPosition, getWatermarkWidth, getZipFileName, handleAttachmentsAsBase64, handleAttachmentsAsFiles, handleErrors, initWatermarkLogo, isAllImagesExported, isFullTransportWarningShown, isImageModeBase64, isImageModeDisabled, isImageModeFile, isIncremental, isScaleImages, isUnpublishedAddressHidden, isWatermark, isZipped, listAvailableExports, load, loadAgent, loadAgentContact, loadEstate, loadEstateAttachment, loadEstateCollection, loadEstateIds, save, setAddressPublishing, setAllImagesExported, setFullTransportWarningShown, setIdPrefix, setImageCount, setImageMode, setIncremental, setLanguage, setScaleImageHeight, setScaleImages, setScaleImageWidth, setUnpublishedAddressHidden, setVideoCount, setWatermark, setWatermarkAlpha, setWatermarkHeight, setWatermarkPosition, setWatermarkWidth, setZipped, supportsEstateType, supportsIncrementalUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_LINEBREAK

public static final String KEY_LINEBREAK
See Also:
Constant Field Values

LINEBREAK_HTML

public static final String LINEBREAK_HTML
See Also:
Constant Field Values

LINEBREAK_XHTML

public static final String LINEBREAK_XHTML
See Also:
Constant Field Values

LINEBREAK_NATIVE

public static final String LINEBREAK_NATIVE
See Also:
Constant Field Values
Constructor Detail

AbstractXmlExport

public AbstractXmlExport()
Method Detail

buildFileList

protected void buildFileList(File dir,
                             String prefix,
                             StringBuilder fileList)

doConvert

public Object doConvert(AgencyExportSummary summary,
                        SerializableXmlElement element,
                        boolean incremental,
                        Map<String,String> errors)

doExport

public File doExport(AgencyExportSummary summary,
                     ImmoToolTask.Callback callback)
              throws AgencyExportException,
                     ImmoToolTaskCancelledException
Description copied from class: AbstractExport
Export durchführen.

Specified by:
doExport in class AbstractExport
Parameters:
summary - Zusammenfassung des Exports
callback - Callback-Objekt des ausführenden Tasks
Returns:
temporäres Export-Verzeichnis
Throws:
AgencyExportException - Fehler beim Exportieren
ImmoToolTaskCancelledException

doWrite

protected abstract void doWrite(Object obj,
                                Writer w)
                         throws IOException
Throws:
IOException

getLineBreak

public String getLineBreak()

getXmlFileName

public String getXmlFileName()

handleAttachments

protected void handleAttachments(long estateId,
                                 EstateImpl estate,
                                 org.xmldb.api.base.Collection estateFileCollection)
                          throws AgencyExportException
Overrides:
handleAttachments in class AbstractExport
Throws:
AgencyExportException

setLineBreak

public void setLineBreak(String val)


Copyright © 2012 OpenEstate. All Rights Reserved.