]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/web/ajaxplorer/svn/SvnAjxpFile.java
87a2c9dee6405fc5d539807b560ad6627e04fc1a
[gpl/argeo-slc.git] / runtime / org.argeo.slc.server / src / main / java / org / argeo / slc / web / ajaxplorer / svn / SvnAjxpFile.java
1 package org.argeo.slc.web.ajaxplorer.svn;
2
3 import org.argeo.slc.web.ajaxplorer.file.AjxpFile;
4 import org.argeo.slc.web.ajaxplorer.file.LsMode;
5 import org.tmatesoft.svn.core.wc.SVNInfo;
6
7 public class SvnAjxpFile extends AjxpFile {
8
9 protected final SVNInfo info;
10
11 public SvnAjxpFile(SVNInfo info, String parentPath) {
12 super(info.getFile(), parentPath);
13 this.info = info;
14 }
15
16 @Override
17 protected void addAdditionalAttrs(StringBuffer buf, LsMode mode,
18 String encoding) {
19 addAttr("author", info.getAuthor(), buf);
20 addAttr("revision", Long.toString(info.getRevision().getNumber()), buf);
21 }
22
23 }