001/**
002 * Copyright 2010 The Kuali Foundation Licensed under the Educational Community
003 * License, Version 2.0 (the "License"); you may not use this file except in
004 * compliance with the License. You may obtain a copy of the License at
005 * http://www.osedu.org/licenses/ECL-2.0 Unless required by applicable law or
006 * agreed to in writing, software distributed under the License is distributed
007 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
008 * express or implied. See the License for the specific language governing
009 * permissions and limitations under the License.
010 */
011
012package org.kuali.student.r2.lum.clu.dto;
013
014import java.io.Serializable;
015import java.util.List;
016
017import javax.xml.bind.annotation.XmlAccessType;
018import javax.xml.bind.annotation.XmlAccessorType;
019import javax.xml.bind.annotation.XmlAnyElement;
020import javax.xml.bind.annotation.XmlElement;
021import javax.xml.bind.annotation.XmlType;
022
023import org.kuali.student.r2.common.dto.HasAttributesInfo;
024import org.kuali.student.r2.lum.clu.infc.CluInstructor;
025//import org.w3c.dom.Element;
026
027/**
028 * @author Kuali Student Team (sambitpa@kuali.org)
029 */
030@XmlAccessorType(XmlAccessType.FIELD)
031@XmlType(name = "CluInstructorInfo", propOrder = {"id", "orgId", "personId",
032        "personInfoOverride", "attributes" , "_futureElements" }) 
033public class CluInstructorInfo extends HasAttributesInfo implements CluInstructor, Serializable {
034
035    private static final long serialVersionUID = 1L;
036
037    @XmlElement
038    private String id;
039    @XmlElement
040    private String orgId;
041    @XmlElement
042    private String personId;
043    @XmlElement
044    private String personInfoOverride;
045    @XmlAnyElement
046    private List<Object> _futureElements;  
047
048    public CluInstructorInfo() {
049    }
050
051    public CluInstructorInfo(CluInstructor cluInstructor) {
052        super(cluInstructor);
053        if (cluInstructor != null) {
054            this.orgId = cluInstructor.getOrgId();
055            this.personId = cluInstructor.getPersonId();
056            this.personInfoOverride = cluInstructor.getPersonInfoOverride();
057        }
058    }
059
060    @Override
061    public String getId() {
062        return id;
063    }
064
065    public void setId(String id) {
066        this.id = id;
067    }
068
069    @Override
070    public String getOrgId() {
071        return orgId;
072    }
073
074    public void setOrgId(String orgId) {
075        this.orgId = orgId;
076    }
077
078    @Override
079    public String getPersonId() {
080        return personId;
081    }
082
083    public void setPersonId(String personId) {
084        this.personId = personId;
085    }
086
087    @Override
088    public String getPersonInfoOverride() {
089        return personInfoOverride;
090    }
091
092    public void setPersonInfoOverride(String personInfoOverride) {
093        this.personInfoOverride = personInfoOverride;
094    }
095
096}