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