com.openindex.openestate.tool.agency.utils
Class PdfSetup

java.lang.Object
  extended by com.openindex.openestate.tool.agency.utils.PdfSetup

public class PdfSetup
extends Object

PdfSetup.
$Id: PdfSetup.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph

Field Summary
static int ALIGN_CENTER
           
static int ALIGN_JUSTIFY
           
static int ALIGN_LEFT
           
static int ALIGN_RIGHT
           
static String KEY_AREAS
           
static String KEY_BODY_HEAD_BG
           
static String KEY_BODY_HEAD_FG
           
static String KEY_BODY_TEXT_ALIGN
           
static String KEY_BODY_TEXT_BG
           
static String KEY_BODY_TEXT_FG
           
static String KEY_BORDER_COLOR
           
static String KEY_BUILDER
           
static String KEY_ENCRYPTION_ALLOW_ACCESSIBILITY
           
static String KEY_ENCRYPTION_ALLOW_COPYING
           
static String KEY_ENCRYPTION_ALLOW_PRINTING
           
static String KEY_ENCRYPTION_ENABLED
           
static String KEY_ENCRYPTION_PASSWORD
           
static String KEY_FOOTER_ALIGNMENT
           
static String KEY_FOOTER_TEXT_FG
           
static String KEY_FOOTER_VISIBLE
           
static String KEY_HEADER_LOGO_VISIBLE
           
static String KEY_HEADER_TEXT_CUSTOM
           
static String KEY_HEADER_TEXT_FG
           
static String KEY_HEADER_TEXT_LINE1
           
static String KEY_HEADER_TEXT_LINE2
           
static String KEY_HEADER_TEXT_LINE3
           
static String KEY_HEADER_VISIBLE
           
static String KEY_ID
           
static String KEY_IMAGE_GALLERY
           
static String KEY_IMAGE_RESOLUTION
           
static String KEY_IMAGE_SEPARATED_PANORAMAS
           
static String KEY_IMAGE_SEPARATED_PLANS
           
static String KEY_LANDSCAPE
           
static String KEY_LOCALE
           
static String KEY_NAME
           
static String KEY_NUMBERED_HEADLINES
           
static String KEY_PUBLISH_ADRESS
           
static String KEY_PUBLISH_CONTACT
           
static String KEY_TEMPLATE
           
static String KEY_TERMS_TEXT_SIZE
           
static String KEY_TERMS_VISIBLE
           
static int PUBLISH_ALWAYS
           
static int PUBLISH_DEFAULT
           
static int PUBLISH_NEVER
           
 
Constructor Summary
PdfSetup(Properties props)
           
PdfSetup(String builderName)
           
 
Method Summary
 PdfBuilder createBuilder()
           
 int getAddressPublishing()
           
 String[] getAreas()
           
 Color getBodyHeadBackground()
           
 Color getBodyHeadForeground()
           
 int getBodyTextAlignment()
           
 Color getBodyTextBackground()
           
 Color getBodyTextForeground()
           
 Color getBorderColor()
           
 String getBuilder()
           
 List<Integer> getContactPublishings()
           
 String getEncryptionPassword()
           
 int getFooterAlignment()
           
 Color getFooterTextForeground()
           
 String getHeaderTextCustomLine1()
           
 String getHeaderTextCustomLine2()
           
 String getHeaderTextCustomLine3()
           
 Color getHeaderTextForeground()
           
 Long getId()
           
 Integer getImageGallery()
           
 Integer getImageResolution()
           
 Boolean getImageSeparatedPanoramas()
           
 Boolean getImageSeparatedPlans()
           
 String getLocale()
           
 String getName()
           
 Properties getProperties()
           
 Integer getResolution()
          Deprecated. 
 File getTemporaryTemplate()
           
 Integer getTermsTextSize()
           
 boolean isContactPublished(int type)
           
 boolean isEncryptionAccessibilityAllowed()
           
 boolean isEncryptionCopyingAllowed()
           
 boolean isEncryptionEnabled()
           
 boolean isEncryptionPrintingAllowed()
           
 boolean isFooterVisible()
           
 boolean isHeaderLogoVisible()
           
 boolean isHeaderTextCustom()
           
 boolean isHeaderVisible()
           
 boolean isLandscapeFormat()
           
 boolean isNumberedHeadlines()
           
 boolean isTemplateUsed()
           
 boolean isTermsVisible()
           
 void load(Properties props)
           
static Long[] loadIds()
           
static Long[] loadIds(org.xmldb.api.base.Collection pdfCollection)
           
static PdfSetup loadSetup(long id)
           
static PdfSetup loadSetup(long id, org.xmldb.api.base.Collection pdfCollection)
           
static PdfSetup[] loadSetups()
           
static PdfSetup[] loadSetups(org.xmldb.api.base.Collection pdfCollection)
           
static org.xmldb.api.modules.BinaryResource loadTemplate(long setupId)
           
static org.xmldb.api.modules.BinaryResource loadTemplate(long setupId, org.xmldb.api.base.Collection pdfCollection)
           
static InputStream loadTemplateAsStream(long setupId)
           
static InputStream loadTemplateAsStream(long setupId, org.xmldb.api.base.Collection pdfCollection)
           
static void removeSetup(long id)
           
static void removeSetup(long id, org.xmldb.api.base.Collection pdfCollection)
           
 void save(Properties props)
           
 void setAddressPublishing(Integer addressPublishing)
           
 void setAreas(String[] areas)
           
 void setBodyHeadBackground(Color bodyHeadBackground)
           
 void setBodyHeadForeground(Color bodyHeadForeground)
           
 void setBodyTextAlignment(Integer bodyTextAlignment)
           
 void setBodyTextBackground(Color bodyTextBackground)
           
 void setBodyTextForeground(Color bodyTextForeground)
           
 void setBorderColor(Color borderColor)
           
 void setBuilder(String builder)
           
 void setEncryptionAccessibilityAllowed(boolean encryptionAccessibilityAllowed)
           
 void setEncryptionCopyingAllowed(boolean encryptionCopyingAllowed)
           
 void setEncryptionEnabled(boolean encryptionEnabled)
           
 void setEncryptionPassword(String encryptionPassword)
           
 void setEncryptionPrintingAllowed(boolean encryptionPrintingAllowed)
           
 void setFooterAlignment(Integer footerAlignment)
           
 void setFooterTextForeground(Color footerTextForeground)
           
 void setFooterVisible(boolean footerVisible)
           
 void setHeaderLogoVisible(boolean headerLogoVisible)
           
 void setHeaderTextCustom(boolean headerTextCustom)
           
 void setHeaderTextCustomLine1(String headerTextCustomLine1)
           
 void setHeaderTextCustomLine2(String headerTextCustomLine2)
           
 void setHeaderTextCustomLine3(String headerTextCustomLine3)
           
 void setHeaderTextForeground(Color headerTextForeground)
           
 void setHeaderVisible(boolean headerVisible)
           
 void setId(Long id)
           
 void setImageGallery(Integer imageGallery)
           
 void setImageResolution(Integer imageResolution)
           
 void setImageSeparatedPanoramas(Boolean imageSeparatedPanoramas)
           
 void setImageSeparatedPlans(Boolean imageSeparatedPlans)
           
 void setLandscapeFormat(boolean landscapeFormat)
           
 void setLocale(String locale)
           
 void setName(String name)
           
 void setNumberedHeadlines(boolean numberedHeadlines)
           
 void setTemplateUsed(boolean templateUsed)
           
 void setTemporaryTemplate(File temporaryTemplate)
           
 void setTermsTextSize(Integer termsTextSize)
           
 void setTermsVisible(boolean termsVisible)
           
static Long storeSetup(PdfSetup setup)
           
static Long storeSetup(PdfSetup setup, org.xmldb.api.base.Collection pdfCollection)
           
static void storeTemplate(long setupId, File pdfTemplate)
           
static void storeTemplate(long setupId, File pdfTemplate, org.xmldb.api.base.Collection pdfCollection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIGN_LEFT

public static final int ALIGN_LEFT
See Also:
Constant Field Values

ALIGN_CENTER

public static final int ALIGN_CENTER
See Also:
Constant Field Values

ALIGN_RIGHT

public static final int ALIGN_RIGHT
See Also:
Constant Field Values

ALIGN_JUSTIFY

public static final int ALIGN_JUSTIFY
See Also:
Constant Field Values

PUBLISH_DEFAULT

public static final int PUBLISH_DEFAULT
See Also:
Constant Field Values

PUBLISH_NEVER

public static final int PUBLISH_NEVER
See Also:
Constant Field Values

PUBLISH_ALWAYS

public static final int PUBLISH_ALWAYS
See Also:
Constant Field Values

KEY_BODY_HEAD_FG

public static final String KEY_BODY_HEAD_FG
See Also:
Constant Field Values

KEY_BODY_HEAD_BG

public static final String KEY_BODY_HEAD_BG
See Also:
Constant Field Values

KEY_BODY_TEXT_BG

public static final String KEY_BODY_TEXT_BG
See Also:
Constant Field Values

KEY_BODY_TEXT_FG

public static final String KEY_BODY_TEXT_FG
See Also:
Constant Field Values

KEY_BODY_TEXT_ALIGN

public static final String KEY_BODY_TEXT_ALIGN
See Also:
Constant Field Values

KEY_BORDER_COLOR

public static final String KEY_BORDER_COLOR
See Also:
Constant Field Values

KEY_BUILDER

public static final String KEY_BUILDER
See Also:
Constant Field Values

KEY_FOOTER_ALIGNMENT

public static final String KEY_FOOTER_ALIGNMENT
See Also:
Constant Field Values

KEY_FOOTER_TEXT_FG

public static final String KEY_FOOTER_TEXT_FG
See Also:
Constant Field Values

KEY_FOOTER_VISIBLE

public static final String KEY_FOOTER_VISIBLE
See Also:
Constant Field Values

KEY_HEADER_LOGO_VISIBLE

public static final String KEY_HEADER_LOGO_VISIBLE
See Also:
Constant Field Values

KEY_HEADER_TEXT_CUSTOM

public static final String KEY_HEADER_TEXT_CUSTOM
See Also:
Constant Field Values

KEY_HEADER_TEXT_FG

public static final String KEY_HEADER_TEXT_FG
See Also:
Constant Field Values

KEY_HEADER_TEXT_LINE1

public static final String KEY_HEADER_TEXT_LINE1
See Also:
Constant Field Values

KEY_HEADER_TEXT_LINE2

public static final String KEY_HEADER_TEXT_LINE2
See Also:
Constant Field Values

KEY_HEADER_TEXT_LINE3

public static final String KEY_HEADER_TEXT_LINE3
See Also:
Constant Field Values

KEY_HEADER_VISIBLE

public static final String KEY_HEADER_VISIBLE
See Also:
Constant Field Values

KEY_IMAGE_GALLERY

public static final String KEY_IMAGE_GALLERY
See Also:
Constant Field Values

KEY_IMAGE_RESOLUTION

public static final String KEY_IMAGE_RESOLUTION
See Also:
Constant Field Values

KEY_IMAGE_SEPARATED_PLANS

public static final String KEY_IMAGE_SEPARATED_PLANS
See Also:
Constant Field Values

KEY_IMAGE_SEPARATED_PANORAMAS

public static final String KEY_IMAGE_SEPARATED_PANORAMAS
See Also:
Constant Field Values

KEY_ID

public static final String KEY_ID
See Also:
Constant Field Values

KEY_LANDSCAPE

public static final String KEY_LANDSCAPE
See Also:
Constant Field Values

KEY_LOCALE

public static final String KEY_LOCALE
See Also:
Constant Field Values

KEY_NAME

public static final String KEY_NAME
See Also:
Constant Field Values

KEY_TEMPLATE

public static final String KEY_TEMPLATE
See Also:
Constant Field Values

KEY_TERMS_TEXT_SIZE

public static final String KEY_TERMS_TEXT_SIZE
See Also:
Constant Field Values

KEY_TERMS_VISIBLE

public static final String KEY_TERMS_VISIBLE
See Also:
Constant Field Values

KEY_NUMBERED_HEADLINES

public static final String KEY_NUMBERED_HEADLINES
See Also:
Constant Field Values

KEY_PUBLISH_ADRESS

public static final String KEY_PUBLISH_ADRESS
See Also:
Constant Field Values

KEY_PUBLISH_CONTACT

public static final String KEY_PUBLISH_CONTACT
See Also:
Constant Field Values

KEY_AREAS

public static final String KEY_AREAS
See Also:
Constant Field Values

KEY_ENCRYPTION_ENABLED

public static final String KEY_ENCRYPTION_ENABLED
See Also:
Constant Field Values

KEY_ENCRYPTION_PASSWORD

public static final String KEY_ENCRYPTION_PASSWORD
See Also:
Constant Field Values

KEY_ENCRYPTION_ALLOW_COPYING

public static final String KEY_ENCRYPTION_ALLOW_COPYING
See Also:
Constant Field Values

KEY_ENCRYPTION_ALLOW_PRINTING

public static final String KEY_ENCRYPTION_ALLOW_PRINTING
See Also:
Constant Field Values

KEY_ENCRYPTION_ALLOW_ACCESSIBILITY

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

PdfSetup

public PdfSetup(String builderName)

PdfSetup

public PdfSetup(Properties props)
Method Detail

createBuilder

public PdfBuilder createBuilder()

getAddressPublishing

public int getAddressPublishing()

getAreas

public String[] getAreas()

getBodyHeadBackground

public Color getBodyHeadBackground()

getBodyHeadForeground

public Color getBodyHeadForeground()

getBodyTextAlignment

public int getBodyTextAlignment()

getBodyTextBackground

public Color getBodyTextBackground()

getBodyTextForeground

public Color getBodyTextForeground()

getBorderColor

public Color getBorderColor()

getBuilder

public String getBuilder()

getContactPublishings

public List<Integer> getContactPublishings()

getEncryptionPassword

public String getEncryptionPassword()

getFooterAlignment

public int getFooterAlignment()

getFooterTextForeground

public Color getFooterTextForeground()

getHeaderTextCustomLine1

public String getHeaderTextCustomLine1()

getHeaderTextCustomLine2

public String getHeaderTextCustomLine2()

getHeaderTextCustomLine3

public String getHeaderTextCustomLine3()

getHeaderTextForeground

public Color getHeaderTextForeground()

getId

public Long getId()

getImageGallery

public Integer getImageGallery()

getImageResolution

public Integer getImageResolution()

getImageSeparatedPanoramas

public Boolean getImageSeparatedPanoramas()

getImageSeparatedPlans

public Boolean getImageSeparatedPlans()

getLocale

public String getLocale()

getName

public String getName()

getProperties

public Properties getProperties()

getResolution

@Deprecated
public Integer getResolution()
Deprecated. 


getTemporaryTemplate

public File getTemporaryTemplate()

getTermsTextSize

public Integer getTermsTextSize()

isContactPublished

public boolean isContactPublished(int type)

isEncryptionAccessibilityAllowed

public boolean isEncryptionAccessibilityAllowed()

isEncryptionCopyingAllowed

public boolean isEncryptionCopyingAllowed()

isEncryptionEnabled

public boolean isEncryptionEnabled()

isEncryptionPrintingAllowed

public boolean isEncryptionPrintingAllowed()

isFooterVisible

public boolean isFooterVisible()

isHeaderLogoVisible

public boolean isHeaderLogoVisible()

isHeaderTextCustom

public boolean isHeaderTextCustom()

isHeaderVisible

public boolean isHeaderVisible()

isLandscapeFormat

public boolean isLandscapeFormat()

isNumberedHeadlines

public boolean isNumberedHeadlines()

isTemplateUsed

public boolean isTemplateUsed()

isTermsVisible

public boolean isTermsVisible()

load

public final void load(Properties props)

loadIds

public static Long[] loadIds()
                      throws ImmoToolDbException
Throws:
ImmoToolDbException

loadIds

public static Long[] loadIds(org.xmldb.api.base.Collection pdfCollection)
                      throws ImmoToolDbException
Throws:
ImmoToolDbException

loadSetup

public static PdfSetup loadSetup(long id)
                          throws ImmoToolDbException
Throws:
ImmoToolDbException

loadSetup

public static PdfSetup loadSetup(long id,
                                 org.xmldb.api.base.Collection pdfCollection)
                          throws ImmoToolDbException
Throws:
ImmoToolDbException

loadSetups

public static PdfSetup[] loadSetups()
                             throws ImmoToolDbException
Throws:
ImmoToolDbException

loadSetups

public static PdfSetup[] loadSetups(org.xmldb.api.base.Collection pdfCollection)
                             throws ImmoToolDbException
Throws:
ImmoToolDbException

loadTemplate

public static org.xmldb.api.modules.BinaryResource loadTemplate(long setupId)
                                                         throws ImmoToolDbException
Throws:
ImmoToolDbException

loadTemplate

public static org.xmldb.api.modules.BinaryResource loadTemplate(long setupId,
                                                                org.xmldb.api.base.Collection pdfCollection)
                                                         throws ImmoToolDbException
Throws:
ImmoToolDbException

loadTemplateAsStream

public static InputStream loadTemplateAsStream(long setupId)
                                        throws ImmoToolDbException,
                                               org.xmldb.api.base.XMLDBException
Throws:
ImmoToolDbException
org.xmldb.api.base.XMLDBException

loadTemplateAsStream

public static InputStream loadTemplateAsStream(long setupId,
                                               org.xmldb.api.base.Collection pdfCollection)
                                        throws ImmoToolDbException,
                                               org.xmldb.api.base.XMLDBException
Throws:
ImmoToolDbException
org.xmldb.api.base.XMLDBException

removeSetup

public static void removeSetup(long id)
                        throws ImmoToolDbException
Throws:
ImmoToolDbException

removeSetup

public static void removeSetup(long id,
                               org.xmldb.api.base.Collection pdfCollection)
                        throws ImmoToolDbException
Throws:
ImmoToolDbException

save

public void save(Properties props)

setAddressPublishing

public void setAddressPublishing(Integer addressPublishing)

setAreas

public void setAreas(String[] areas)

setBodyHeadBackground

public void setBodyHeadBackground(Color bodyHeadBackground)

setBodyHeadForeground

public void setBodyHeadForeground(Color bodyHeadForeground)

setBodyTextAlignment

public void setBodyTextAlignment(Integer bodyTextAlignment)

setBodyTextBackground

public void setBodyTextBackground(Color bodyTextBackground)

setBodyTextForeground

public void setBodyTextForeground(Color bodyTextForeground)

setBorderColor

public void setBorderColor(Color borderColor)

setBuilder

public void setBuilder(String builder)

setEncryptionAccessibilityAllowed

public void setEncryptionAccessibilityAllowed(boolean encryptionAccessibilityAllowed)

setEncryptionCopyingAllowed

public void setEncryptionCopyingAllowed(boolean encryptionCopyingAllowed)

setEncryptionEnabled

public void setEncryptionEnabled(boolean encryptionEnabled)

setEncryptionPassword

public void setEncryptionPassword(String encryptionPassword)

setEncryptionPrintingAllowed

public void setEncryptionPrintingAllowed(boolean encryptionPrintingAllowed)

setFooterAlignment

public void setFooterAlignment(Integer footerAlignment)

setFooterTextForeground

public void setFooterTextForeground(Color footerTextForeground)

setFooterVisible

public void setFooterVisible(boolean footerVisible)

setHeaderLogoVisible

public void setHeaderLogoVisible(boolean headerLogoVisible)

setHeaderTextCustom

public void setHeaderTextCustom(boolean headerTextCustom)

setHeaderTextCustomLine1

public void setHeaderTextCustomLine1(String headerTextCustomLine1)

setHeaderTextCustomLine2

public void setHeaderTextCustomLine2(String headerTextCustomLine2)

setHeaderTextCustomLine3

public void setHeaderTextCustomLine3(String headerTextCustomLine3)

setHeaderTextForeground

public void setHeaderTextForeground(Color headerTextForeground)

setHeaderVisible

public void setHeaderVisible(boolean headerVisible)

setId

public void setId(Long id)

setImageGallery

public void setImageGallery(Integer imageGallery)

setImageResolution

public void setImageResolution(Integer imageResolution)

setImageSeparatedPanoramas

public void setImageSeparatedPanoramas(Boolean imageSeparatedPanoramas)

setImageSeparatedPlans

public void setImageSeparatedPlans(Boolean imageSeparatedPlans)

setLandscapeFormat

public void setLandscapeFormat(boolean landscapeFormat)

setLocale

public final void setLocale(String locale)

setName

public final void setName(String name)

setNumberedHeadlines

public void setNumberedHeadlines(boolean numberedHeadlines)

setTemplateUsed

public void setTemplateUsed(boolean templateUsed)

setTemporaryTemplate

public void setTemporaryTemplate(File temporaryTemplate)

setTermsTextSize

public void setTermsTextSize(Integer termsTextSize)

setTermsVisible

public void setTermsVisible(boolean termsVisible)

storeSetup

public static Long storeSetup(PdfSetup setup)
                       throws ImmoToolDbException
Throws:
ImmoToolDbException

storeSetup

public static Long storeSetup(PdfSetup setup,
                              org.xmldb.api.base.Collection pdfCollection)
                       throws ImmoToolDbException
Throws:
ImmoToolDbException

storeTemplate

public static void storeTemplate(long setupId,
                                 File pdfTemplate)
                          throws ImmoToolDbException
Throws:
ImmoToolDbException

storeTemplate

public static void storeTemplate(long setupId,
                                 File pdfTemplate,
                                 org.xmldb.api.base.Collection pdfCollection)
                          throws ImmoToolDbException
Throws:
ImmoToolDbException


Copyright © 2012 OpenEstate. All Rights Reserved.