|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakartadmin.bl.AdminBaseMgr
com.konakartadmin.bl.AdminPdfMgr
public class AdminPdfMgr
The AdminPdfMgr - for creating various PDFs for the Admin Application
| Nested Class Summary | |
|---|---|
protected class |
AdminPdfMgr.StaticData
|
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log |
protected static java.lang.String |
mutex
|
protected static java.util.Map<java.lang.String,AdminPdfMgr.StaticData> |
staticDataHM
Hash Map that contains the static data |
| Fields inherited from class com.konakartadmin.bl.AdminBaseMgr |
|---|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir |
| Constructor Summary | |
|---|---|
AdminPdfMgr(KKAdminIf eng)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
createPdfDirNameAfterBase(com.konakart.app.PdfOptions options)
Returns the directory name (after the base part) where the PDF file will be generated |
java.lang.String |
createPdfFileNameLastPart(com.konakart.app.PdfOptions options)
For creating a file name for the PDF file to be generated. |
void |
createPDFFromHTML(com.konakart.app.PdfOptions options,
java.lang.String html,
java.lang.String pdfFileName)
Created the PDF file from the specified HTML String |
java.lang.String |
getFullPdfFileName(java.lang.String dirPath,
java.lang.String pdfFileNameAfterBasePath)
For creating a file name for the PDF file to be generated |
com.konakart.app.PdfResult |
getPdf(com.konakart.app.PdfOptions options)
Create the PDF document and return the URL, File name or bytes as defined by the input options. |
java.lang.String |
getPdfFileBasePath()
Get the base path for the PDF files from the configuration parameter. |
java.lang.String |
getUUID()
Returns a UUID to add to the PDF file name to make it unique and hard to guess |
void |
refreshConfigs()
Retrieve some commonly-used properties and set the velocity log file location |
org.xhtmlrenderer.pdf.ITextRenderer |
renderHtml(java.lang.String html)
Render the HTML and return the ITextRenderer object for further processing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
protected static java.lang.String mutex
protected static java.util.Map<java.lang.String,AdminPdfMgr.StaticData> staticDataHM
| Constructor Detail |
|---|
public AdminPdfMgr(KKAdminIf eng)
throws java.lang.Exception
eng - KKAdmin engine
java.lang.Exception| Method Detail |
|---|
public com.konakart.app.PdfResult getPdf(com.konakart.app.PdfOptions options)
throws java.lang.Exception
getPdf in interface AdminPdfMgrIfoptions - the options that define the PDF report to be produced and what is returned from
this interface.
java.lang.Exceptionpublic java.lang.String createPdfDirNameAfterBase(com.konakart.app.PdfOptions options)
options - The AdminPdfOptions that were specified for creating the PDF file
public java.lang.String createPdfFileNameLastPart(com.konakart.app.PdfOptions options)
options - The AdminPdfOptions that were specified for creating the PDF file
public java.lang.String getFullPdfFileName(java.lang.String dirPath,
java.lang.String pdfFileNameAfterBasePath)
dirPath - the directory path for the PDF filespdfFileNameAfterBasePath - The AdminPdfOptions that were specified for creating the PDF file
public java.lang.String getPdfFileBasePath()
throws KKAdminException
KKAdminExceptionpublic java.lang.String getUUID()
public void createPDFFromHTML(com.konakart.app.PdfOptions options,
java.lang.String html,
java.lang.String pdfFileName)
throws java.lang.Exception
options - the AdminPdfOptions options object which might one day be used to affect the PDF
generation if this method is overriden.html - the HTML String to convert into a PDF filepdfFileName - the target pdfFileName
java.lang.Exceptionpublic org.xhtmlrenderer.pdf.ITextRenderer renderHtml(java.lang.String html)
html -
public void refreshConfigs()
throws java.lang.Exception
refreshConfigs in interface AdminPdfMgrIfrefreshConfigs in class AdminBaseMgrjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||