Examples of BugtraqProcessor


Examples of com.gitblit.utils.BugtraqProcessor

        // repository search
        commits = JGitUtils.searchRevlogs(repository, objectId, searchString, searchType,
            offset, length);
      }
      Map<ObjectId, List<RefModel>> allRefs = JGitUtils.getAllRefs(repository, model.showRemoteBranches);
      BugtraqProcessor processor = new BugtraqProcessor(settings);

      // convert RevCommit to SyndicatedEntryModel
      for (RevCommit commit : commits) {
        FeedEntryModel entry = new FeedEntryModel();
        entry.title = commit.getShortMessage();
        entry.author = commit.getAuthorIdent().getName();
        entry.link = MessageFormat.format(urlPattern, gitblitUrl,
            StringUtils.encodeURL(model.name.replace('/', fsc)), commit.getName());
        entry.published = commit.getCommitterIdent().getWhen();
        entry.contentType = "text/html";
        String message = processor.processCommitMessage(repository, model, commit.getFullMessage());
        entry.content = message;
        entry.repository = model.name;
        entry.branch = objectId;
        entry.tags = new ArrayList<String>();
View Full Code Here

Examples of com.gitblit.utils.BugtraqProcessor

  protected Class<? extends BasePage> getRepoNavPageClass() {
    return getClass();
  }

  protected BugtraqProcessor bugtraqProcessor() {
    return new BugtraqProcessor(app().settings());
  }
View Full Code Here

Examples of com.gitblit.utils.BugtraqProcessor

    if (markupText == null) {
      markupText = "";
    }

    BugtraqProcessor bugtraq = new BugtraqProcessor(app().settings());
    markupText = bugtraq.processText(getRepository(), repositoryName, markupText);

    Fragment fragment;
    MarkupDocument markupDoc = processor.parse(repositoryName, getBestCommitId(commit), documentPath, markupText);
    if (MarkupSyntax.PLAIN.equals(markupDoc.syntax)) {
      fragment = new Fragment("doc", "plainContent", this);
View Full Code Here

Examples of com.gitblit.utils.BugtraqProcessor

          // repository search
          commits = JGitUtils.searchRevlogs(repository, objectId, searchString, searchType,
              offset, length);
        }
        Map<ObjectId, List<RefModel>> allRefs = JGitUtils.getAllRefs(repository, model.showRemoteBranches);
        BugtraqProcessor processor = new BugtraqProcessor(settings);

        // convert RevCommit to SyndicatedEntryModel
        for (RevCommit commit : commits) {
          FeedEntryModel entry = new FeedEntryModel();
          entry.title = commit.getShortMessage();
          entry.author = commit.getAuthorIdent().getName();
          entry.link = MessageFormat.format(urlPattern, gitblitUrl,
              StringUtils.encodeURL(model.name.replace('/', fsc)), commit.getName());
          entry.published = commit.getCommitterIdent().getWhen();
          entry.contentType = "text/html";
          String message = processor.processCommitMessage(repository, model, commit.getFullMessage());
          entry.content = message;
          entry.repository = model.name;
          entry.branch = objectId;
          entry.tags = new ArrayList<String>();
View Full Code Here

Examples of com.gitblit.utils.BugtraqProcessor

  protected Class<? extends BasePage> getRepoNavPageClass() {
    return getClass();
  }

  protected BugtraqProcessor bugtraqProcessor() {
    return new BugtraqProcessor(app().settings());
  }
View Full Code Here

Examples of com.gitblit.utils.BugtraqProcessor

    if (markupText == null) {
      markupText = "";
    }

    BugtraqProcessor bugtraq = new BugtraqProcessor(app().settings());
    markupText = bugtraq.processText(getRepository(), repositoryName, markupText);

    Fragment fragment;
    MarkupDocument markupDoc = processor.parse(repositoryName, getBestCommitId(commit), documentPath, markupText);
    if (MarkupSyntax.PLAIN.equals(markupDoc.syntax)) {
      fragment = new Fragment("doc", "plainContent", this);
View Full Code Here

Examples of com.gitblit.utils.BugtraqProcessor

            if (repository == null) {
              label = new Label("label", labelItem.getModelObject());
              tLabel = new TicketLabel(labelItem.getModelObject());
            } else {
              Repository db = app().repositories().getRepository(repository.name);
              BugtraqProcessor btp  = new BugtraqProcessor(app().settings());
              String content = btp.processText(db, repository.name, labelItem.getModelObject());
              String safeContent = app().xssFilter().relaxed(content);
              db.close();

              label = new Label("label", safeContent);
              label.setEscapeModelStrings(false);
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.