001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     * http://www.opensource.org/licenses/ecl2.php
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.kfs.integration.cg.businessobject;
017    
018    import java.io.Serializable;
019    import java.util.LinkedHashMap;
020    import java.util.List;
021    
022    import javax.xml.bind.annotation.XmlAccessType;
023    import javax.xml.bind.annotation.XmlAccessorType;
024    import javax.xml.bind.annotation.XmlType;
025    
026    import org.kuali.kfs.integration.cg.ContractsAndGrantsUnit;
027    import org.kuali.rice.kns.bo.BusinessObjectBase;
028    @XmlAccessorType(XmlAccessType.FIELD)
029    @XmlType(name = "unitDTO", propOrder = {
030        "organizationId",
031        "parentUnitNumber",
032        "unitAdministrators",
033        "unitName",
034        "unitNumber"
035    })
036    public class UnitDTO extends BusinessObjectBase implements ContractsAndGrantsUnit, Serializable {
037    
038        private static final long serialVersionUID = 7517946137745989736L;
039        
040        private String unitNumber;
041        private String parentUnitNumber;
042        
043        /* maybe you don't need this? */
044        private String organizationId;
045        private String unitName;
046        
047        /* List of principal ids */
048        private List<String> unitAdministrators;
049    
050        public String getUnitNumber() {
051            return unitNumber;
052        }
053    
054        public void setUnitNumber(String unitNumber) {
055            this.unitNumber = unitNumber;
056        }
057    
058        public String getParentUnitNumber() {
059            return parentUnitNumber;
060        }
061    
062        public void setParentUnitNumber(String parentUnitNumber) {
063            this.parentUnitNumber = parentUnitNumber;
064        }
065    
066        public String getOrganizationId() {
067            return organizationId;
068        }
069    
070        public void setOrganizationId(String organizationId) {
071            this.organizationId = organizationId;
072        }
073    
074        public String getUnitName() {
075            return unitName;
076        }
077    
078        public void setUnitName(String unitName) {
079            this.unitName = unitName;
080        }
081    
082        public List<String> getUnitAdministrators() {
083            return unitAdministrators;
084        }
085    
086        public void setUnitAdministrators(List<String> unitAdministrators) {
087            this.unitAdministrators = unitAdministrators;
088        }
089    
090    
091        public void prepareForWorkflow() {
092            // TODO Auto-generated method stub
093            
094        }
095    
096        public void refresh() {
097            // TODO Auto-generated method stub
098            
099        }
100    
101        /**
102         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
103         */
104        protected LinkedHashMap toStringMapper() {
105            LinkedHashMap m = new LinkedHashMap();
106            m.put("UnitDTO", this.unitNumber);
107            return m;
108        }
109    
110    }
111