-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDataConstants.java
111 lines (106 loc) · 4.9 KB
/
DataConstants.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
108
109
110
111
/**
* The DataConstants class holds all of the constants that have to do with
* storing and retrieving our data from the JSON files.
*
* @author Joshua DuPuis
*/
public class DataConstants {
/**
* file names
*/
protected static final String STUDENT_FILE_NAME = "JSON\\Student.json";
protected static final String ADMIN_FILE_NAME = "JSON\\Administrator.json";
protected static final String EMPLOYER_FILE_NAME = "JSON\\employers.json";
protected static final String COMPANY_PROFILE_FILE_NAME = "JSON\\companyProfiles.json";
protected static final String JOB_LISTING_FILE_NAME = "JSON\\jobListings.json";
protected static final String RESUME_FILE_NAME = "JSON\\Resume.json";
/**
* admin fields
*/
protected static final String ADMIN_ID = "userID";
protected static final String ADMIN_FIRST_NAME = "firstName";
protected static final String ADMIN_LAST_NAME = "lastName";
protected static final String ADMIN_EMAIL = "email";
protected static final String ADMIN_PASSWORD = "password";
protected static final String ADMIN_PERMISSION = "permission";
/**
* student fields
*/
protected static final String STUDENT_ID = "userID";
protected static final String STUDENT_FIRST_NAME = "firstName";
protected static final String STUDENT_LAST_NAME = "lastName";
protected static final String STUDENT_EMAIL = "email";
protected static final String STUDENT_PASSWORD = "password";
protected static final String STUDENT_PERMISSION = "Permission";
protected static final String STUDENT_REVIEWS = "reviews";
protected static final String STUDENT_RESUMES = "resumes";
protected static final String STUDENT_SKILLS = "skills";
protected static final String STUDENT_YEAR_IN_SCHOOL = "yearInSchool";
protected static final String STUDENT_CLASSES = "classes";
/**
* employer fields
*/
protected static final String EMPLOYER_ID = "userID";
protected static final String EMPLOYER_FIRST_NAME = "firstName";
protected static final String EMPLOYER_LAST_NAME = "lastName";
protected static final String EMPLOYER_EMAIL = "email";
protected static final String EMPLOYER_PASSWORD = "password";
protected static final String EMPLOYER_PERMISSION = "Permission";
protected static final String EMPLOYER_REVIEWS = "reviews";
protected static final String EMPLOYER_ASSOCIATED_COMPANY = "associatedCompanyID";
/**
* company profile fields
*/
protected static final String COMPANY_ID = "companyID";
protected static final String COMPANY_HQ_ADDRESS = "hqAddress";
protected static final String COMPANY_NAME = "companyName";
protected static final String COMPANY_DESCRIPTION = "description";
protected static final String COMPANY_LISTINGS_IDS = "currentListingIDs";
protected static final String COMPANY_ASSOCIATED_EMPLOYER_IDS = "associatedEmployersIDs";
protected static final String COMPANY_REVIEWS = "reviews";
/**
* joblisting fields
*/
protected static final String LISTING_ID = "listingID";
protected static final String LISTING_TITLE = "title";
protected static final String LISTING_DESCRIPTION = "description";
protected static final String LISTING_PAID = "paid";
protected static final String LISTING_PAY_RATE = "payRate";
protected static final String LISTING_REQUIRED_SKILLS = "requiredSkills";
protected static final String LISTING_COMPANY_NAME = "companyName";
protected static final String LISTING_HIDDEN = "hidden";
protected static final String LISTING_APPLICANT_IDS = "applicantIDs";
protected static final String LISTING_LOCATION = "location";
/**
* resume fields
*/
protected static final String RESUME_USER_ID = "userID";
protected static final String RESUME_SCHOOL_YEAR = "yearInSchool";
protected static final String RESUME_CLASS_INDEXES = "classindexes";
protected static final String RESUME_WORK_EXPERIENCE = "workExperiences";
protected static final String RESUME_EDUCATION = "education";
protected static final String RESUME_SKILL_INDEXES ="skillindexes";
/**
* work experience fields
*/
protected static final String EXPERIENCE_TITLE = "title";
protected static final String EXPERIENCE_COMPANY = "company";
protected static final String EXPERIENCE_DATE_RANGE = "dateRange";
protected static final String EXPERIENCE_DESCRIPTION = "description";
/**
* education fields
*/
protected static final String EDUCATION_UNIVERSITY_NAME = "universityName";
protected static final String EDUCATION_MAJOR = "collegeMajor";
protected static final String EDUCATION_GPA = "GPA";
protected static final String EDUCATION_GRADUATION_DATE = "expectedGradDate";
/**
* review fields
*/
protected static final String REVIEWS = "reviews";
protected static final String REVIEW_FIRST_NAME = "firstName";
protected static final String REVIEW_LAST_NAME = "lastName";
protected static final String REVIEW_RATING = "rating";
protected static final String REVIEW_MESSAGE = "message";
protected static final String REVIEW_HIDDEN = "hidden";
}