Class AbstractExpose
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,String>
-
- com.openindex.openestate.tool.agency.expose.AbstractExpose
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,String>
- Direct Known Subclasses:
AbstractPdfExpose
public abstract class AbstractExpose extends HashMap<String,String>
AbstractExpose.- Author:
- Andreas Rudolph
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractExpose.HorizontalAlignstatic classAbstractExpose.Orientation-
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>
-
-
Field Summary
Fields Modifier and Type Field Description protected ConnectiondbConnectionHolds connection to the project database during expose generation.protected DbAgencyExtensiondbExtensionHolds extension to agency database during expose generation.protected Map<Long,String>dbLanguageMapHolds current languages during expose generation.protected LocalelocaleHolds the configured language during expose generation.protected DatenowHolds beginning time of expose generation.protected AbstractExpose.OrientationorientationHolds the configured page-orientation during expose generation.
-
Constructor Summary
Constructors Constructor Description AbstractExpose()
-
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
equals, hashCode, toString
-
-
-
-
Field Detail
-
dbConnection
protected Connection dbConnection
Holds connection to the project database during expose generation.
-
dbExtension
protected DbAgencyExtension dbExtension
Holds extension to agency database during expose generation.
-
dbLanguageMap
protected Map<Long,String> dbLanguageMap
Holds current languages during expose generation.
-
now
protected Date now
Holds beginning time of expose generation.
-
locale
protected Locale locale
Holds the configured language during expose generation.
-
orientation
protected AbstractExpose.Orientation orientation
Holds the configured page-orientation during expose generation.
-
-
Method Detail
-
build
protected abstract void build(OutputStream output) throws IOException, com.lowagie.text.DocumentException
- Throws:
IOExceptioncom.lowagie.text.DocumentException
-
createForm
public abstract AbstractExposePanel createForm()
-
finish
protected void finish()
-
generate
public final void generate(long estateId, ImmoToolProject project, OutputStream output) throws IOException, com.lowagie.text.DocumentException, SQLException- Throws:
IOExceptioncom.lowagie.text.DocumentExceptionSQLException
-
generate
public final void generate(DbAgencyObject estate, ImmoToolProject project, OutputStream output) throws IOException, com.lowagie.text.DocumentException, SQLException
- Throws:
IOExceptioncom.lowagie.text.DocumentExceptionSQLException
-
generate
public final void generate(long estateId, ImmoToolProject project, Connection dbConnection, OutputStream output) throws IOException, com.lowagie.text.DocumentException, SQLException- Throws:
IOExceptioncom.lowagie.text.DocumentExceptionSQLException
-
generate
public final void generate(DbAgencyObject estate, ImmoToolProject project, Connection dbConnection, OutputStream output) throws IOException, com.lowagie.text.DocumentException, SQLException
- Throws:
IOExceptioncom.lowagie.text.DocumentExceptionSQLException
-
getAgent
protected ImmoToolAgent getAgent()
-
getAgentLogo
protected File getAgentLogo()
-
getAgentLogoImage
protected BufferedImage getAgentLogoImage()
-
getEstateContact
protected DbAgencyContact getEstateContact()
-
getEstateFiles
protected DbFile[] getEstateFiles()
-
getEstateFileDownload
protected File getEstateFileDownload(DbFile file) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getEstateLinks
protected DbLink[] getEstateLinks()
-
getEstateObject
protected DbAgencyObject getEstateObject()
-
getExpose
public static AbstractExpose getExpose(String name)
-
getExposes
public static Map<String,AbstractExpose> getExposes()
-
getExposeFile
protected File getExposeFile(long fileId)
-
getLocale
public Locale getLocale()
-
getName
public abstract String getName()
-
getOrientation
public AbstractExpose.Orientation getOrientation()
-
getPublishAddress
public PublishingMode getPublishAddress()
-
getPublishFiles
public PublishingMode getPublishFiles()
-
getPublishLinks
public PublishingMode getPublishLinks()
-
getPublishPrices
public PublishingMode getPublishPrices()
-
getResolution
public int getResolution()
-
getSupportedLocales
public static Locale[] getSupportedLocales()
-
getTemplateFile
protected File getTemplateFile()
-
getTemplateId
public long getTemplateId()
-
getTemporaryTemplateFile
public File getTemporaryTemplateFile()
-
getTitle
public abstract String getTitle()
-
init
protected void init(ImmoToolProject project, Connection dbConnection) throws SQLException
- Throws:
SQLException
-
initDefaults
public void initDefaults()
-
isShowContact
public boolean isShowContact()
-
isTemplate
public boolean isTemplate()
-
saveToDatabase
public void saveToDatabase(DbAgencyExpose expose, Connection c, DbAgencyExposesHandler exposeHandler)
-
setLocale
public void setLocale(Locale val)
-
setOrientation
public void setOrientation(AbstractExpose.Orientation val)
-
setPublishAddress
public void setPublishAddress(PublishingMode val)
-
setPublishFiles
public void setPublishFiles(PublishingMode val)
-
setPublishLinks
public void setPublishLinks(PublishingMode val)
-
setPublishPrices
public void setPublishPrices(PublishingMode val)
-
setResolution
public void setResolution(int val)
-
setShowContact
public void setShowContact(boolean val)
-
setTemplate
public void setTemplate(boolean val)
-
setTemplateId
public void setTemplateId(long val)
-
setTemporaryTemplate
public void setTemporaryTemplate(File val)
-
-