Package org.olat.core.id.context

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


      log.debug("calc buspath " + businessPath);
    }
   
    //check if the businesspath is valid
    try {
      BusinessControl bc = BusinessControlFactory.getInstance().createFromString(businessPath);
      if(!bc.hasContextEntry()) {
        //The URL is not a valid business path
        DispatcherAction.sendBadRequest(origUri, response);
        return;
      }
    } catch (Exception e) {
View Full Code Here


    precalcMessageDeepness(msgs);
   
    // 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();
      if (resId.longValue() != 0) {
        if (isLogDebugEnabled()) logDebug("messageId=" , ores.getResourceableId().toString());
View Full Code Here

        int pathIndex = url.indexOf("path=");
        String uri = url.substring(pathIndex + 5, url.length() - 1);
        RedirectMediaResource rsrc = new RedirectMediaResource(uri);
        ureq.getDispatchResult().setResultingMediaResource(rsrc);
      } else {
        BusinessControl bc = BusinessControlFactory.getInstance().createFromString(url);
        WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(bc, getWindowControl());
        NewControllerFactory.getInstance().launch(ureq, bwControl);
      }
    } catch (Exception ex) {
      log.debug("Document not found");
View Full Code Here

      if ( log.isDebug() ) {
        elementStartTime = System.currentTimeMillis();
      }
      OlatDocument odoc = it_odocs.next();
      String resourceUrl = odoc.getResourceUrl();
      BusinessControl businessControl = BusinessControlFactory.getInstance().createFromString(resourceUrl);
      boolean hasAccess = mainIndexer.checkAccess(null, businessControl, identity, roles);
      if (hasAccess) {
        filteredList.add(odoc);
        resultCount++;
      }
View Full Code Here

      Windows.getWindows(ureq).getWindow(ureq).removeAttribute(attrFromStartpage);
    }
    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

    // first step -> if initialViewIdentifier != null -> map initialViewIdentifier to ore with OresHelper
    // 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

   
    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

          String uri = ureq.getNonParsedUri();
          if (uri.startsWith(JumpInManager.CONST_EXTLINK)) {
            String resourceUrl = ureq.getParameter(JumpInManager.CONST_RESOURCE_URL);
            if (resourceUrl != null) {
              // attach the launcher data
              BusinessControl bc = BusinessControlFactory.getInstance().createFromString(resourceUrl);
              try {
                // get main window and dynamic tabs
                // brasato:: ChiefController cc = Windows.getWindows(usess).getWindowManager().getMainChiefController();
                ChiefController cc = (ChiefController) Windows.getWindows(usess).getAttribute(AUTHCHIEFCONTROLLER);
View Full Code Here

    this.assessedUserCourseEnvironment = assessedUserCourseEnvironment;
    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

      RepositoryManager repoMgr = RepositoryManager.getInstance();
      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

TOP

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

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.