1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.organization.assembly.data.server.org; |
17 | |
|
18 | |
|
19 | |
|
20 | |
import org.kuali.student.core.assembly.data.Data; |
21 | |
import org.kuali.student.core.assembly.helper.PropertyEnum; |
22 | |
|
23 | |
public class OrgSearchHelper { |
24 | |
private static final long serialVersionUID = 1L; |
25 | |
|
26 | 0 | public enum Properties implements PropertyEnum{ |
27 | 0 | ORG_ID("searchOrgs"); |
28 | |
|
29 | |
private final String key; |
30 | |
|
31 | 0 | private Properties(final String key) { |
32 | 0 | this.key = key; |
33 | 0 | } |
34 | |
|
35 | |
@Override |
36 | |
public String getKey() { |
37 | 0 | return this.key; |
38 | |
} |
39 | |
} |
40 | |
|
41 | |
private Data data; |
42 | |
|
43 | 0 | private OrgSearchHelper(Data data){ |
44 | 0 | this.data=data; |
45 | 0 | } |
46 | |
|
47 | |
public static OrgSearchHelper wrap (Data data) |
48 | |
{ |
49 | 0 | if (data == null) |
50 | |
{ |
51 | 0 | return null; |
52 | |
} |
53 | 0 | return new OrgSearchHelper(data); |
54 | |
} |
55 | |
|
56 | |
public Data getData(){ |
57 | 0 | return data; |
58 | |
} |
59 | |
|
60 | |
public void setOrgId(String id){ |
61 | 0 | data.set(Properties.ORG_ID.getKey(), id); |
62 | 0 | } |
63 | |
|
64 | |
public String getOrgId() { |
65 | 0 | return data.get(Properties.ORG_ID.getKey()); |
66 | |
} |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
} |