| 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.common.assembly.data.Data; | 
  | 20 |  |  import org.kuali.student.common.assembly.helper.PropertyEnum; | 
  | 21 |  |   | 
  | 22 |  |   | 
  | 23 |  |  public class OrgVersionsHelper | 
  | 24 |  |  { | 
  | 25 |  |          private static final long serialVersionUID = 1; | 
  | 26 |  |           | 
  | 27 | 0 |          public enum Properties implements PropertyEnum | 
  | 28 |  |          { | 
  | 29 | 0 |                  ID ("id"), | 
  | 30 | 0 |                  TYPE ("type"), | 
  | 31 | 0 |                  VERSION_TITLE ("versionTitle"), | 
  | 32 | 0 |                  SUBJECT_AREA ("subjectArea"), | 
  | 33 | 0 |                  COURSE_NUMBER_SUFFIX ("courseNumberSuffix"), | 
  | 34 | 0 |                  VERSION_CODE ("versionCode"), | 
  | 35 | 0 |                  _RUNTIME_DATA ("_runtimeData"); | 
  | 36 |  |                   | 
  | 37 |  |                  private final String key; | 
  | 38 |  |                   | 
  | 39 |  |                  private Properties (final String key) | 
  | 40 | 0 |                  { | 
  | 41 | 0 |                          this.key = key; | 
  | 42 | 0 |                  } | 
  | 43 |  |                   | 
  | 44 |  |                  @Override | 
  | 45 |  |                  public String getKey () | 
  | 46 |  |                  { | 
  | 47 | 0 |                          return this.key; | 
  | 48 |  |                  } | 
  | 49 |  |          } | 
  | 50 |  |          private Data data; | 
  | 51 |  |           | 
  | 52 |  |          private OrgVersionsHelper (Data data) | 
  | 53 | 0 |          { | 
  | 54 | 0 |                  this.data = data; | 
  | 55 | 0 |          } | 
  | 56 |  |           | 
  | 57 |  |          public static OrgVersionsHelper wrap (Data data) | 
  | 58 |  |          { | 
  | 59 | 0 |                  if (data == null) | 
  | 60 |  |                  { | 
  | 61 | 0 |                           return null; | 
  | 62 |  |                  } | 
  | 63 | 0 |                  return new OrgVersionsHelper (data); | 
  | 64 |  |          } | 
  | 65 |  |           | 
  | 66 |  |          public Data getData () | 
  | 67 |  |          { | 
  | 68 | 0 |                  return data; | 
  | 69 |  |          } | 
  | 70 |  |           | 
  | 71 |  |           | 
  | 72 |  |          public void setId (String value) | 
  | 73 |  |          { | 
  | 74 | 0 |                  data.set (Properties.ID.getKey (), value); | 
  | 75 | 0 |          } | 
  | 76 |  |           | 
  | 77 |  |           | 
  | 78 |  |          public String getId () | 
  | 79 |  |          { | 
  | 80 | 0 |                  return (String) data.get (Properties.ID.getKey ()); | 
  | 81 |  |          } | 
  | 82 |  |           | 
  | 83 |  |           | 
  | 84 |  |          public void setType (String value) | 
  | 85 |  |          { | 
  | 86 | 0 |                  data.set (Properties.TYPE.getKey (), value); | 
  | 87 | 0 |          } | 
  | 88 |  |           | 
  | 89 |  |           | 
  | 90 |  |          public String getType () | 
  | 91 |  |          { | 
  | 92 | 0 |                  return (String) data.get (Properties.TYPE.getKey ()); | 
  | 93 |  |          } | 
  | 94 |  |           | 
  | 95 |  |           | 
  | 96 |  |          public void setVersionTitle (String value) | 
  | 97 |  |          { | 
  | 98 | 0 |                  data.set (Properties.VERSION_TITLE.getKey (), value); | 
  | 99 | 0 |          } | 
  | 100 |  |           | 
  | 101 |  |           | 
  | 102 |  |          public String getVersionTitle () | 
  | 103 |  |          { | 
  | 104 | 0 |                  return (String) data.get (Properties.VERSION_TITLE.getKey ()); | 
  | 105 |  |          } | 
  | 106 |  |           | 
  | 107 |  |           | 
  | 108 |  |          public void setSubjectArea (String value) | 
  | 109 |  |          { | 
  | 110 | 0 |                  data.set (Properties.SUBJECT_AREA.getKey (), value); | 
  | 111 | 0 |          } | 
  | 112 |  |           | 
  | 113 |  |           | 
  | 114 |  |          public String getSubjectArea () | 
  | 115 |  |          { | 
  | 116 | 0 |                  return (String) data.get (Properties.SUBJECT_AREA.getKey ()); | 
  | 117 |  |          } | 
  | 118 |  |           | 
  | 119 |  |           | 
  | 120 |  |          public void setCourseNumberSuffix (String value) | 
  | 121 |  |          { | 
  | 122 | 0 |                  data.set (Properties.COURSE_NUMBER_SUFFIX.getKey (), value); | 
  | 123 | 0 |          } | 
  | 124 |  |           | 
  | 125 |  |           | 
  | 126 |  |          public String getCourseNumberSuffix () | 
  | 127 |  |          { | 
  | 128 | 0 |                  return (String) data.get (Properties.COURSE_NUMBER_SUFFIX.getKey ()); | 
  | 129 |  |          } | 
  | 130 |  |           | 
  | 131 |  |           | 
  | 132 |  |          public void setVersionCode (String value) | 
  | 133 |  |          { | 
  | 134 | 0 |                  data.set (Properties.VERSION_CODE.getKey (), value); | 
  | 135 | 0 |          } | 
  | 136 |  |           | 
  | 137 |  |           | 
  | 138 |  |          public String getVersionCode () | 
  | 139 |  |          { | 
  | 140 | 0 |                  return (String) data.get (Properties.VERSION_CODE.getKey ()); | 
  | 141 |  |          } | 
  | 142 |  |           | 
  | 143 |  |           | 
  | 144 |  |          public void set_runtimeData (RuntimeDataHelper value) | 
  | 145 |  |          { | 
  | 146 | 0 |                  data.set (Properties._RUNTIME_DATA.getKey (), (value == null) ? null : value.getData ()); | 
  | 147 | 0 |          } | 
  | 148 |  |           | 
  | 149 |  |           | 
  | 150 |  |          public RuntimeDataHelper get_runtimeData () | 
  | 151 |  |          { | 
  | 152 | 0 |                  return RuntimeDataHelper.wrap ((Data) data.get (Properties._RUNTIME_DATA.getKey ())); | 
  | 153 |  |          } | 
  | 154 |  |           | 
  | 155 |  |  } | 
  | 156 |  |   |