Examples of BusinessControlFactory


Examples of org.olat.core.id.context.BusinessControlFactory

      log.error("Publisher without businesspath: " + p.getKey() + " resName:" + p.getResName() + " subidentifier:" + p.getSubidentifier() + " data:" + p.getData());
      return null;//TODO remove after the upgrade
    }
   
    try {
      BusinessControlFactory bCF = BusinessControlFactory.getInstance();
      List<ContextEntry> ceList = bCF.createCEListFromString(bPathString);
      String busPath = getBusPathStringAsURIFromCEList(ceList);
     
      return Settings.getServerContextPathURI()+"/url/"+busPath;
    } catch(Exception e) {
      log.error("Error with publisher: " + p.getKey() + " resName:" + p.getResName() + " subidentifier:" + p.getSubidentifier() + " data:" + p.getData() + " businessPath:" + p.getBusinessPath(), e);
View Full Code Here

Examples of org.olat.core.id.context.BusinessControlFactory

    boolean isGuestOnly = ureq.getUserSession().getRoles().isGuestOnly();
    // Add message id to business path if nodemcd is available
    if (nodecmd != null) {
      try {
        Long messageId = Long.valueOf(nodecmd);
        BusinessControlFactory bcf =  BusinessControlFactory.getInstance();
        BusinessControl businessControl = bcf.createFromString("[Message:"+messageId+"]");
        wControl = bcf.createBusinessWindowControl(businessControl, wControl);
      } catch (NumberFormatException e) {
        // ups, nodecmd is not a message, what the heck is it then?
        Tracing.createLoggerFor(this.getClass()).warn("Could not create message ID from given nodemcd::" + nodecmd, e);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.