/** * Sets the servlet container specific setting.<p> * * @param configValue the configuration value */ public void setRequestErrorPageAttribute(String configValue) { OpenCms.getSystemInfo().getServletContainerSettings().setRequestErrorPageAttribute(configValue); }
/** * Sets the servlet container settings configuration mode.<p> * * @param configValue the value to set */ public void setServletContainerSettingsMode(String configValue) { OpenCms.getSystemInfo().getServletContainerSettings().setMode(configValue); }
/** * Creates a SAX event handler that generates XML / HTML Strings from the events caught * using a new <code>{@link StringWriter}</code> and the given encoding.<p> * * @param writer the Writer to write to output to */ public CmsXmlSaxWriter(Writer writer) { this(writer, OpenCms.getSystemInfo().getDefaultEncoding()); }
/** * Returns the OpenCms request context path.<p> * * This is a convenience method to use in the editor.<p> * * @return the OpenCms request context path */ public String getOpenCmsContext() { return OpenCms.getSystemInfo().getOpenCmsContext(); }
/** * Returns the destination path in the "real" file system.<p> * * @return the destination */ public String getDestinationPath() { if (m_destinationPath == null) { m_destinationPath = OpenCms.getSystemInfo().getAbsoluteRfsPathRelativeToWebApplication( m_configuredDestination); } return m_destinationPath; }
/** * Default constructor initializing values.<p> */ public CmsHistoryClear() { m_keepVersions = OpenCms.getSystemInfo().getHistoryVersions(); m_clearDeletedMode = CmsHistoryClearDialog.MODE_CLEANDELETED_KEEP_RESTORE_VERSION; }
/** * Returns the path to the skin resources.<p> * * @return the path to the skin resources */ public static String getSkinUri() { if (m_skinUri == null) { m_skinUri = OpenCms.getSystemInfo().getContextPath() + RFS_PATH_RESOURCES; } return m_skinUri; }
/** * Creates a new cache instance.<p> */ public CmsPdfThumbnailCache() { super(OpenCms.getSystemInfo().getWebInfRfsPath(), PDF_CACHE_FOLDER); }
/** * Notify all event listeners that a particular event has occurred.<p> * * @param event a CmsEvent */ public static void fireCmsEvent(CmsEvent event) { OpenCmsCore.getInstance().getEventManager().fireEvent(event); }
/** * Add a cms event listener that listens only to particular events.<p> * * @param listener the listener to add * @param eventTypes the events to listen for */ public static void addCmsEventListener(I_CmsEventListener listener, int[] eventTypes) { OpenCmsCore.getInstance().getEventManager().addCmsEventListener(listener, eventTypes); }
/** * Removes a cms event listener.<p> * * @param listener the listener to remove */ public static void removeCmsEventListener(I_CmsEventListener listener) { OpenCmsCore.getInstance().getEventManager().removeCmsEventListener(listener); }
/** * Clears the cache.<p> */ public void clearCache() { OpenCms.getEventManager().fireEvent(I_CmsEventListener.EVENT_CLEAR_CACHES); }
/** * Prints an error message to the System.err stream, indicating that OpenCms * is unable to start up.<p> */ private void setErrorCondition() { CmsMessageContainer errorCondition = getMessageContainer(); OpenCmsCore.setErrorCondition(errorCondition); } }
/** * Installs this instance as an event listener.<p> */ public void install() { OpenCms.getEventManager().addCmsEventListener( this, new int[] { I_CmsEventListener.EVENT_CLEAR_CACHES, I_CmsEventListener.EVENT_CLEAR_OFFLINE_CACHES, I_CmsEventListener.EVENT_CLEAR_ONLINE_CACHES}); }
/** * OpenCms servlet main request handling method.<p> * * @see javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException { handle(req, res, HANDLER_NAMES.SolrSelect.toString()); }
/** * Creates a SAX event handler that generates XML / HTML Strings from the events caught * using a new <code>{@link StringWriter}</code> and the given encoding.<p> * * @param writer the Writer to write to output to */ public CmsXmlSaxWriter(Writer writer) { this(writer, OpenCms.getSystemInfo().getDefaultEncoding()); }
/** * Sets the servlet container specific setting.<p> * * @param configValue the configuration value */ public void setRequestErrorPageAttribute(String configValue) { OpenCms.getSystemInfo().getServletContainerSettings().setRequestErrorPageAttribute(configValue); }
/** * Sets the servlet container settings configuration mode.<p> * * @param configValue the value to set */ public void setServletContainerSettingsMode(String configValue) { OpenCms.getSystemInfo().getServletContainerSettings().setMode(configValue); }
/** * Notify all event listeners that a particular event has occurred.<p> * * @param event a CmsEvent */ public static void fireCmsEvent(CmsEvent event) { OpenCmsCore.getInstance().getEventManager().fireEvent(event); }
/** * Add a cms event listener that listens to all events.<p> * * @param listener the listener to add */ public static void addCmsEventListener(I_CmsEventListener listener) { OpenCmsCore.getInstance().getEventManager().addCmsEventListener(listener); }