| 1 |  |   | 
  | 2 |  |   | 
  | 3 |  |   | 
  | 4 |  |   | 
  | 5 |  |   | 
  | 6 |  |   | 
  | 7 |  |   | 
  | 8 |  |   | 
  | 9 |  |   | 
  | 10 |  |   | 
  | 11 |  |   | 
  | 12 |  |   | 
  | 13 |  |   | 
  | 14 |  |   | 
  | 15 |  |   | 
  | 16 |  |  package org.kuali.student.core.organization.dto; | 
  | 17 |  |   | 
  | 18 |  |  import java.io.Serializable; | 
  | 19 |  |  import java.util.ArrayList; | 
  | 20 |  |  import java.util.Date; | 
  | 21 |  |  import java.util.HashMap; | 
  | 22 |  |  import java.util.List; | 
  | 23 |  |  import java.util.Map; | 
  | 24 |  |   | 
  | 25 |  |  import javax.xml.bind.annotation.XmlAccessType; | 
  | 26 |  |  import javax.xml.bind.annotation.XmlAccessorType; | 
  | 27 |  |  import javax.xml.bind.annotation.XmlAttribute; | 
  | 28 |  |  import javax.xml.bind.annotation.XmlElement; | 
  | 29 |  |  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | 
  | 30 |  |   | 
  | 31 |  |  import org.kuali.student.common.dto.HasAttributes; | 
  | 32 |  |  import org.kuali.student.common.dto.HasTypeState; | 
  | 33 |  |  import org.kuali.student.common.dto.Idable; | 
  | 34 |  |  import org.kuali.student.common.dto.MetaInfo; | 
  | 35 |  |  import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; | 
  | 36 |  |   | 
  | 37 |  |   | 
  | 38 |  |   | 
  | 39 |  |    | 
  | 40 |  |  @XmlAccessorType(XmlAccessType.FIELD) | 
  | 41 | 0 |  public class OrgInfo implements Serializable, Idable, HasTypeState, HasAttributes { | 
  | 42 |  |   | 
  | 43 |  |      private static final long serialVersionUID = 1L; | 
  | 44 |  |   | 
  | 45 |  |      @XmlElement | 
  | 46 |  |      private String longName; | 
  | 47 |  |   | 
  | 48 |  |      @XmlElement | 
  | 49 |  |      private String shortName; | 
  | 50 |  |   | 
  | 51 |  |      @XmlElement | 
  | 52 |  |      private String sortName; | 
  | 53 |  |   | 
  | 54 |  |      @XmlElement | 
  | 55 |  |      private String shortDesc; | 
  | 56 |  |   | 
  | 57 |  |      @XmlElement | 
  | 58 |  |      private String longDesc; | 
  | 59 |  |   | 
  | 60 |  |      @XmlElement | 
  | 61 |  |      private Date effectiveDate; | 
  | 62 |  |   | 
  | 63 |  |      @XmlElement | 
  | 64 |  |      private Date expirationDate; | 
  | 65 |  |   | 
  | 66 |  |      @XmlElement | 
  | 67 |  |      private List<OrgCodeInfo> orgCodes; | 
  | 68 |  |   | 
  | 69 |  |      @XmlElement | 
  | 70 |  |      @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) | 
  | 71 |  |      private Map<String, String> attributes; | 
  | 72 |  |   | 
  | 73 |  |      @XmlElement | 
  | 74 |  |      private MetaInfo metaInfo; | 
  | 75 |  |   | 
  | 76 |  |      @XmlAttribute | 
  | 77 |  |      private String type; | 
  | 78 |  |   | 
  | 79 |  |      @XmlAttribute | 
  | 80 |  |      private String state; | 
  | 81 |  |   | 
  | 82 |  |      @XmlAttribute | 
  | 83 |  |      private String id; | 
  | 84 |  |   | 
  | 85 |  |       | 
  | 86 |  |   | 
  | 87 |  |   | 
  | 88 |  |      public String getLongName() { | 
  | 89 | 0 |          return longName; | 
  | 90 |  |      } | 
  | 91 |  |   | 
  | 92 |  |      public void setLongName(String longName) { | 
  | 93 | 0 |          this.longName = longName; | 
  | 94 | 0 |      } | 
  | 95 |  |   | 
  | 96 |  |       | 
  | 97 |  |   | 
  | 98 |  |   | 
  | 99 |  |      public String getShortName() { | 
  | 100 | 0 |          return shortName; | 
  | 101 |  |      } | 
  | 102 |  |   | 
  | 103 |  |      public void setShortName(String shortName) { | 
  | 104 | 0 |          this.shortName = shortName; | 
  | 105 | 0 |      } | 
  | 106 |  |   | 
  | 107 |  |       | 
  | 108 |  |   | 
  | 109 |  |   | 
  | 110 |  |      public String getSortName() { | 
  | 111 | 0 |          return sortName; | 
  | 112 |  |      } | 
  | 113 |  |   | 
  | 114 |  |      public void setSortName(String sortName) { | 
  | 115 | 0 |          this.sortName = sortName; | 
  | 116 | 0 |      } | 
  | 117 |  |   | 
  | 118 |  |       | 
  | 119 |  |   | 
  | 120 |  |   | 
  | 121 |  |      public String getShortDesc() { | 
  | 122 | 0 |          return shortDesc; | 
  | 123 |  |      } | 
  | 124 |  |   | 
  | 125 |  |      public void setShortDesc(String shortDesc) { | 
  | 126 | 0 |          this.shortDesc = shortDesc; | 
  | 127 | 0 |      } | 
  | 128 |  |   | 
  | 129 |  |       | 
  | 130 |  |   | 
  | 131 |  |   | 
  | 132 |  |      public String getLongDesc() { | 
  | 133 | 0 |          return longDesc; | 
  | 134 |  |      } | 
  | 135 |  |   | 
  | 136 |  |      public void setLongDesc(String longDesc) { | 
  | 137 | 0 |          this.longDesc = longDesc; | 
  | 138 | 0 |      } | 
  | 139 |  |   | 
  | 140 |  |       | 
  | 141 |  |   | 
  | 142 |  |   | 
  | 143 |  |      public Date getEffectiveDate() { | 
  | 144 | 0 |          return effectiveDate; | 
  | 145 |  |      } | 
  | 146 |  |   | 
  | 147 |  |      public void setEffectiveDate(Date effectiveDate) { | 
  | 148 | 0 |          this.effectiveDate = effectiveDate; | 
  | 149 | 0 |      } | 
  | 150 |  |   | 
  | 151 |  |       | 
  | 152 |  |   | 
  | 153 |  |   | 
  | 154 |  |      public Date getExpirationDate() { | 
  | 155 | 0 |          return expirationDate; | 
  | 156 |  |      } | 
  | 157 |  |   | 
  | 158 |  |      public void setExpirationDate(Date expirationDate) { | 
  | 159 | 0 |          this.expirationDate = expirationDate; | 
  | 160 | 0 |      } | 
  | 161 |  |   | 
  | 162 |  |       | 
  | 163 |  |   | 
  | 164 |  |   | 
  | 165 |  |      public List<OrgCodeInfo> getOrgCodes() { | 
  | 166 | 0 |          if (orgCodes == null) { | 
  | 167 | 0 |              orgCodes = new ArrayList<OrgCodeInfo>(); | 
  | 168 |  |          } | 
  | 169 | 0 |          return orgCodes; | 
  | 170 |  |      } | 
  | 171 |  |   | 
  | 172 |  |      public void setOrgCodes(List<OrgCodeInfo> orgCodes) { | 
  | 173 | 0 |          this.orgCodes = orgCodes; | 
  | 174 | 0 |      } | 
  | 175 |  |   | 
  | 176 |  |       | 
  | 177 |  |   | 
  | 178 |  |   | 
  | 179 |  |      public Map<String, String> getAttributes() { | 
  | 180 | 0 |          if (attributes == null) { | 
  | 181 | 0 |              attributes = new HashMap<String, String>(); | 
  | 182 |  |          } | 
  | 183 | 0 |          return attributes; | 
  | 184 |  |      } | 
  | 185 |  |   | 
  | 186 |  |      public void setAttributes(Map<String, String> attributes) { | 
  | 187 | 0 |          this.attributes = attributes; | 
  | 188 | 0 |      } | 
  | 189 |  |   | 
  | 190 |  |       | 
  | 191 |  |   | 
  | 192 |  |   | 
  | 193 |  |      public MetaInfo getMetaInfo() { | 
  | 194 | 0 |          return metaInfo; | 
  | 195 |  |      } | 
  | 196 |  |   | 
  | 197 |  |      public void setMetaInfo(MetaInfo metaInfo) { | 
  | 198 | 0 |          this.metaInfo = metaInfo; | 
  | 199 | 0 |      } | 
  | 200 |  |   | 
  | 201 |  |       | 
  | 202 |  |   | 
  | 203 |  |   | 
  | 204 |  |      public String getType() { | 
  | 205 | 0 |          return type; | 
  | 206 |  |      } | 
  | 207 |  |   | 
  | 208 |  |      public void setType(String type) { | 
  | 209 | 0 |          this.type = type; | 
  | 210 | 0 |      } | 
  | 211 |  |   | 
  | 212 |  |       | 
  | 213 |  |   | 
  | 214 |  |   | 
  | 215 |  |      public String getState() { | 
  | 216 | 0 |          return state; | 
  | 217 |  |      } | 
  | 218 |  |   | 
  | 219 |  |      public void setState(String state) { | 
  | 220 | 0 |          this.state = state; | 
  | 221 | 0 |      } | 
  | 222 |  |   | 
  | 223 |  |       | 
  | 224 |  |   | 
  | 225 |  |   | 
  | 226 |  |      public String getId() { | 
  | 227 | 0 |          return id; | 
  | 228 |  |      } | 
  | 229 |  |   | 
  | 230 |  |      public void setId(String id) { | 
  | 231 | 0 |          this.id = id; | 
  | 232 | 0 |      } | 
  | 233 |  |  } |