org.enhydra.snapperPreviewer
Class Previewer
java.lang.Object
com.lutris.appserver.server.StandardApplication
org.enhydra.snapperPreviewer.Previewer
- All Implemented Interfaces:
- com.lutris.appserver.server.Application
public class Previewer
- extends com.lutris.appserver.server.StandardApplication
The application object.
Application-wide data would go here.
- Author:
- Milic Djordje, Milin Radivoj
Nested classes/interfaces inherited from class com.lutris.appserver.server.StandardApplication |
com.lutris.appserver.server.StandardApplication.ContextMBean |
Fields inherited from class com.lutris.appserver.server.StandardApplication |
appConfigMBean, appName, config, contextMBean, data, databaseManager, defaultUrl, jivanFactory, logChannel, logger, loggerSys, postProcessingManager, preProcessingManager, presentationManager, presentationManagerMBean, sendCookieForNewSession, server, sessionManager, sessionManagerMBean, state, xmlcFactory |
Fields inherited from interface com.lutris.appserver.server.Application |
DEAD, HALTED, INCOMPLETE, RUNNING, STOPPED |
Methods inherited from class com.lutris.appserver.server.StandardApplication |
createDatabaseManager, createPostProcessingManager, createPreProcessingManager, createSession, createSessionManager, encodeUrl, encodeUrl, ensureSession, getConfig, getDatabaseManager, getHttpPresentationManager, getJivanFactory, getLogChannel, getName, getSessionManager, getState, getXMLCFactory, initDodsAsyncCaches, initDodsAsyncCaches, initializeNewSession, printCopyrightHeader, requestPostProcessor, restartup, servletRequestPreprocessor, setCookieForNewSession, setHttpPresentationManager, setJivanFactory, setLogChannel, setName, setXMLCFactory, shutdownWithoutMBeanUnRegistration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
version
protected static java.lang.String version
siteConfFile
protected static java.lang.String siteConfFile
documentGroupConfFile
protected static java.lang.String documentGroupConfFile
pathOfConvertedFiles
protected static java.lang.String pathOfConvertedFiles
previewTempFoder
protected static java.lang.String previewTempFoder
toReadConvertedFile
protected static boolean toReadConvertedFile
reReadConfigFilesEveryMinutes
protected static int reReadConfigFilesEveryMinutes
timeToSleep
protected static long timeToSleep
languageTemplatePath
protected static java.lang.String languageTemplatePath
fontsPath
protected static java.lang.String fontsPath
PDFDocument
protected static PDDocument PDFDocument
PDFDocumentHasText
protected static boolean PDFDocumentHasText
Previewer
public Previewer()
startup
public void startup(com.lutris.util.Config appConfig)
throws com.lutris.appserver.server.ApplicationException
- Specified by:
startup
in interface com.lutris.appserver.server.Application
- Overrides:
startup
in class com.lutris.appserver.server.StandardApplication
- Throws:
com.lutris.appserver.server.ApplicationException
requestPreprocessor
public boolean requestPreprocessor(com.lutris.appserver.server.httpPresentation.HttpPresentationComms comms)
throws java.lang.Exception
- Specified by:
requestPreprocessor
in interface com.lutris.appserver.server.Application
- Overrides:
requestPreprocessor
in class com.lutris.appserver.server.StandardApplication
- Throws:
java.lang.Exception
shutdown
public void shutdown()
- Specified by:
shutdown
in interface com.lutris.appserver.server.Application
- Overrides:
shutdown
in class com.lutris.appserver.server.StandardApplication
toHtml
public java.lang.String toHtml()
- Overrides:
toHtml
in class com.lutris.appserver.server.StandardApplication
getXslDirectory
public static java.lang.String getXslDirectory()
getIndexDir
public static java.lang.String getIndexDir()
getOutputFileFormat
public static java.lang.String getOutputFileFormat()
getPictureColorNumber
public static int getPictureColorNumber()
getUseGrayFilter
public static boolean getUseGrayFilter()
getPreviewFilesInContainer
public static boolean getPreviewFilesInContainer()
getInitialImagePixelNumber
public static int getInitialImagePixelNumber()
getInitialPDFPixelNumber
public static int getInitialPDFPixelNumber()
getMaxPixelNumber
public static int getMaxPixelNumber()
getFilesInContainerNumber
public static int getFilesInContainerNumber()
logDebug
public static void logDebug(java.lang.String message)
logInfo
public static void logInfo(java.lang.String message)
logWarrning
public static void logWarrning(java.lang.String message)
logError
public static void logError(java.lang.String message)
logAccess
public static void logAccess(java.lang.String message)
logAccessDebug
public static void logAccessDebug(java.lang.String message)
isRelitive
public static boolean isRelitive()
getConverterClassNames
public static java.util.Properties getConverterClassNames()
pathOfConvertedFiles
public static java.lang.String pathOfConvertedFiles()
toReadConvertedFile
public static boolean toReadConvertedFile()
getReReadConfigFilesEveryMinutes
public static int getReReadConfigFilesEveryMinutes()
getTimeToSleep
public static long getTimeToSleep()
getWord2007HTMLTransformationPath
public static java.lang.String getWord2007HTMLTransformationPath()
getWord2007TextTransformationPath
public static java.lang.String getWord2007TextTransformationPath()
getExcel2007HTMLTransformationPath
public static java.lang.String getExcel2007HTMLTransformationPath()
getExcel2007TextTransformationPath
public static java.lang.String getExcel2007TextTransformationPath()
getPowerPoint2007HTMLTransformationPath
public static java.lang.String getPowerPoint2007HTMLTransformationPath()
getPowerPoint2007TextTransformationPath
public static java.lang.String getPowerPoint2007TextTransformationPath()
getTimeLimit
public static long getTimeLimit()
getContainerFilesPreviewLimit
public static int getContainerFilesPreviewLimit()
setContainerFilesPreviewLimit
public static void setContainerFilesPreviewLimit(int containerFilesPreviewLimit)
getTranslatorConnectionString
public static java.lang.String getTranslatorConnectionString()
setTranslatorConnectionString
public static void setTranslatorConnectionString(java.lang.String translatorConnectionString)
getTranslatorContentEndString
public static java.lang.String getTranslatorContentEndString()
setTranslatorContentEndString
public static void setTranslatorContentEndString(java.lang.String translatorContentEndString)
getTranslatorContentStartString
public static java.lang.String getTranslatorContentStartString()
setTranslatorContentStartString
public static void setTranslatorContentStartString(java.lang.String translatorContentStartString)
getTranslatorContentString
public static java.lang.String getTranslatorContentString()
setTranslatorContentString
public static void setTranslatorContentString(java.lang.String translatorContentString)
getTranslatorLangpairString
public static java.lang.String getTranslatorLangpairString()
setTranslatorLangpairString
public static void setTranslatorLangpairString(java.lang.String translatorLangpairString)
getExcel2007HTMLTemplates
public static javax.xml.transform.Templates getExcel2007HTMLTemplates()
setExcel2007HTMLTemplates
public static void setExcel2007HTMLTemplates(javax.xml.transform.Templates excel2007HTMLTransformer)
getExcel2007TextTemplates
public static javax.xml.transform.Templates getExcel2007TextTemplates()
setExcel2007TextTemplates
public static void setExcel2007TextTemplates(javax.xml.transform.Templates excel2007TextTransformer)
getPowerpoint2007HTMLTemplates
public static javax.xml.transform.Templates getPowerpoint2007HTMLTemplates()
setPowerpoint2007HTMLTemplates
public static void setPowerpoint2007HTMLTemplates(javax.xml.transform.Templates powerpoint2007HTMLTransformer)
getPowerpoint2007TextTemplates
public static javax.xml.transform.Templates getPowerpoint2007TextTemplates()
setPowerpoint2007TextTemplates
public static void setPowerpoint2007TextTemplates(javax.xml.transform.Templates powerpoint2007TextTransformer)
getWord2007HTMLTemplates
public static javax.xml.transform.Templates getWord2007HTMLTemplates()
setWord2007HTMLTemplates
public static void setWord2007HTMLTemplates(javax.xml.transform.Templates word2007HTMLTransformer)
getWord2007TextTemplates
public static javax.xml.transform.Templates getWord2007TextTemplates()
setWord2007TextTemplates
public static void setWord2007TextTemplates(javax.xml.transform.Templates word2007TextTransformer)
toShowTranslateBar
public static java.lang.String toShowTranslateBar()
getStyleMappings
public static java.util.Properties getStyleMappings()
setStyleMappings
public static void setStyleMappings(java.util.Properties styleMappings)
isInsideContainerHTMLPreview
public static boolean isInsideContainerHTMLPreview()
setInsideContainerHTMLPreview
public static void setInsideContainerHTMLPreview(boolean insideContainerHTMLPreviewNew)
getDatePattern
public static java.lang.String getDatePattern()
setDatePattern
public static void setDatePattern(java.lang.String datePattern)
getWebDavCredentialsMap
public static java.util.HashMap getWebDavCredentialsMap()
setWebDavCredentialsMap
public static void setWebDavCredentialsMap(java.util.HashMap webDavCredentialsMap)
getUseOriginalPDF
public static boolean getUseOriginalPDF()
getUseOriginalPicture
public static boolean getUseOriginalPicture()
getLanguageTemplatePath
public static java.lang.String getLanguageTemplatePath()
setLanguageTemplatePath
public static void setLanguageTemplatePath(java.lang.String languageTemplatePath)
getFontsPath
public static java.lang.String getFontsPath()
setFontsPath
public static void setFontsPath(java.lang.String fontsPath)
getFontsMappings
public static java.util.Properties getFontsMappings()
setFontsMappings
public static void setFontsMappings(java.util.Properties fontsMappings)
getFontMap
public static java.util.HashMap<java.lang.String,java.lang.String> getFontMap()
setFontMap
public static void setFontMap(java.util.HashMap<java.lang.String,java.lang.String> fontMap)
checkRelativePath
public static boolean checkRelativePath(java.lang.String siteName)
checkSiteCredentials
public static boolean checkSiteCredentials(java.lang.String siteName,
java.lang.String userName)
getPDFDocument
public static PDDocument getPDFDocument()
setPDFDocument
public static void setPDFDocument(PDDocument document)
isPDFDocumentHasText
public static boolean isPDFDocumentHasText()
setPDFDocumentHasText
public static void setPDFDocumentHasText(boolean documentHasText)
getPDFConversionType
public static int getPDFConversionType()
getPictureConversionType
public static int getPictureConversionType()
getPDFPreviewMode
public static int getPDFPreviewMode()
getPreviewResourcePath
public static java.lang.String getPreviewResourcePath()
setPreviewResourcePath
public static void setPreviewResourcePath(java.lang.String previewResourcePathIn)
getPDFPictureExtractor
public static java.lang.String getPDFPictureExtractor()
setPDFPictureExtractor
public static void setPDFPictureExtractor(java.lang.String pictureExtractor)
getExtensionLibraryKey
public static java.lang.String getExtensionLibraryKey()
setExtensionLibraryKey
public static void setExtensionLibraryKey(java.lang.String extensionLibraryKey)
getCustomProps
public static java.util.Vector<java.lang.String> getCustomProps()
setCustomProps
public static void setCustomProps(java.util.Vector<java.lang.String> customPropsTemp)
getPdfDocsCache
public static java.util.Map getPdfDocsCache()
cleanPdfDocsCache
public static void cleanPdfDocsCache()
loadDocumentFromCache
public static boolean loadDocumentFromCache(java.io.File inFile,
java.lang.String filePath)
getDocCacheCleanerSleep
public static double getDocCacheCleanerSleep()
setDocCacheCleanerSleep
public static void setDocCacheCleanerSleep(long docCacheCleanrSleep)
getPreviewTempFoder
public static java.lang.String getPreviewTempFoder()
setPreviewTempFoder
public static void setPreviewTempFoder(java.lang.String previewTempFoder)
getMaxFileSize
public static int getMaxFileSize()
setMaxFileSize
public static void setMaxFileSize(int maxFileSize)
getAuthenticationFilterClassName
public static java.lang.String getAuthenticationFilterClassName()
getAuthenticationFilterClass
public static org.enhydra.snapper.resources.AuthenticationFilter getAuthenticationFilterClass()
isUseAuthenticationFilter
public static boolean isUseAuthenticationFilter()
setUseAuthenticationFilter
public static void setUseAuthenticationFilter(boolean useAuthenticationFilter)
manageType
public static java.lang.String manageType(java.lang.String type)