Package org.olat.core.logging

Examples of org.olat.core.logging.AssertException


   * WEB-INF/olat_extensions.xml and adds them to the portlets map
   * @param portletList
   */
  public void setPortletList(List portletList) {
    if (portletList == null)
      throw new AssertException("null value for portletList not allowed.");

    // check beans
    ExtensionManager extMgr = ExtensionManager.getInstance();
    try {
      for (Iterator iter = portletList.iterator(); iter.hasNext();) {
View Full Code Here


    return maxEntries;
  }

  public void setMaxEntries(int maxEntries) {
    if(maxEntries<=0) {
      throw new AssertException("invalid number of max portlet entries");
    }
    this.maxEntries = maxEntries;
  }
View Full Code Here

    return sortingTerm;
  }

  public void setSortingTerm(int sortingTerm) {
    if(sortingTerm<0 || sortingTerm>2) {
      throw new AssertException("invalid sorting term for portlet");
    }
    this.sortingTerm = sortingTerm;
  }
View Full Code Here

    return sortingType;
  }

  public void setSortingType(int sortingType) {
    if(sortingTerm<0 || sortingTerm>1) {
      throw new AssertException("invalid sorting type for portlet");
    }
    this.sortingType = sortingType;
  }
View Full Code Here

  public void otherColumnDescriptorSorted() {
    // nothing to do here
  }

  public void setHrefGenerator(HrefGenerator h) {
    throw new AssertException("Not allowed to set HrefGenerator on MultiSelectColumn.");
  }
View Full Code Here

      Translator fallBackTranslator) {
    super(wControl);
    this.locale = ureq.getLocale();
    this.identity = ureq.getIdentity();
    if (fallBackTranslator == null) {
      throw new AssertException(
          "please provide a fall translator if using this constructor!!");
    }
    this.fallbackTranslator = fallBackTranslator;
    this.translator = Util.createPackageTranslator(this.getClass(), locale,
        fallBackTranslator);
View Full Code Here

   * @param m
   */
  protected void deregisterMapper(Mapper m) {
    boolean success = mappers != null && mappers.remove(m);
    if (!success)
      throw new AssertException(
          "removing a mapper which was not registered");
    mreg.deregister(m);
  }
View Full Code Here

    return p;
  }

  protected void setInitialComponent(@SuppressWarnings("unused")
  Component initialComponent) {
    throw new AssertException("please use method putInitialPanel!");
  }
View Full Code Here

   * Set the list of webdav providers.
   * @param webdavProviders
   */
  public void setWebdavProviderList(List webdavProviders) {
    if (webdavProviders == null)
      throw new AssertException("null value for webdavProviders not allowed.");
   
    for (Iterator iter = webdavProviders.iterator(); iter.hasNext();) {
      WebDAVProvider provider = (WebDAVProvider) iter.next();
      addWebdavProvider(provider);
    }
View Full Code Here

   * @param provider
   */
  public void addWebdavProvider(WebDAVProvider provider) {
    if (webdavProviders == null) webdavProviders = new HashMap();
    if (webdavProviders.containsKey(provider.getMountPoint()))
      throw new AssertException("May not add two providers with the same mount point.");
    webdavProviders.put(provider.getMountPoint(), provider);
    Tracing.logInfo("Adding webdav mountpoint '" + provider.getMountPoint() + "'.", WebDAVProviderFactory.class);
  }
View Full Code Here

TOP

Related Classes of org.olat.core.logging.AssertException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.