-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApplicant.java
More file actions
151 lines (118 loc) · 4.38 KB
/
Copy pathApplicant.java
File metadata and controls
151 lines (118 loc) · 4.38 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/*
* 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 recruitmentsystem;
import java.util.ArrayList;
/**
*
* @author mahmo
*/
public class Applicant extends Account {
private String DOB;
private ArrayList<ApplicationBand> ApplicationBands;
private String Address;
private String jobStatus;
private ArrayList<String> intrests;
private ArrayList<String> Achivments;
private ArrayList<String> MyJobOffers;
public Applicant(int ID, String name, String email, String username, String password, String DOB, String jobStatus, String Address) {
super(ID, name, email, username, password);
this.DOB = DOB;
this.jobStatus = jobStatus;
this.Address = Address;
ApplicationBands = new ArrayList();
SearchObj = new SearchJobTitle();
}
public ArrayList<ApplicationBand> getApplicationBands() {
return ApplicationBands;
}
public void setApplicationBands(ArrayList<ApplicationBand> ApplicationBands) {
this.ApplicationBands = ApplicationBands;
}
public String getDOB() {
return DOB;
}
public String getJobStatus() {
return jobStatus;
}
public ArrayList<String> getIntrests() {
return intrests;
}
public ArrayList<String> getAchivments() {
return Achivments;
}
public void setDOB(String DOB) {
this.DOB = DOB;
}
public void setJobStatus(String jobStatus) {
this.jobStatus = jobStatus;
}
public void setIntrests(ArrayList<String> intrests) {
this.intrests = intrests;
}
public void setAchivments(ArrayList<String> Achivments) {
this.Achivments = Achivments;
}
public String getAddress() {
return Address;
}
public void setAddress(String Address) {
this.Address = Address;
}
public ArrayList<String> getMyJobOffers() {
return MyJobOffers;
}
public void setMyJobOffers(ArrayList<String> MyJobOffers) {
this.MyJobOffers = MyJobOffers;
}
public void applyToJob(int APP_ID, boolean status, int experience, String proposal, int jobid,int bandid,String BandType,String description) {
Application A = new Application(APP_ID, status, experience, proposal, jobid);
CreateApplicationBand(bandid,BandType,description,A);
}
public void applyToJob(int APP_ID, boolean status, int experience, String proposal, int jobid,int bandid) {
Application A = new Application(APP_ID, status, experience, proposal, jobid);
ApplicationBands.get(bandid).getApps().add(A);
}
private void CreateApplicationBand(int id,String type,String description,ApplicationConsole ac) {
ApplicationConsole newband = new ApplicationBand(id,type,description);
newband.addApp(ac);
ApplicationBands.add((ApplicationBand) newband);
}
public void CreateApplicationBand(int id,String type,String description) {
ApplicationConsole newband = new ApplicationBand(id,type,description);
ApplicationBands.add((ApplicationBand) newband);
}
public void CreateApplicationBand(int id,String type,String description,int BandID) {
ApplicationConsole newband = new ApplicationBand(id,type,description);
ApplicationBands.get(BandID).addApp(newband);
}
public void respondToJobOffer(int messageid ,String Content,String senderinfo,String reciverinfo) {
this.getMessages().add(new Message(messageid,Content,senderinfo,reciverinfo));
}
public void postAchivment(String achievment) {
Achivments.add(achievment);
}
//make this view application using the composite display app function. u can just display every thing about the app
/*
public Application TrackApplication() {
for (ApplicationBand a:ApplicationBands) {
for(ApplicationConsole c:a.getApps()){
c.displayApp();
}
}
}*/
public void addIntrist(String intrist) {
intrests.add(intrist);
}
//do it directly to GUI with set values
/*@Override
public void EditProfile(string email,String username) {
}*/
//apply strategy pattern
@Override
public String Search(String s) {
return SearchObj.search(s);
}
}