1 /*****************************************************************************
5 * Creation date 06.10.2012
8 *****************************************************************************/
10 package org.splat.service.technical;
14 import org.splat.dal.bo.kernel.User;
20 public class RepositoryServiceImpl implements RepositoryService {
22 private String _basepath;
24 public File getRepositoryIndexDirectory() {
25 return new File(getBasepath() + "lucin/");
28 public String getRepositoryVaultPath() {
29 return (getBasepath() + "vault/");
32 public File getDownloadDirectory(User user) {
33 StringBuffer path = new StringBuffer(_basepath).append("downloads/")
34 .append(user.getUsername()).append("/");
35 return new File(path.toString());
38 public String getTemplatePath() {
39 return (_basepath + "templates/");
44 * @return the basepath
46 public String getBasepath() {
52 * @param basepath the basepath to set
54 public void setBasepath(String basepath) {