/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.csu.sdmx.constants;


/**
 *
 * @author themi
 */
public class URL {

    public static final String DSDS = "/dsds";
    public static final String DSD_ADD = "/dsd/add";
    public static final String CONDITIONS = "/conditions";
    public static final String CONDITIONS_FILTER = "/conditions/filter";
    public static final String CONDITIONS_EXPORT = "/conditions/export"; 
    public static final String CONDITIONS_EXPORT_ALLOWED = "/conditions/export/allowed"; 
    public static final String CONDITION_EXPORT = "/condition/export"; 
    public static final String CONDITIONS_IMPORT = "/conditions/import"; 
    public static final String CONDITIONS_IMPORT_SUBMIT = "/conditions/import/submit"; 
    public static final String CONDITION_ADD = "/condition/add";
    public static final String CONDITION_ADD_SUBMIT = "/condition/add/submit";
    public static final String CONDITION_DELETE = "/condition/delete";
    public static final String DSD_DETECT = "/dsd/detection";
    public static final String DSD_DETECT_SUBMIT = "/dsd/detection/submit";
    public static final String DSD_CLEAR = "/dsd/clear";
    public static final String VALIDATOR = "/validator";
    public static final String VALIDATOR_VALIDATE = "/validator/validate";
    public static final String VALIDATION_INFO = "/validation/info";
    public static final String RESULT = "/result";
    public static final String RESULTS_LIST = "/results/list";
    public static final String RESULTS_FILTER = "/results/list/filter";
    public static final String UNAUTHORIZED = "/unauthorized";
    public static final String USER = "/user/";
    public static final String ADD_USER = "/user/add";
    public static final String ADD_USER_SUBMIT = "/user/add/submit";
    public static final String USER_DELETE = "/user/delete";
    public static final String USERS_SEARCH = "/users/search";
    public static final String USER_UPDATE_SUBMIT = "/user/update/submit";
    
    public static String redirectTo(String url) {
        return "redirect:"+url;
    }
}
