Codota Logo
org.opencms.main
Code IndexAdd Codota to your IDE (free)

How to use org.opencms.main

Best Java code snippets using org.opencms.main (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.opencms/opencms-core

/**
 * Sets the servlet container specific setting.<p>
 *
 * @param configValue the configuration value
 */
public void setRequestErrorPageAttribute(String configValue) {
  OpenCms.getSystemInfo().getServletContainerSettings().setRequestErrorPageAttribute(configValue);
}
origin: org.opencms/opencms-core

/**
 * Sets the servlet container settings configuration mode.<p>
 *
 * @param configValue the value to set
 */
public void setServletContainerSettingsMode(String configValue) {
  OpenCms.getSystemInfo().getServletContainerSettings().setMode(configValue);
}
origin: org.opencms/opencms-core

/**
 * 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());
}
origin: org.opencms/opencms-solr

/**
 * 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();
}
origin: org.opencms/opencms-core

/**
 * 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;
}
origin: org.opencms/opencms-solr

/**
 * 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;
}
origin: org.opencms/org.opencms.workplace.tools.history

/**
 * Default constructor initializing values.<p>
 */
public CmsHistoryClear() {
  m_keepVersions = OpenCms.getSystemInfo().getHistoryVersions();
  m_clearDeletedMode = CmsHistoryClearDialog.MODE_CLEANDELETED_KEEP_RESTORE_VERSION;
}
origin: org.opencms/opencms-core

/**
 * Creates a new cache instance.<p>
 */
public CmsPdfThumbnailCache() {
  super(OpenCms.getSystemInfo().getWebInfRfsPath(), PDF_CACHE_FOLDER);
}
origin: org.opencms/opencms-core

/**
 * 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);
}
origin: org.opencms/opencms-core

/**
 * 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);
}
origin: org.opencms/opencms-solr

/**
 * Removes a cms event listener.<p>
 *
 * @param listener the listener to remove
 */
public static void removeCmsEventListener(I_CmsEventListener listener) {
  OpenCmsCore.getInstance().getEventManager().removeCmsEventListener(listener);
}
origin: org.opencms/opencms-setup

/**
 * Clears the cache.<p>
 */
public void clearCache() {
  OpenCms.getEventManager().fireEvent(I_CmsEventListener.EVENT_CLEAR_CACHES);
}
origin: org.opencms/opencms-core

/**
 * 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});
}
origin: org.opencms/opencms-core

  /**
   * 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);
  }
}
origin: org.opencms/opencms-core

/**
 * 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());
}
origin: org.opencms/opencms-solr

/**
 * 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());
}
origin: org.opencms/opencms-solr

/**
 * Sets the servlet container specific setting.<p>
 * 
 * @param configValue the configuration value
 */
public void setRequestErrorPageAttribute(String configValue) {
  OpenCms.getSystemInfo().getServletContainerSettings().setRequestErrorPageAttribute(configValue);
}
origin: org.opencms/opencms-solr

/**
 * Sets the servlet container settings configuration mode.<p>
 * 
 * @param configValue the value to set
 */
public void setServletContainerSettingsMode(String configValue) {
  OpenCms.getSystemInfo().getServletContainerSettings().setMode(configValue);
}
origin: org.opencms/opencms-solr

/**
 * 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);
}
origin: org.opencms/opencms-solr

/**
 * 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);
}
org.opencms.main

Most used classes

  • OpenCms
    The OpenCms "operating system" that provides public static methods which can be used by other classe
  • CmsException
    Master exception type for all exceptions caused in OpenCms.
  • CmsSystemInfo
    Provides access to system wide "read only" information about the running OpenCms instance. Contains
  • CmsIllegalArgumentException
    A replacement for java.lang.IllegalArgumentException to obtain fully localized exception messages fo
  • CmsRuntimeException
    A replacement for java.lang.RuntimeException to obtain fully localized exception messages for OpenCm
  • CmsLog,
  • CmsIllegalStateException,
  • CmsContextInfo,
  • CmsSessionManager,
  • CmsEventManager,
  • CmsMultiException,
  • CmsSessionInfo,
  • CmsShell,
  • CmsThreadStore,
  • I_CmsThrowable,
  • Messages,
  • CmsBroadcast,
  • CmsDefaultSessionStorageProvider,
  • CmsHttpAuthenticationSettings
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now