Example #1
0
  public List<String> getLinesAsHtml(String fileKey, @Nullable Integer from, @Nullable Integer to) {
    checkPermission(fileKey);

    List<String> decoratedSource = sourceDecorator.getDecoratedSourceAsHtml(fileKey, from, to);
    if (!decoratedSource.isEmpty()) {
      return decoratedSource;
    }
    return deprecatedSourceDecorator.getSourceAsHtml(fileKey, from, to);
  }
Example #2
0
 @CheckForNull
 public String getScmDateData(String fileKey) {
   checkPermission(fileKey);
   return findDataFromComponent(fileKey, CoreMetrics.SCM_LAST_COMMIT_DATETIMES_BY_LINE_KEY);
 }
Example #3
0
 @CheckForNull
 public String getScmAuthorData(String fileKey) {
   checkPermission(fileKey);
   return findDataFromComponent(fileKey, CoreMetrics.SCM_AUTHORS_BY_LINE_KEY);
 }