Package org.olat.core.commons.servlets.util

Examples of org.olat.core.commons.servlets.util.URLEncoder


  public OLATResourceable getOLATResourceable() {
    return olatResourceable;
  }
 
  public String toString(){
    URLEncoder urlE = new URLEncoder();
    String resource =urlE.encode(this.olatResourceable.getResourceableTypeName());
    return "["+resource+":"+this.olatResourceable.getResourceableId()+"]";
  }
View Full Code Here


  public static String getJumpInUri(BusinessControl bc) {
    StringBuilder sb = new StringBuilder();
    sb.append(Settings.getServerContextPathURI()).append(DispatcherAction.PATH_AUTHENTICATED).append(CONST_EXTLINK).append("?");
    sb.append(CONST_RESOURCE_URL);
    sb.append("=");
    sb.append( new URLEncoder().encode(bc.getAsString()) );
    return sb.toString();
  }
View Full Code Here

        for (ContextEntry contextEntry : businessControls) {
          //retVal = contextEntry+retVal;
          /**
           * possible way to convert
           */
          URLEncoder olatUrlEncoder = new URLEncoder();
          String ceStr = contextEntry != null ? contextEntry.toString() : "NULL_ENTRY";
          ceStr = ceStr.replace(':', '/');
          ceStr = ceStr.replaceFirst("\\]", "/");
          ceStr= ceStr.replaceFirst("\\[", "");
          retVal = ceStr + retVal;
View Full Code Here

          am.appendToUserNodeLog(node, coach, student, "FILE UPLOADED: " + folderEvent.getFilename());
          String toMail = student.getUser().getProperty(UserConstants.EMAIL, ureq.getLocale());
          Locale locale = I18nManager.getInstance().getLocaleOrDefault(student.getUser().getPreferences().getLanguage());
          Translator userTrsl = new PackageTranslator(PACKAGE, locale);
         
          String nodeUrl = new URLEncoder().encode("[" + OresHelper.calculateTypeName(CourseNode.class) + ":" + node.getIdent() + "]");
          String link = JumpInManager.getJumpInUri(this.getWindowControl().getBusinessControl()) + nodeUrl;
          log.debug("DEBUG : Returnbox notification email with link=" + link);
          MailTemplate mailTempl = new MailTemplate(userTrsl.translate("returnbox.email.subject"), userTrsl.translate(
              "returnbox.email.body", new String[] { userCourseEnv.getCourseEnvironment().getCourseTitle(), node.getShortTitle(),
                  folderEvent.getFilename(), link }), null) {
View Full Code Here

TOP

Related Classes of org.olat.core.commons.servlets.util.URLEncoder

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.