Package org.olat.core.id.context

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


   
    // get the businessPath from the windowControl if possible
    String businessPath = null;
    if (wControl!=null && wControl.getBusinessControl()!=null) {
      if (wControl.getBusinessControl() instanceof StackedBusinessControl) {
        StackedBusinessControl sbc = (StackedBusinessControl)wControl.getBusinessControl();
        final List<ContextEntry> ces = sbc.getContextEntryStack();
        bcContextEntries_ = ces!=null ? new LinkedList<ContextEntry>(ces) : null;
      }
     
      businessPath = wControl.getBusinessControl().getAsString();
    }
View Full Code Here


  }
 
  public void frameworkSetBusinessPathFromWindowControl(WindowControl wControl) {
    if (wControl!=null && wControl.getBusinessControl()!=null) {
      if (wControl.getBusinessControl() instanceof StackedBusinessControl) {
        StackedBusinessControl sbc = (StackedBusinessControl)wControl.getBusinessControl();
        final List<ContextEntry> ces = sbc.getContextEntryStack();
        if (ces!=null) {
          frameworkSetBCContextEntries(new LinkedList<ContextEntry>(ces));
        }
      }
     
View Full Code Here

   */ 
  public static String getRestJumpInUri(BusinessControl bc){
    String retVal = "EMPTY_BUSINESS_PATH/";
    if(bc instanceof StackedBusinessControl){
      retVal ="";
      StackedBusinessControl sbc =(StackedBusinessControl) bc;
      List<ContextEntry> businessControls = sbc.getBusinessControls();
      if(businessControls != null){
        for (ContextEntry contextEntry : businessControls) {
          //retVal = contextEntry+retVal;
          /**
           * possible way to convert
View Full Code Here

   */
  public DTabImpl(OLATResourceable ores, String title, WindowControl wOrigControl) {
    this.ores = ores;
    this.title = title;
    //Root the JumpInPath - typically all resources are opened in tabs
    StackedBusinessControl businessControl = new StackedBusinessControl(null, wOrigControl.getBusinessControl());
    this.wControl = BusinessControlFactory.getInstance().createBusinessWindowControl(businessControl, wOrigControl);
   
    //TODO:fj:c calculate truncation depending on how many tabs are already open
    String typeName = ores.getResourceableTypeName();
    String shortTitle = title;
View Full Code Here

TOP

Related Classes of org.olat.core.id.context.StackedBusinessControl

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.