View Javadoc
1   /*
2    * Copyright 2010 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 1.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl1.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.integration.cg.businessobject;
17  
18  import java.io.Serializable;
19  import java.util.LinkedHashMap;
20  import java.util.List;
21  
22  import javax.xml.bind.annotation.XmlAccessType;
23  import javax.xml.bind.annotation.XmlAccessorType;
24  import javax.xml.bind.annotation.XmlType;
25  
26  import org.kuali.ole.integration.cg.ContractsAndGrantsUnit;
27  import org.kuali.rice.krad.bo.BusinessObjectBase;
28  @XmlAccessorType(XmlAccessType.FIELD)
29  @XmlType(name = "unitDTO", propOrder = {
30      "organizationId",
31      "parentUnitNumber",
32      "unitAdministrators",
33      "unitName",
34      "unitNumber"
35  })
36  public class UnitDTO extends BusinessObjectBase implements ContractsAndGrantsUnit, Serializable {
37  
38      private static final long serialVersionUID = 7517946137745989736L;
39      
40      protected String unitNumber;
41      protected String parentUnitNumber;
42      
43      /* maybe you don't need this? */
44      protected String organizationId;
45      protected String unitName;
46      
47      /* List of principal ids */
48      protected List<String> unitAdministrators;
49  
50      public String getUnitNumber() {
51          return unitNumber;
52      }
53  
54      public void setUnitNumber(String unitNumber) {
55          this.unitNumber = unitNumber;
56      }
57  
58      public String getParentUnitNumber() {
59          return parentUnitNumber;
60      }
61  
62      public void setParentUnitNumber(String parentUnitNumber) {
63          this.parentUnitNumber = parentUnitNumber;
64      }
65  
66      public String getOrganizationId() {
67          return organizationId;
68      }
69  
70      public void setOrganizationId(String organizationId) {
71          this.organizationId = organizationId;
72      }
73  
74      public String getUnitName() {
75          return unitName;
76      }
77  
78      public void setUnitName(String unitName) {
79          this.unitName = unitName;
80      }
81  
82      public List<String> getUnitAdministrators() {
83          return unitAdministrators;
84      }
85  
86      public void setUnitAdministrators(List<String> unitAdministrators) {
87          this.unitAdministrators = unitAdministrators;
88      }
89  
90      public void refresh() {}
91  
92      /**
93       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
94       */
95      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
96          LinkedHashMap m = new LinkedHashMap();
97          m.put("UnitDTO", this.unitNumber);
98          return m;
99      }
100 
101 }
102