Package org.olat.admin.sysinfo

Examples of org.olat.admin.sysinfo.InfoMessageManager


   */
  protected InfoMsgPortletRunController(UserRequest ureq, WindowControl wControl) {
    super(wControl);
    this.trans = new PackageTranslator(Util.getPackageName(InfoMsgPortletRunController.class), ureq.getLocale());
    this.infoVC = new VelocityContainer("infoVC", VELOCITY_ROOT + "/portlet.html", trans, this);
    InfoMessageManager mrg = (InfoMessageManager)CoreSpringFactory.getBean(InfoMessageManager.class);
    String infoMsg = mrg.getInfoMessage();
    if (StringHelper.containsNonWhitespace(infoMsg)) {
      infoVC.contextPut("content", infoMsg);
    } else {
      infoVC.contextPut("content", trans.translate("nothing"));     
    }
View Full Code Here


    providerSet.remove(authProvider); // remove active authProvider from list of alternate authProviders
    contentBorn.contextPut("providerSet", providerSet);
    contentBorn.contextPut("locale", ureq.getLocale());

    // prepare info message
    InfoMessageManager mrg = (InfoMessageManager)CoreSpringFactory.getBean(InfoMessageManager.class);
    String infomsg = mrg.getInfoMessage();
    if (infomsg != null && infomsg.length() > 0)
      contentBorn.contextPut("infomsg", infomsg);
   
    String infomsgNode = mrg.getInfoMessageNodeOnly();
    if (infomsgNode != null && infomsgNode.length() > 0)
      contentBorn.contextPut("infomsgNode", infomsgNode);
   
    return contentBorn;
  }
View Full Code Here

TOP

Related Classes of org.olat.admin.sysinfo.InfoMessageManager

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.