Revision 35215
Added by Antonis Lempesis about 9 years ago
Request.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
public class Request implements Serializable { |
10 | 10 |
|
11 |
public static final int SUBMITTED = 1; |
|
12 |
public static final int APPROVED = 2; |
|
13 |
public static final int INVOICE_UPLOADED = 4; |
|
14 |
public static final int COMPLETED = 8; |
|
15 |
|
|
16 |
|
|
11 | 17 |
private String id; |
12 | 18 |
private String user; |
13 | 19 |
private Date date = new Date(); |
... | ... | |
16 | 22 |
private String publication; |
17 | 23 |
private String journal; |
18 | 24 |
private String budget; |
25 |
private int status = 0; |
|
19 | 26 |
|
20 | 27 |
public Request() { |
21 | 28 |
} |
22 | 29 |
|
30 |
public Request(String id, String user, Date date, String researcher, String project, String publication, String journal, String budget, int status) { |
|
31 |
this.id = id; |
|
32 |
this.user = user; |
|
33 |
this.date = date; |
|
34 |
this.researcher = researcher; |
|
35 |
this.project = project; |
|
36 |
this.publication = publication; |
|
37 |
this.journal = journal; |
|
38 |
this.budget = budget; |
|
39 |
this.status = status; |
|
40 |
} |
|
41 |
|
|
23 | 42 |
public String getId() { |
24 | 43 |
return id; |
25 | 44 |
} |
... | ... | |
83 | 102 |
public void setBudget(String budget) { |
84 | 103 |
this.budget = budget; |
85 | 104 |
} |
105 |
|
|
106 |
public void addStatus(int status) { |
|
107 |
this.status |= status; |
|
108 |
} |
|
109 |
|
|
110 |
public boolean getStatus(int status) { |
|
111 |
return (this.status & status) == status; |
|
112 |
} |
|
86 | 113 |
} |
Also available in: Unified diff
- Ignoring short name in organization searh
- Added request manager
- Added first implementation of eligibility manager