code: private void appendEditLink(StringBuffer buf, CmsExtendedNotificationCause notificationCause) {
  
          buf.append("<td>");
          if (existsEditor(notificationCause.getResource())) {
              try {
                  String resourcePath = notificationCause.getResource().getRootPath();
                  String siteRoot = OpenCms.getSiteManager().getSiteRoot(resourcePath);
                  resourcePath = resourcePath.substring(siteRoot.length());
                  Map<String, String[]> params = new HashMap<String, String[]>();
                  CmsUUID projectId = getCmsObject().readProject(
                      OpenCms.getSystemInfo().getNotificationProject()).getUuid();
                  params.put(CmsWorkplace.PARAM_WP_PROJECT, new String[] {String.valueOf(projectId)});
                  params.put(
                      CmsWorkplace.PARAM_WP_EXPLORER_RESOURCE,
                      new String[] {CmsResource.getParentFolder(resourcePath)});
                  params.put(CmsWorkplace.PARAM_WP_SITE, new String[] {siteRoot});
                  params.put(CmsDialog.PARAM_RESOURCE, new String[] {resourcePath});
                  buf.append("[<a href=\"");
                  buf.append(CmsRequestUtil.appendParameters(m_uriWorkplace + "editors/editor.jsp", params, false));
                  buf.append("\">");
                  buf.append(m_messages.key(Messages.GUI_EDIT_0));
                  buf.append("</a>]");
              } catch (CmsException e) {
                  if (LOG.isInfoEnabled()) {
                      LOG.info(e);
                  }
              }
          }
          buf.append("</td>");
      }
docs: Appends a link to edit the resource to a StringBuffer.<p>
  
  @param buf the StringBuffer to append the html code to.
  @param notificationCause the information for specific resource.