Examples of popLauncherContextEntry()


Examples of org.olat.core.id.context.BusinessControl.popLauncherContextEntry()

    // strip beginning slash
    String startURI = ( (fileName.charAt(0) == '/')? fileName.substring(1) : fileName);

    // jump (e.g. from search) to the path if the business-launch-path says so.
    BusinessControl bc = getWindowControl().getBusinessControl();
    ContextEntry ce = bc.popLauncherContextEntry();
    if ( ce != null ) { // a context path is left for me
      Tracing.logDebug("businesscontrol (for further jumps) would be:"+bc, SinglePageController.class);
      OLATResourceable ores = ce.getOLATResourceable();
      Tracing.logDebug("OLATResourceable=" + ores, SinglePageController.class);
      String typeName = ores.getResourceableTypeName();
View Full Code Here

Examples of org.olat.core.id.context.BusinessControl.popLauncherContextEntry()

    selTree = new SelectionTree("seltree", getTranslator());
    selTree.addListener(this);
    folderContainer.put("seltree", selTree);

    // jump to either the forum or the folder if the business-launch-path says so.
    ContextEntry ce = bc.popLauncherContextEntry();
    if ( ce != null ) { // a context path is left for me           
      if (log.isDebug()) log.debug("businesscontrol (for further jumps) would be:"+bc);
      OLATResourceable ores = ce.getOLATResourceable();     
      if (log.isDebug()) log.debug("OLATResourceable=" + ores);
      String typeName = ores.getResourceableTypeName();
View Full Code Here

Examples of org.olat.core.id.context.BusinessControl.popLauncherContextEntry()

    // jump to either the forum or the folder if the business-launch-path says
    // so.
    boolean showAssessmentTool = false;
   
    BusinessControl bc = getWindowControl().getBusinessControl();
    ContextEntry ce = bc.popLauncherContextEntry();
    if (ce != null) {
      logDebug("businesscontrol (for further jumps) would be:" + bc, null);
      OLATResourceable ores = ce.getOLATResourceable();
      logDebug("OLATResourceable=" + ores, null);
      if (OresHelper.isOfType(ores, CourseNode.class)) {
View Full Code Here

Examples of org.olat.core.id.context.BusinessControl.popLauncherContextEntry()

   
    // Default view
    forumPanel = putInitialPanel(vcListTitles);
    // jump to either the forum or the folder if the business-launch-path says so.
    BusinessControl bc = getWindowControl().getBusinessControl();
    ContextEntry ce = bc.popLauncherContextEntry();
    if ( ce != null) { // a context path is left for me
      if (isLogDebugEnabled()) logDebug("businesscontrol (for further jumps) would be: ", bc.toString());
      OLATResourceable ores = ce.getOLATResourceable();
      if (isLogDebugEnabled()) logDebug("OLATResourceable= " , ores.toString());
      Long resId = ores.getResourceableId();
View Full Code Here

Examples of org.olat.core.id.context.BusinessControl.popLauncherContextEntry()

    }
    addLoggingResourceable(LoggingResourceable.wrap(cpNode));

    // jump to either the forum or the folder if the business-launch-path says so.
    BusinessControl bc = getWindowControl().getBusinessControl();
    ContextEntry ce = bc.popLauncherContextEntry();
    if ( ce != null ) { // a context path is left for me
      if(log.isDebug()) log.debug("businesscontrol (for further jumps) would be:"+bc);
      OLATResourceable popOres = ce.getOLATResourceable();
      if(log.isDebug()) log.debug("OLATResourceable=" + popOres);
      String typeName = popOres.getResourceableTypeName();
View Full Code Here

Examples of org.olat.core.id.context.BusinessControl.popLauncherContextEntry()

    // how to remove initialViewIdentifier and replace by ContextEntry Path?
   
   
    // jump to either the forum or the folder if the business-launch-path says so.
    BusinessControl bc = getWindowControl().getBusinessControl();
    ContextEntry ce = bc.popLauncherContextEntry();
    if (ce != null) { // a context path is left for me
      OLATResourceable ores = ce.getOLATResourceable();
      if (OresHelper.equals(ores, ORES_TOOLFORUM)) {
        // start the forum
        if (nodeForum != null) {
View Full Code Here

Examples of org.olat.core.id.context.BusinessControl.popLauncherContextEntry()

    Identity focusOnIdentity = null;
    ICourse course = CourseFactory.loadCourse(ores);
    boolean hasAssessableNodes = course.hasAssessableNodes();
    if (hasAssessableNodes) {
      BusinessControl bc = getWindowControl().getBusinessControl();
      ContextEntry ceIdentity = bc.popLauncherContextEntry();
      if (ceIdentity != null) {
        OLATResourceable oresIdentity = ceIdentity.getOLATResourceable();
        if (OresHelper.isOfType(oresIdentity, Identity.class)) {
          Long identityKey = oresIdentity.getResourceableId();
          focusOnIdentity = ManagerFactory.getManager().loadIdentityByKey(identityKey);
View Full Code Here

Examples of org.olat.core.id.context.BusinessControl.popLauncherContextEntry()

    this.ores = ores;
    doIdentityAssessmentOverview(ureq, true);   
    putInitialPanel(main);
   
    BusinessControl bc = getWindowControl().getBusinessControl();
    ContextEntry ce = bc.popLauncherContextEntry();
    if (ce != null) {
      OLATResourceable oresNode = ce.getOLATResourceable();
      if (OresHelper.isOfType(oresNode, CourseNode.class)) {
        Long courseNodeId = oresNode.getResourceableId();
        Structure runStructure = assessedUserCourseEnvironment.getCourseEnvironment().getRunStructure();
View Full Code Here

Examples of org.olat.core.id.context.BusinessControl.popLauncherContextEntry()

      isResourceOwner = repoMgr.isOwnerOfRepositoryEntry(ureq.getIdentity(), repoMgr.lookupRepositoryEntry(res, true));
    }
   
   
    BusinessControl bc = wControl.getBusinessControl();
    ContextEntry ce = bc.popLauncherContextEntry();
    SubscriptionContext subsContext = new SubscriptionContext(res, WikiManager.WIKI_RESOURCE_FOLDER_NAME);
    WikiSecurityCallback callback = new WikiSecurityCallbackImpl(null, isOLatAdmin, isGuestOnly, false, isResourceOwner, subsContext);
   
    if ( ce != null ) { //jump to a certain context
      OLATResourceable ores = ce.getOLATResourceable();
View Full Code Here

Examples of org.olat.core.id.context.BusinessControl.popLauncherContextEntry()

    //
    putInitialPanel(columnLayoutCtr.getInitialComponent());
   
    // Activate child controllers if a usable context entry is found
    BusinessControl bc = getWindowControl().getBusinessControl();
    ContextEntry ce = bc.popLauncherContextEntry();
    if (ce != null) { // a context path is left for me
      OLATResourceable ores = ce.getOLATResourceable();
      if (OresHelper.equals(ores, BUSINESS_CONTROL_TYPE_FOLDER)) {
        // Activate folder controller
        menuTree.setSelectedNode(tm.findNodeByUserObject(CMD_FOLDER));
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.