OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 25 | Rev 41 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25 Rev 28
Line 30... Line 30...
30
        return cal == null ? "Date inconnue" : String.valueOf(cal.get(Calendar.YEAR));
30
        return cal == null ? "Date inconnue" : String.valueOf(cal.get(Calendar.YEAR));
31
    }
31
    }
32
 
32
 
33
    @Override
33
    @Override
34
    public File getDocumentOutputDirectoryP() {
34
    public File getDocumentOutputDirectoryP() {
35
        return new File(DocumentLocalStorageManager.getInstance().getDocumentOutputDirectory(this.getTemplateId()), getYear());
35
        return new File(DocumentLocalStorageManager.getInstance().getDocumentOutputDirectory(this.getDefaultTemplateId()), getYear());
36
    }
36
    }
37
 
37
 
38
    @Override
38
    @Override
39
    public File getPDFOutputDirectoryP() {
39
    public File getPDFOutputDirectoryP() {
40
        return new File(DocumentLocalStorageManager.getInstance().getPDFOutputDirectory(this.getTemplateId()), getYear());
40
        return new File(DocumentLocalStorageManager.getInstance().getPDFOutputDirectory(this.getDefaultTemplateId()), getYear());
41
    }
41
    }
42
 
42
 
43
    @Override
43
    @Override
44
    public String getStoragePathP() {
44
    public String getStoragePathP() {
45
        return StringUtils.firstUp(this.elt.getPluralName() + File.separator + getYear());
45
        return StringUtils.firstUp(this.elt.getPluralName() + File.separator + getYear());