001 /**
002 * Copyright 2010 The Kuali Foundation Licensed under the
003 * Educational Community License, Version 2.0 (the "License"); you may
004 * not use this file except in compliance with the License. You may
005 * obtain a copy of the License at
006 *
007 * http://www.osedu.org/licenses/ECL-2.0
008 *
009 * Unless required by applicable law or agreed to in writing,
010 * software distributed under the License is distributed on an "AS IS"
011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012 * or implied. See the License for the specific language governing
013 * permissions and limitations under the License.
014 */
015
016 package org.kuali.student.lum.lu.dto;
017
018 import java.io.Serializable;
019 import java.util.Date;
020
021 import javax.xml.bind.annotation.XmlAccessType;
022 import javax.xml.bind.annotation.XmlAccessorType;
023 import javax.xml.bind.annotation.XmlAttribute;
024 import javax.xml.bind.annotation.XmlElement;
025
026 /**
027 * Information about an organization that is affiliated in some percentage with a learning unit. For when precision is needed to support counts or dollars.
028 *
029 * @Author KSContractMojo
030 * @Author Kamal
031 * @Since Mon Jan 11 15:21:05 PST 2010
032 * @See <a href="https://test.kuali.org/confluence/display/KULSTU/affiliatedOrgInfo+Structure">AffiliatedOrgInfo</>
033 *
034 */
035 @XmlAccessorType(XmlAccessType.FIELD)
036 public class AffiliatedOrgInfo implements Serializable {
037
038 private static final long serialVersionUID = 1L;
039
040 @XmlAttribute
041 private String id;
042
043 @XmlElement
044 private String orgId;
045
046 @XmlElement
047 private Date effectiveDate;
048
049 @XmlElement
050 private Date expirationDate;
051
052 @XmlElement
053 private Long percentage;
054
055 /**
056 * Unique identifier for an organization.
057 */
058 public String getOrgId() {
059 return orgId;
060 }
061
062 public void setOrgId(String orgId) {
063 this.orgId = orgId;
064 }
065
066 /**
067 * Specifies a date with no time component.
068 */
069 public Date getEffectiveDate() {
070 return effectiveDate;
071 }
072
073 public void setEffectiveDate(Date effectiveDate) {
074 this.effectiveDate = effectiveDate;
075 }
076
077 /**
078 * Specifies a date with no time component.
079 */
080 public Date getExpirationDate() {
081 return expirationDate;
082 }
083
084 public void setExpirationDate(Date expirationDate) {
085 this.expirationDate = expirationDate;
086 }
087
088 /**
089 * A long numeric value without a fractional component.
090 */
091 public Long getPercentage() {
092 return percentage;
093 }
094
095 public void setPercentage(Long percentage) {
096 this.percentage = percentage;
097 }
098
099 public String getId() {
100 return id;
101 }
102
103 public void setId(String id) {
104 this.id = id;
105 }
106 }