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.module.external.kc.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 @XmlAccessorType(XmlAccessType.FIELD)
028 @XmlType(name = "unitDTO", propOrder = {
029 "organizationId",
030 "parentUnitNumber",
031 "unitAdministrators",
032 "unitName",
033 "unitNumber"
034 })
035 public class UnitDTO implements ContractsAndGrantsUnit, Serializable {
036
037 private static final long serialVersionUID = 7517946137745989736L;
038
039 private String unitNumber;
040 private String parentUnitNumber;
041
042 /* maybe you don't need this? */
043 private String organizationId;
044 private String unitName;
045
046 /* List of principal ids */
047 private List<String> unitAdministrators;
048
049 public String getUnitNumber() {
050 return unitNumber;
051 }
052
053 public void setUnitNumber(String unitNumber) {
054 this.unitNumber = unitNumber;
055 }
056
057 public String getParentUnitNumber() {
058 return parentUnitNumber;
059 }
060
061 public void setParentUnitNumber(String parentUnitNumber) {
062 this.parentUnitNumber = parentUnitNumber;
063 }
064
065 public String getOrganizationId() {
066 return organizationId;
067 }
068
069 public void setOrganizationId(String organizationId) {
070 this.organizationId = organizationId;
071 }
072
073 public String getUnitName() {
074 return unitName;
075 }
076
077 public void setUnitName(String unitName) {
078 this.unitName = unitName;
079 }
080
081 public List<String> getUnitAdministrators() {
082 return unitAdministrators;
083 }
084
085 public void setUnitAdministrators(List<String> unitAdministrators) {
086 this.unitAdministrators = unitAdministrators;
087 }
088
089
090 public void prepareForWorkflow() {
091 // TODO Auto-generated method stub
092
093 }
094
095 public void refresh() {
096 // TODO Auto-generated method stub
097
098 }
099
100 protected LinkedHashMap toStringMapper() {
101 LinkedHashMap m = new LinkedHashMap();
102 m.put("UnitDTO", this.unitNumber);
103 return m;
104 }
105
106 }
107