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); }
@CheckForNull public String getScmDateData(String fileKey) { checkPermission(fileKey); return findDataFromComponent(fileKey, CoreMetrics.SCM_LAST_COMMIT_DATETIMES_BY_LINE_KEY); }
@CheckForNull public String getScmAuthorData(String fileKey) { checkPermission(fileKey); return findDataFromComponent(fileKey, CoreMetrics.SCM_AUTHORS_BY_LINE_KEY); }