Kenmegne
7 days ago 23a46b4be35277e06ec89f48730eeb694e686be8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.megatim.fdxcommons.tools;
 
import java.io.File;
 
/**
 *
 * @author lenovo
 */
public class CommonAppContext {
 
    public static final String SERVER_DIR = getCurrentDirectory().getParent();
    public static final String APP_DIR = SERVER_DIR + File.separator + "standalone" + File.separator + "apifdx";
    public static final String TEMP_DIR = APP_DIR + File.separator + "tmp";
    public static final String UPLOAD_DIR = APP_DIR + File.separator + "upload";
    public static final String DOWNLOAD_DIR = APP_DIR + File.separator + "download";
    public static final String DATA_DIR = APP_DIR + File.separator + "data";
 
    public static final String REFERENTIEL_ZIP_FILE_NAME = "referentiel.zip";
    public static final String UNZIP_REFERENTIEL_VALIDATEUR_DIR_NAME = "validateurs";
    public static final String UNZIP_REFERENTIEL_VALIDATEUR_JSON_DIR_NAME = "validateursjson";
 
    public static final String TOKEN_GENERATION_EXCHANGE = "tokenAuthentificationExchange";
    public static final String TOKEN_GENERATION_QUEUE = "tokenAuthentificationQueue";
    public static final String TOKEN_GENERATION_ROUTING_KEY = "tokenAuthentificationRoutingKey";
 
    public static File getCurrentDirectory() {
        String fileName = (String) System.getProperties().get("user.dir");
        return new File(fileName);
    }
 
}