Package org.olat.core.logging

Examples of org.olat.core.logging.AssertException


 
  /**
   * @param identity
   */
  public void setIdentity(Identity identity) {
    if (this.identity != null) throw new AssertException("can only set identity once!");
    this.identity = identity;
  }
View Full Code Here


  /**
   * @param roles
   */
  public void setRoles(Roles roles) {
    if (this.roles != null) throw new AssertException("can only set Roles once");
    this.roles = roles;
  }
View Full Code Here

   * @param ureq
   * @param control
   */
  protected I18nConfigSubNewLangController(UserRequest ureq, WindowControl control) {
    super(ureq, control, LAYOUT_DEFAULT);
    if (!I18nModule.isTransToolEnabled()) { throw new AssertException(
        "New languages can only be created when the translation tool is enabled and the translation tool source pathes are configured in the build.properties"); }
    initForm(ureq);
  }
View Full Code Here

   * @param preferencesKey name of table preferences
   */
  public void setPreferencesOffered(boolean preferencesOffered, String preferencesKey) {
    this.preferencesOffered = preferencesOffered;
    if (preferencesOffered && preferencesKey == null) {
      throw new AssertException("when perferencesOffered=true the preferencesKey must not be null !");
    }
    this.preferencesKey = preferencesKey;
  }
View Full Code Here

    return origBusinessControl.hasContextEntry();
  }


  public void setCurrentContextEntry(ContextEntry ce) {
    if(ce == null) throw new AssertException("ContextEntry can not be null!");
    this.currentCe = ce;
    List<ContextEntry>  ces = new ArrayList<ContextEntry>();
    notifyParent(ces);
  }
View Full Code Here

    Iterator portletsIter = this.portletsConfigurations.keySet().iterator();
    while (portletsIter.hasNext()) {
      String portletName = (String) portletsIter.next();
      Map<String, String> portletConfiguration = this.portletsConfigurations.get(portletName);
      if (portletConfiguration == null)
        throw new AssertException("No portlet configuration found for portlet::" + portletName + " in portal::" + this.name);
      // add portal and portlet name to configuration
      portletConfiguration.put("portalName", this.name);
      portletConfiguration.put("id", portletName);
      PortletContainer pc = PortletFactory.getPortletContainerFor(portletConfiguration, getWindowControl(), ureq);     
      pc.addControllerListener(this);
View Full Code Here

    if (source instanceof Link && portalVC.getComponents().containsValue(source)) {
      Link tmp = (Link)source;
      String portletName = (String)tmp.getUserObject();
      List<String> firstColumn = this.portalColumns.get(0);
      PortletContainer pc = this.portletContainers.get(portletName);
      if (pc == null) throw new AssertException("trying to add portlet with name::" + portletName + " to portal, but portlet container did not exist. Could be a user modifying the URL...");
      // add to users portlet list
      firstColumn.add(portletName);
      // remove from inactive portlets list
      this.inactivePortlets.remove(portletName);
      // initialize portlet run component
View Full Code Here

  @Override
  protected void doDispatchRequest(UserRequest ureq) {
    //Form elements must render themselves in a way that the dispatching
    //is done by the form manager receiving the dispatch request with the
    //form elements dispatch id.
    throw new AssertException("The form element <"+getComponentName()+"> with id <"+getFormDispatchId()+"> should not be dispatched by GUI framework:");
  }
View Full Code Here

      public ContextEntry popLauncherContextEntry() {
        return null;
      }

      public void dropLauncherEntries() {
        throw new AssertException("dropping all entries, even though EMPTY");
      }

      public boolean hasContextEntry() {
        return false;
      }

      public int getStackedCount() {
        return 0;
      }

      public void setCurrentContextEntry(ContextEntry cw) {
        throw new AssertException("wrong call");
      }
     
    };
  }
View Full Code Here

   * Bean method used by spring. Adds all known portals to the portals map
   * @param portalList
   */
  public void setPortalList(List portalList) {
    if (portalList == null)
      throw new AssertException("null value for portalList not allowed.");
    // check beans
    ExtensionManager extMgr = ExtensionManager.getInstance();
    try {
      for (Iterator iter = portalList.iterator(); iter.hasNext();) {
        Portal portal = (Portal) iter.next();
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.