-
Notifications
You must be signed in to change notification settings - Fork 10
/
ApplicationConstants.java
107 lines (75 loc) · 3.86 KB
/
ApplicationConstants.java
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package com.tutorialq.constants;
import com.google.common.collect.ImmutableMap;
import org.springframework.stereotype.Component;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
@Component
public class ApplicationConstants implements Serializable {
public static final String SALT = "employeeManagement"; //Key used for Encryption.
public static final String REGISTRATION_STATUS_ACTIVE = "ACTIVE";
public static final String REGISTRATION_STATUS_INACTIVE = "INACTIVE";
public static final String USER_ROLE_EMPLOYEE = "EMPLOYEE";
public static final String USER_ROLE_SUPERVISOR = "SUPERVISOR";
public static final String USER_ROLE_ADMIN = "ADMIN";
public static final int USER_ROLE_EMPLOYEE_ID = 100;
public static final int USER_ROLE_SUPERVISOR_ID = 200;
public static final int USER_ROLE_ADMIN_ID = 500;
public static final String TIMESHEET_STATUS_APPROVED = "APPROVED";
public static final String TIMESHEET_STATUS_SUBMITTED = "SUBMITTED";
public static final String TIMESHEET_STATUS_REJECTED = "REJECTED";
public static final String TIMESHEET_STATUS_ALL = "ALL";
public static final String TIMESHEET_TYPE_WEEKLY = "WEEKLY";
public static final String TIMESHEET_TYPE_BIWEEKLY = "BIWEEKLY";
public static final String TIMESHEET_TYPE_MONTHLY = "MONTHLY";
public static final String REST_RESPONSE_CODE_SUCCESS = "SUCCESS";
public static final String REST_RESPONSE_CODE_ERROR = "ERROR";
public static final List<String> TIMESHEET_STATUS_LIST = new ArrayList<>(
Arrays.asList(TIMESHEET_STATUS_ALL, TIMESHEET_STATUS_SUBMITTED, TIMESHEET_STATUS_APPROVED, TIMESHEET_STATUS_REJECTED));
// All anticipated document types.
public static final Map<String, String> TIMESHEET_FILE_EXTENSION_MAP = ImmutableMap.<String, String>builder()
//Images
.put("bmp", "image/bmp")
.put("jpg", "image/jpeg")
.put("jpeg", "image/jpeg")
.put("png", "image/png")
.put("pdf", "application/pdf")
.put("txt", "text/plain")
.build();
public static final String INIT_VECTOR_RANDOM_KEY = "RandomInitVector"; // 16 bytes IV any random String with 16 characters can be used.
public static final String MAX_UPLOAD_FILE_SIZE = "1000000"; // 10MB file limit.
public static final String fromAddress = "[email protected]";
public static final Map<String, String> skillMap = ImmutableMap.<String, String>builder()
.put("java", "Java")
.put("mule", "Mule Soft")
.put("net", ".Net")
.put("servicenow", "Service Now")
.put("qa", "Quality Assurance")
.put("ba", "Business Analyst")
.build();
public static final Map<String, String> companyNamesMap = ImmutableMap.<String, String>builder()
.put("geeksoft", "Geeksoft LLC.,")
.put("datasols", "DataSols LLC.,")
.put("anjs", "ANJS Tech")
.put("eish", "EISH Technologies")
.build();
public static final Map<String, String> empTypeMap = ImmutableMap.<String, String>builder()
.put("client", "Client Project")
.put("inhouse", "Inhouse Project")
.put("marketing", "Marketing")
.put("bench", "Bench")
.put("training", "Training")
.build();
public static final Map<String, String> paymentTermsMap = ImmutableMap.<String, String>builder()
.put("net30", "Net 30")
.put("net45", "Net 45")
.put("net60", "Net 60")
.build();
public static final Map<String, String> invoiceFrequencyMap = ImmutableMap.<String, String>builder()
.put("weekly", "Weekly")
.put("biweekly", "Bi-weekly")
.put("monthly", "Monthly")
.build();
}