org.paneris.bibliomania
Class BibliomaniaDatabase
java.lang.Object
org.melati.poem.Database
org.melati.poem.generated.PoemDatabaseBase
org.melati.poem.PoemDatabase
org.paneris.bibliomania.generated.BibliomaniaDatabaseBase
org.paneris.bibliomania.BibliomaniaDatabase
- All Implemented Interfaces:
- org.melati.poem.generated.PoemDatabaseTablesBase, org.melati.poem.PoemDatabaseTables, org.melati.poem.transaction.TransactionPool, BibliomaniaDatabaseTables, BibliomaniaDatabaseTablesBase, org.paneris.melati.boards.model.BoardsDatabaseTables, org.paneris.melati.boards.model.generated.BoardsDatabaseTablesBase
public class BibliomaniaDatabase
- extends BibliomaniaDatabaseBase
- implements BibliomaniaDatabaseTables
Nested classes/interfaces inherited from class org.melati.poem.Database |
org.melati.poem.Database.ConnectingException |
Method Summary |
Bookshop[] |
bookshops()
|
void |
connect(java.lang.String name,
java.lang.String dbmsclass,
java.lang.String url,
java.lang.String username,
java.lang.String password,
int maxConnections)
|
boolean |
debug()
|
IndexOther |
fti()
|
java.lang.String |
getBannerURLPath()
|
Bib |
getBib()
|
long |
getBibBookBookshopSearchTimeoutMillis()
|
int |
getBibBookBookshopSearchTimeoutSeconds()
|
java.lang.String |
getBookStockingsCacheDir()
|
int |
getBookStockingsCacheSizeMax()
|
int |
getBookStockingsCheckIntervalDays()
|
long |
getBookStockingsCheckIntervalMillis()
|
boolean |
getBookStockingsInBackground()
|
int |
getBookStockingsOutputStartOffset()
|
java.lang.String |
getCachedContentRootDir()
|
java.lang.String |
getCacheRootURL()
|
org.melati.poem.Capability |
getCanAdminister()
|
java.lang.String |
getConfirmationEmailFrom()
|
org.melati.poem.Capability |
getContentAdditionCapability()
|
java.lang.String |
getContentEncoding()
|
org.melati.poem.Capability |
getContentModificationCapability()
|
java.lang.String |
getContentRootDir()
|
java.lang.String |
getContentStaticRootURL()
|
int |
getDefaultSearchHitsPerText()
|
Section |
getDrama()
|
org.webmacro.Template |
getFootnoteTemplate()
|
java.lang.String |
getHomepageURL()
|
java.lang.String |
getInfoFTIDir()
|
Book |
getMacbeth()
|
java.lang.String |
getOrderEmailFrom()
|
java.lang.String |
getOrderEmailTo()
|
java.lang.String |
getPaginationTexHeader()
|
java.lang.String |
getPasswordReminderFrom()
|
java.lang.String |
getPasswordReminderMessage()
|
org.webmacro.Template |
getPasswordReminderTemplate()
|
SectionGroup |
getReadSectionGroup()
|
org.melati.poem.Capability |
getRegisteredUserCapability()
|
org.melati.poem.Group |
getRegisteredUserGroup()
|
SectionGroup |
getResearchSectionGroup()
|
int |
getSearchHitsPerPage()
|
SectionGroup |
getSearchSectionGroup()
|
Author |
getShakespeare()
|
SectionGroup |
getShopSectionGroup()
|
java.lang.String |
getSmtpServer()
|
java.lang.String |
getStaticRootURL()
|
java.lang.String |
getStratusEmailTo()
|
SectionGroup |
getStudySectionGroup()
|
User |
getTemplateRegisterUser()
|
Currency |
getUKCurrency()
|
java.lang.String |
getUploadDir()
|
java.lang.String |
getUploadURL()
|
org.webmacro.WebMacro |
getWebMacro()
|
java.lang.String |
getWorkspaceDir()
|
IndexOther |
infoFTI()
|
Library |
infoLibrary()
|
boolean |
logSQL()
|
void |
macroexpand(java.io.File from,
java.io.File to,
Unit object)
|
void |
macroexpand(java.io.File from,
java.io.OutputStream o,
Unit object)
|
void |
macroexpand(java.io.Reader i,
java.io.OutputStream o,
Unit object)
|
void |
notifyBookshopSearchStart()
|
void |
notifyBookshopSearchStop()
|
static void |
notifyNewContentFile(java.io.File file)
Hook to be called when content files are created or changed. |
boolean |
okToRunABookshopSearch()
|
java.lang.Integer |
pageFromAnchor(java.lang.String anchor)
|
Pagination |
pagination()
|
void |
setupContext(org.melati.Melati melati,
org.webmacro.Context context,
Unit it)
|
void |
setupContext(org.melati.Melati melati,
org.webmacro.Context context,
Unit it,
java.util.Hashtable extras)
|
void |
templateExpand(org.webmacro.Template template,
java.io.OutputStream o,
Unit object)
|
void |
templateExpand(org.webmacro.Template template,
java.io.OutputStream o,
Unit object,
java.util.Hashtable extras)
|
void |
templateExpandNamed(java.lang.String templateName,
java.io.File to,
Unit object)
|
void |
templateExpandNamed(java.lang.String templateName,
java.io.File to,
Unit object,
java.util.Hashtable extras)
|
void |
writeContentFooter(java.io.OutputStream w,
Unit object,
java.lang.String template)
|
void |
writeContentHeader(java.io.OutputStream w,
Unit object,
java.lang.String template)
|
Methods inherited from class org.paneris.bibliomania.generated.BibliomaniaDatabaseBase |
getAdvertTable, getAttachmentTable, getAttachmentTypeTable, getAuthorTable, getAuthorWebSiteTable, getBoardTable, getBoardTypeTable, getBookFormatTable, getBookshopTable, getBookStockingTable, getBookTable, getCampaignTable, getCampaignUserTable, getCapabilityTable, getChapterTable, getColumnInfoTable, getCountryTable, getCurrencyTable, getDeliveryChargeBandTable, getDeliveryChargeTable, getDownloadEventTable, getDownloadTable, getGroupCapabilityTable, getGroupMembershipTable, getGroupTable, getLayoutTable, getMembershipStatusTable, getMessageTable, getOrderStatusTable, getProductAssociationTable, getProductTable, getPublisherTable, getSectionGroupTable, getSectionTable, getSettingTable, getSexTable, getShopOrderItemTable, getShopOrderTable, getStockingsSearchTable, getSubscriptionTable, getSupplierProductTable, getSupplierTable, getTableCategoryTable, getTableInfoTable, getUserTable |
Methods inherited from class org.melati.poem.Database |
addConstraints, addTableAndCommit, administerCapability, administratorUser, beginExclusiveLock, beginSession, columns, defineTable, deleteTableAndCommit, disconnect, dump, dumpCacheAnalysis, endExclusiveLock, endSession, getCommittedConnection, getDbms, getDisplayName, getDisplayTables, getDisplayTables, getFreeTransactionsCount, getLastQuery, getName, getQueryCount, getTable, getTransactionsCount, givesCapabilitySQL, guestAccessToken, guestUser, hasCapability, inCommittedTransaction, incrementQueryCount, inSession, inSessionAsRoot, isFree, logCommits, poemTransaction, quotedName, redefineTable, referencesTo, referencesTo, setCanAdminister, setCanAdminister, setDisplayName, setLogCommits, setLogSQL, setTransactionsMax, sqlQuery, sqlUpdate, tables, toString, transaction, transactionsMax, trimCache, uncache |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.paneris.bibliomania.generated.BibliomaniaDatabaseTablesBase |
getAdvertTable, getAttachmentTable, getAttachmentTypeTable, getAuthorTable, getAuthorWebSiteTable, getBoardTable, getBoardTypeTable, getBookFormatTable, getBookshopTable, getBookStockingTable, getBookTable, getCampaignTable, getCampaignUserTable, getCapabilityTable, getChapterTable, getColumnInfoTable, getCountryTable, getCurrencyTable, getDeliveryChargeBandTable, getDeliveryChargeTable, getDownloadEventTable, getDownloadTable, getGroupCapabilityTable, getGroupMembershipTable, getGroupTable, getLayoutTable, getMembershipStatusTable, getMessageTable, getOrderStatusTable, getProductAssociationTable, getProductTable, getPublisherTable, getSectionGroupTable, getSectionTable, getSettingTable, getSexTable, getShopOrderItemTable, getShopOrderTable, getStockingsSearchTable, getSubscriptionTable, getSupplierProductTable, getSupplierTable, getTableCategoryTable, getTableInfoTable, getUserTable |
defaultDefaultSearchHitsPerText
public static final int defaultDefaultSearchHitsPerText
- See Also:
- Constant Field Values
defaultSearchHitsPerPage
public static final int defaultSearchHitsPerPage
- See Also:
- Constant Field Values
defaultBookStockingsCheckIntervalDays
public static final int defaultBookStockingsCheckIntervalDays
- See Also:
- Constant Field Values
defaultBibBookBookshopSearchTimeoutSeconds
public static final int defaultBibBookBookshopSearchTimeoutSeconds
- See Also:
- Constant Field Values
defaultBookStockingsCheckConcurrentMax
public static final int defaultBookStockingsCheckConcurrentMax
- See Also:
- Constant Field Values
defaultBookStockingsOutputStartOffset
public static final int defaultBookStockingsOutputStartOffset
- See Also:
- Constant Field Values
defaultBookStockingsCacheSizeMax
public static final int defaultBookStockingsCacheSizeMax
- See Also:
- Constant Field Values
defaultPasswordReminderMessage
public static final java.lang.String defaultPasswordReminderMessage
- See Also:
- Constant Field Values
defaultPasswordReminderFrom
public static final java.lang.String defaultPasswordReminderFrom
- See Also:
- Constant Field Values
defaultOrderEmailFrom
public static final java.lang.String defaultOrderEmailFrom
- See Also:
- Constant Field Values
defaultConfirmationEmailFrom
public static final java.lang.String defaultConfirmationEmailFrom
- See Also:
- Constant Field Values
defaultOrderEmailTo
public static final java.lang.String defaultOrderEmailTo
- See Also:
- Constant Field Values
defaultStratusEmailTo
public static final java.lang.String defaultStratusEmailTo
- See Also:
- Constant Field Values
defaultContentEncoding
public static final java.lang.String defaultContentEncoding
- See Also:
- Constant Field Values
defaultUploadDir
public static final java.lang.String defaultUploadDir
- See Also:
- Constant Field Values
defaultUploadURL
public static final java.lang.String defaultUploadURL
- See Also:
- Constant Field Values
BibliomaniaDatabase
public BibliomaniaDatabase()
BibliomaniaDatabase
public BibliomaniaDatabase(boolean bookStockingsInBackgroundAppropriate)
BibliomaniaDatabase
public BibliomaniaDatabase(boolean bookStockingsInBackgroundAppropriate,
boolean openAuxDBs)
BibliomaniaDatabase
public BibliomaniaDatabase(boolean bookStockingsInBackgroundAppropriate,
boolean openAuxDBs,
java.util.Properties ftiConfig)
logSQL
public boolean logSQL()
- Overrides:
logSQL
in class org.melati.poem.Database
debug
public boolean debug()
getCanAdminister
public org.melati.poem.Capability getCanAdminister()
- Overrides:
getCanAdminister
in class org.melati.poem.Database
connect
public void connect(java.lang.String name,
java.lang.String dbmsclass,
java.lang.String url,
java.lang.String username,
java.lang.String password,
int maxConnections)
- Overrides:
connect
in class org.melati.poem.Database
fti
public IndexOther fti()
infoFTI
public IndexOther infoFTI()
infoLibrary
public Library infoLibrary()
pagination
public Pagination pagination()
getWorkspaceDir
public java.lang.String getWorkspaceDir()
getUploadDir
public java.lang.String getUploadDir()
getUploadURL
public java.lang.String getUploadURL()
getInfoFTIDir
public java.lang.String getInfoFTIDir()
getContentRootDir
public java.lang.String getContentRootDir()
getWebMacro
public org.webmacro.WebMacro getWebMacro()
setupContext
public void setupContext(org.melati.Melati melati,
org.webmacro.Context context,
Unit it,
java.util.Hashtable extras)
setupContext
public final void setupContext(org.melati.Melati melati,
org.webmacro.Context context,
Unit it)
templateExpand
public void templateExpand(org.webmacro.Template template,
java.io.OutputStream o,
Unit object,
java.util.Hashtable extras)
throws org.webmacro.WebMacroException,
java.io.IOException
- Throws:
org.webmacro.WebMacroException
java.io.IOException
templateExpand
public final void templateExpand(org.webmacro.Template template,
java.io.OutputStream o,
Unit object)
throws org.webmacro.WebMacroException,
java.io.IOException
- Throws:
org.webmacro.WebMacroException
java.io.IOException
notifyNewContentFile
public static void notifyNewContentFile(java.io.File file)
throws java.io.IOException
- Hook to be called when content files are created or changed. At the
moment, this makes the file executable (chmod ugo+x),
because we use mod-include (server-side includes) to serve the ad banners,
and Apache will only send a Last-Modified in the header if the
XBitHack option is enabled in httpd.conf and the
x bit is set. For a while we feared that if Apache doesn't send
Last-Modified, Google doesn't index us; that seems not to be
true, but nevertheless sending Last-Modified is a good thing.
- Throws:
java.io.IOException
templateExpandNamed
public void templateExpandNamed(java.lang.String templateName,
java.io.File to,
Unit object,
java.util.Hashtable extras)
throws org.webmacro.WebMacroException,
java.io.IOException
- Throws:
org.webmacro.WebMacroException
java.io.IOException
templateExpandNamed
public final void templateExpandNamed(java.lang.String templateName,
java.io.File to,
Unit object)
throws org.webmacro.WebMacroException,
java.io.IOException
- Throws:
org.webmacro.WebMacroException
java.io.IOException
macroexpand
public void macroexpand(java.io.Reader i,
java.io.OutputStream o,
Unit object)
throws org.webmacro.WebMacroException,
java.io.IOException
- Throws:
org.webmacro.WebMacroException
java.io.IOException
macroexpand
public void macroexpand(java.io.File from,
java.io.OutputStream o,
Unit object)
throws org.webmacro.WebMacroException,
java.io.IOException
- Throws:
org.webmacro.WebMacroException
java.io.IOException
macroexpand
public void macroexpand(java.io.File from,
java.io.File to,
Unit object)
throws org.webmacro.WebMacroException,
java.io.IOException
- Throws:
org.webmacro.WebMacroException
java.io.IOException
writeContentHeader
public void writeContentHeader(java.io.OutputStream w,
Unit object,
java.lang.String template)
throws org.webmacro.WebMacroException,
java.io.IOException
- Throws:
org.webmacro.WebMacroException
java.io.IOException
writeContentFooter
public void writeContentFooter(java.io.OutputStream w,
Unit object,
java.lang.String template)
throws org.webmacro.WebMacroException,
java.io.IOException
- Throws:
org.webmacro.WebMacroException
java.io.IOException
getFootnoteTemplate
public org.webmacro.Template getFootnoteTemplate()
getPasswordReminderMessage
public java.lang.String getPasswordReminderMessage()
getPasswordReminderTemplate
public org.webmacro.Template getPasswordReminderTemplate()
getPasswordReminderFrom
public java.lang.String getPasswordReminderFrom()
getOrderEmailFrom
public java.lang.String getOrderEmailFrom()
getConfirmationEmailFrom
public java.lang.String getConfirmationEmailFrom()
getOrderEmailTo
public java.lang.String getOrderEmailTo()
getStratusEmailTo
public java.lang.String getStratusEmailTo()
getCachedContentRootDir
public java.lang.String getCachedContentRootDir()
getStaticRootURL
public java.lang.String getStaticRootURL()
getContentStaticRootURL
public java.lang.String getContentStaticRootURL()
getBannerURLPath
public java.lang.String getBannerURLPath()
getCacheRootURL
public java.lang.String getCacheRootURL()
getHomepageURL
public java.lang.String getHomepageURL()
getSmtpServer
public java.lang.String getSmtpServer()
getDefaultSearchHitsPerText
public int getDefaultSearchHitsPerText()
getSearchHitsPerPage
public int getSearchHitsPerPage()
getPaginationTexHeader
public java.lang.String getPaginationTexHeader()
getBookStockingsCheckIntervalDays
public int getBookStockingsCheckIntervalDays()
getBookStockingsCheckIntervalMillis
public long getBookStockingsCheckIntervalMillis()
getBibBookBookshopSearchTimeoutSeconds
public int getBibBookBookshopSearchTimeoutSeconds()
getBibBookBookshopSearchTimeoutMillis
public long getBibBookBookshopSearchTimeoutMillis()
getBookStockingsOutputStartOffset
public int getBookStockingsOutputStartOffset()
getBookStockingsCacheDir
public java.lang.String getBookStockingsCacheDir()
getBookStockingsCacheSizeMax
public int getBookStockingsCacheSizeMax()
pageFromAnchor
public java.lang.Integer pageFromAnchor(java.lang.String anchor)
bookshops
public Bookshop[] bookshops()
getReadSectionGroup
public SectionGroup getReadSectionGroup()
getUKCurrency
public Currency getUKCurrency()
getStudySectionGroup
public SectionGroup getStudySectionGroup()
getResearchSectionGroup
public SectionGroup getResearchSectionGroup()
getShopSectionGroup
public SectionGroup getShopSectionGroup()
getSearchSectionGroup
public SectionGroup getSearchSectionGroup()
getRegisteredUserGroup
public org.melati.poem.Group getRegisteredUserGroup()
getRegisteredUserCapability
public org.melati.poem.Capability getRegisteredUserCapability()
getContentModificationCapability
public org.melati.poem.Capability getContentModificationCapability()
getContentAdditionCapability
public org.melati.poem.Capability getContentAdditionCapability()
getTemplateRegisterUser
public User getTemplateRegisterUser()
getBib
public Bib getBib()
notifyBookshopSearchStart
public void notifyBookshopSearchStart()
notifyBookshopSearchStop
public void notifyBookshopSearchStop()
okToRunABookshopSearch
public boolean okToRunABookshopSearch()
getBookStockingsInBackground
public boolean getBookStockingsInBackground()
getContentEncoding
public java.lang.String getContentEncoding()
getShakespeare
public Author getShakespeare()
getDrama
public Section getDrama()
getMacbeth
public Book getMacbeth()
Copyright © 2000-2009 PanEris. All Rights Reserved.