/** * Creates a new cache instance.<p> */ public CmsPdfCache() { super(OpenCms.getSystemInfo().getWebInfRfsPath(), PDF_CACHE_FOLDER); }
/** * Returns the path in the RFS where the Solr spellcheck files reside. * @return String representation of Solrs spellcheck RFS path. */ private static String getSolrSpellcheckRfsPath() { String sPath = OpenCms.getSystemInfo().getWebInfRfsPath(); if (!OpenCms.getSystemInfo().getWebInfRfsPath().endsWith(File.separator)) { sPath += File.separator; } return sPath + "solr" + File.separator + "spellcheck" + File.separator + "data"; }
/** * Creates a new cache instance.<p> */ public CmsPdfThumbnailCache() { super(OpenCms.getSystemInfo().getWebInfRfsPath(), PDF_CACHE_FOLDER); }
/** * Returns an absolute path (to a directory or a file in the "real" file system) from a path relative to * the "WEB-INF" folder of the OpenCms web application.<p> * * If the provided path is already absolute, then it is returned unchanged.<p> * * @param path the path (relative) to generate an absolute path from * @return an absolute path (to a directory or a file) from a path relative to the "WEB-INF" folder */ public String getAbsoluteRfsPathRelativeToWebInf(String path) { if (path == null) { return null; } // check for absolute path is system depended, let's just use the standard check File f = new File(path); if (f.isAbsolute()) { // apparently this is an absolute path already return f.getAbsolutePath(); } return CmsFileUtil.normalizePath(getWebInfRfsPath() + path); }
/** * Returns an absolute path (to a directory or a file in the "real" file system) from a path relative to * the "WEB-INF" folder of the OpenCms web application.<p> * * If the provided path is already absolute, then it is returned unchanged.<p> * * @param path the path (relative) to generate an absolute path from * @return an absolute path (to a directory or a file) from a path relative to the "WEB-INF" folder */ public String getAbsoluteRfsPathRelativeToWebInf(String path) { if (path == null) { return null; } // check for absolute path is system depended, let's just use the standard check File f = new File(path); if (f.isAbsolute()) { // apparently this is an absolute path already return f.getAbsolutePath(); } return CmsFileUtil.normalizePath(getWebInfRfsPath() + path); }
OpenCms.getSystemInfo().getWebInfRfsPath() + CmsPdfThumbnailCache.PDF_CACHE_FOLDER + File.separatorChar); PdfDecoder decoder = new PdfDecoder(true);
CmsLog.INIT.info(Messages.get().getBundle().key( Messages.INIT_WEBINF_PATH_1, getSystemInfo().getWebInfRfsPath())); CmsLog.INIT.info(Messages.get().getBundle().key( Messages.INIT_PROPERTY_FILE_1,
Messages.get().getBundle().key(Messages.INIT_OPENCMS_CONTEXT_1, getSystemInfo().getOpenCmsContext())); CmsLog.INIT.info( Messages.get().getBundle().key(Messages.INIT_WEBINF_PATH_1, getSystemInfo().getWebInfRfsPath())); CmsLog.INIT.info( Messages.get().getBundle().key(