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

java.lang.Object
  extended by com.openindex.openestate.tool.agency.export.AbstractExport
      extended by com.openindex.openestate.tool.agency.export.AbstractXmlExport
          extended by com.openindex.openestate.tool.agency.export.ImmobiliareExport

public class ImmobiliareExport
extends AbstractXmlExport

ImmobiliareExport.
siehe http://feed.immobiliare.it/import/docs/xml-specification.html
siehe http://feed.immobiliare.it/import/docs/xsd/v1.5.xsd
siehe http://feed.immobiliare.it/import/docs/validator.php
$Id: ImmobiliareExport.java 1779 2012-09-25 15:45:05Z andy $

Author:
Andreas Rudolph

Field Summary
static String KEY_BASE_URL
           
static String KEY_PUBLIC_ID_USED
           
static String KEY_PUBLISHER_MAIL
           
static String NAME
           
 
Fields inherited from class com.openindex.openestate.tool.agency.export.AbstractXmlExport
KEY_LINEBREAK, LINEBREAK_HTML, LINEBREAK_NATIVE, 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
ImmobiliareExport()
           
 
Method Summary
 AbstractExportPanel createSetupPanel()
           
 Object doConvert(AgencyExportSummary summary, SerializableXmlElement element, boolean incremental, Map<String,String> errors)
           
 void doPrepareFtpTransport(FtpTransport transport, AgencyExportSummary summary, File exportDir, org.apache.commons.net.ftp.FTPClient client, String remotePath, ImmoToolTask.Callback callback)
           
protected  void doWrite(Object obj, Writer w)
           
 String getBaseUrl()
           
protected  boolean getEstateForUpdate(AgencyEstate estate)
          Vorbereitung einer Immobilie, bevor diese in den Transfer aufgenommen wird.
protected  String getEstateIdForRemoval(Long estateId, AgencyExportSummary summary)
           
 String getName()
           
 String getPublisherMail()
           
 String getTitle()
           
 String getXmlFileName()
           
 boolean isPublicIdUsed()
           
 void load(Properties props)
           
 void save(Properties props)
           
 void setBaseUrl(String url)
           
 void setPublicIdUsed(boolean val)
           
 void setPublisherMail(String val)
           
 boolean supportsIncrementalUpdate()
           
 
Methods inherited from class com.openindex.openestate.tool.agency.export.AbstractXmlExport
buildFileList, doExport, getLineBreak, handleAttachments, setLineBreak
 
Methods inherited from class com.openindex.openestate.tool.agency.export.AbstractExport
buildTransfer, canExportAttachment, canTransportAttachment, convertImage, convertImage, doFinishExport, doFinishFtpTransport, getAddressPublishing, getAttachmentDirectory, getExportDirectory, getIdPrefix, getImageCount, getImageMode, getLocale, getMimeTypes, getPositions, getRequiredMimeTypes, getScaleImageHeight, getScaleImageWidth, getVideoCount, getWatermarkAlpha, getWatermarkHeight, getWatermarkPosition, getWatermarkWidth, getZipFileName, handleAttachmentsAsBase64, handleAttachmentsAsFiles, handleErrors, initWatermarkLogo, isAllImagesExported, isFullTransportWarningShown, isImageModeBase64, isImageModeDisabled, isImageModeFile, isIncremental, isScaleImages, isUnpublishedAddressHidden, isWatermark, isZipped, listAvailableExports, loadAgent, loadAgentContact, loadEstate, loadEstateAttachment, loadEstateCollection, loadEstateIds, setAddressPublishing, setAllImagesExported, setFullTransportWarningShown, setIdPrefix, setImageCount, setImageMode, setIncremental, setLanguage, setScaleImageHeight, setScaleImages, setScaleImageWidth, setUnpublishedAddressHidden, setVideoCount, setWatermark, setWatermarkAlpha, setWatermarkHeight, setWatermarkPosition, setWatermarkWidth, setZipped, supportsEstateType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

KEY_BASE_URL

public static final String KEY_BASE_URL
See Also:
Constant Field Values

KEY_PUBLISHER_MAIL

public static final String KEY_PUBLISHER_MAIL
See Also:
Constant Field Values

KEY_PUBLIC_ID_USED

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

ImmobiliareExport

public ImmobiliareExport()
Method Detail

doConvert

public Object doConvert(AgencyExportSummary summary,
                        SerializableXmlElement element,
                        boolean incremental,
                        Map<String,String> errors)
Overrides:
doConvert in class AbstractXmlExport

doPrepareFtpTransport

public void doPrepareFtpTransport(FtpTransport transport,
                                  AgencyExportSummary summary,
                                  File exportDir,
                                  org.apache.commons.net.ftp.FTPClient client,
                                  String remotePath,
                                  ImmoToolTask.Callback callback)
                           throws AgencyExportException,
                                  ImmoToolTaskCancelledException
Overrides:
doPrepareFtpTransport in class AbstractExport
Throws:
AgencyExportException
ImmoToolTaskCancelledException

doWrite

protected void doWrite(Object obj,
                       Writer w)
                throws IOException
Specified by:
doWrite in class AbstractXmlExport
Throws:
IOException

createSetupPanel

public AbstractExportPanel createSetupPanel()
Specified by:
createSetupPanel in class AbstractExport

getBaseUrl

public String getBaseUrl()

getEstateForUpdate

protected boolean getEstateForUpdate(AgencyEstate estate)
Description copied from class: AbstractExport
Vorbereitung einer Immobilie, bevor diese in den Transfer aufgenommen wird.

Overrides:
getEstateForUpdate in class AbstractExport
Parameters:
estate - zu transferierende Immobilie
Returns:
true, wenn die Immobilie in den Transfer aufgenommen werden kann.

getEstateIdForRemoval

protected String getEstateIdForRemoval(Long estateId,
                                       AgencyExportSummary summary)
Overrides:
getEstateIdForRemoval in class AbstractExport

getName

public String getName()
Specified by:
getName in class AbstractExport

getPublisherMail

public String getPublisherMail()

getTitle

public String getTitle()
Specified by:
getTitle in class AbstractExport

getXmlFileName

public String getXmlFileName()
Overrides:
getXmlFileName in class AbstractXmlExport

isPublicIdUsed

public boolean isPublicIdUsed()

load

public void load(Properties props)
Overrides:
load in class AbstractExport

save

public void save(Properties props)
Overrides:
save in class AbstractExport

setBaseUrl

public void setBaseUrl(String url)

setPublicIdUsed

public void setPublicIdUsed(boolean val)

setPublisherMail

public void setPublisherMail(String val)

supportsIncrementalUpdate

public boolean supportsIncrementalUpdate()
Specified by:
supportsIncrementalUpdate in class AbstractExport


Copyright © 2012 OpenEstate. All Rights Reserved.