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
32
33
34 package fr.paris.lutece.plugins.grusupply.constant;
35
36 public class GruSupplyConstants
37 {
38
39 public static final String PLUGIN_NAME = "grusupply/";
40 public static final String PATH_DEMAND = "demand/";
41 public static final String PATH_DEMAND_LIST = "list";
42 public static final String PATH_DEMAND_STATUS = "status";
43 public static final String PATH_TYPE_DEMAND = "type";
44 public static final String PATH_TYPE_NOTIFICATION = "notification_type";
45 public static final String PATH_NOTIFICATION_LIST = "notification/list";
46
47
48 public static final String QUERY_PARAM_INDEX = "index";
49 public static final String QUERY_PARAM_ID_DEMAND_TYPE = "idDemandType";
50 public static final String QUERY_PARAM_CUSTOMER_ID = "customerId";
51 public static final String QUERY_PARAM_NOTIFICATION_TYPE = "notificationType";
52 public static final String QUERY_PARAM_ID_DEMAND = "idDemand";
53 public static final String QUERY_PARAM_LIST_STATUS = "listStatus";
54
55
56 public static final String STATUS_201 = "{" + "\"status\":" + "\"201\"" + "}";
57 public static final String STATUS_404 = "{" + "\"status\":" + "\"404\"" + "}";
58
59
60 public static final int DEFAULT_INT = -1;
61
62
63
64 public static final String LIMIT_DEMAND_API_REST = "grusupply.api.rest.limit.demand";
65
66
67 public static final String MESSAGE_ERROR_DEMAND = "Parameter customerId is mandatory";
68 public static final String MESSAGE_ERROR_STATUS = "Parameters customerId and listStatus are mandatory ( can separated status by ,)";
69 public static final String MESSAGE_ERROR_NOTIF = "Parameters idDemand, customerId and idDemandType are mandatory " ;
70 }