View Javadoc
1   /**
2    * Copyright 2005-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.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/ecl2.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.rice.krad.demo.uif.form;
17  
18  import org.kuali.rice.core.api.membership.MemberType;
19  import org.kuali.rice.kim.impl.group.GroupBo;
20  import org.kuali.rice.kim.impl.identity.principal.PrincipalBo;
21  import org.kuali.rice.kim.impl.role.RoleBo;
22  import org.kuali.rice.krad.bo.DataObjectBase;
23  
24  import java.io.Serializable;
25  
26  /**
27   * @author Kuali Rice Team (rice.collab@kuali.org)
28   */
29  public class UIRoleMember extends DataObjectBase implements Serializable {
30  
31      private String typeCode;
32  
33      private String principalName;
34  
35      private String name;
36  
37      private String description;
38  
39      public String getTypeCode() {
40          return typeCode;
41      }
42  
43      public void setTypeCode(String typeCode) {
44          this.typeCode = typeCode;
45      }
46  
47      public void setType(MemberType type) {
48          typeCode = type.getCode();
49      }
50  
51      public MemberType getType() {
52          return MemberType.fromCode(typeCode);
53      }
54  
55      public String getPrincipalName() {
56          return principalName;
57      }
58  
59      public void setPrincipalName(String principalName) {
60          this.principalName = principalName;
61      }
62  
63      public String getName() {
64          return name;
65      }
66  
67      public void setName(String name) {
68          this.name = name;
69      }
70  
71      public String getDescription() {
72          return description;
73      }
74  
75      public void setDescription(String description) {
76          this.description = description;
77      }
78  }