Class ExportProcess
- java.lang.Object
-
- com.openindex.openestate.tool.agency.export.ExportProcess
-
- Direct Known Subclasses:
AbstractPhpFormat.PhpExportProcess
public class ExportProcess extends Object
ExportProcess.- Author:
- Andreas Rudolph
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ExportProcess.PreparationTask
class
ExportProcess.TransportTask
-
Constructor Summary
Constructors Constructor Description ExportProcess()
-
Method Summary
-
-
-
Method Detail
-
buildTransfer
protected TransferImpl buildTransfer(Connection dbConnection, ExportContext context, ImmoToolTask.Callback callback) throws IOException, SQLException
- Throws:
IOException
SQLException
-
buildTransferAgency
protected TransferAgencyImpl buildTransferAgency(Connection dbConnection, ExportContext context, ImmoToolTask.Callback callback) throws IOException, SQLException
- Throws:
IOException
SQLException
-
buildTransferAgencyContact
protected AgentContactImpl buildTransferAgencyContact(Connection dbConnection, DbContact contact, ExportContext context, ImmoToolTask.Callback callback)
-
buildTransferAgencyObject
protected EstateImpl buildTransferAgencyObject(Connection dbConnection, ExportEntry entry, ExportContext context, String[] supportedMimeTypes, ImmoToolTask.Callback callback) throws IOException, AbstractFormat.NotExportableException
-
convertImage
protected final BufferedImage convertImage(File imageFile, ExportContext context) throws IOException
- Throws:
IOException
-
convertImage
protected final BufferedImage convertImage(InputStream imageInputStream, ExportContext context) throws IOException
- Throws:
IOException
-
convertImage
protected BufferedImage convertImage(BufferedImage img, ExportContext context)
-
compress
protected File compress(AbstractFormat.Compression c, String archiveName, File workDirectory) throws IOException
- Throws:
IOException
-
doPrepare
protected File doPrepare(TransferImpl transfer, ExportContext context, ImmoToolTask.Callback callback) throws IOException, SQLException, CancellationException
-
doTransport
protected void doTransport(File exportFile, ExportContext context, ImmoToolTask.Callback callback) throws IOException, CancellationException
- Throws:
IOException
CancellationException
-
getPreparedExportFile
protected File getPreparedExportFile()
-
initWorkDir
protected void initWorkDir(File workDir) throws IOException
- Throws:
IOException
-
prepare
public final ExportProcess.PreparationTask prepare(ExportContext context)
-
setPreparedExportFile
protected void setPreparedExportFile(File preparedExportFile)
-
storeAttachment
protected File storeAttachment(Connection dbConnection, EstateAttachmentImpl attachment, File targetDir, ExportContext context, String[] supportedMimeTypes) throws SQLException, IOException
- Throws:
SQLException
IOException
-
transport
public final ExportProcess.TransportTask transport(ExportContext context)
-
-