Coverage Report - org.kuali.rice.kim.bo.ui.PersonDocumentGroup
 
Classes in this File Line Coverage Branch Coverage Complexity
PersonDocumentGroup
0%
0/31
0%
0/4
1.125
 
 1  
 /*
 2  
  * Copyright 2007-2008 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.kim.bo.ui;
 17  
 
 18  
 import java.sql.Date;
 19  
 import java.util.LinkedHashMap;
 20  
 
 21  
 import javax.persistence.Column;
 22  
 import javax.persistence.Entity;
 23  
 import javax.persistence.Id;
 24  
 import javax.persistence.Table;
 25  
 import javax.persistence.Transient;
 26  
 
 27  
 import org.apache.commons.lang.StringUtils;
 28  
 import org.kuali.rice.kim.bo.types.dto.KimTypeInfo;
 29  
 import org.kuali.rice.kim.service.KIMServiceLocator;
 30  
 
 31  
 /**
 32  
  * This is a description of what this class does - shyu don't forget to fill this in. 
 33  
  * 
 34  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 35  
  *
 36  
  */
 37  
 @Entity
 38  
 @Table(name="KRIM_PND_GRP_PRNCPL_MT")
 39  0
 public class PersonDocumentGroup extends KimDocumentBoBase {
 40  
         private static final long serialVersionUID = -1551337026170706411L;
 41  
         @Id
 42  
         @Column(name="GRP_MBR_ID")
 43  
         protected String groupMemberId;
 44  
         @Column(name="GRP_TYPE")
 45  
         protected String groupType;
 46  
                 
 47  
         @Column(name="GRP_ID")
 48  
         protected String groupId;
 49  
         @Column(name="GRP_NAME")
 50  
         protected String groupName;
 51  
         @Column(name="NMSPC_CD")
 52  
         protected String namespaceCode;
 53  
 
 54  
         protected String principalId;
 55  0
         @Transient
 56  
         protected transient KimTypeInfo kimGroupType = new KimTypeInfo();
 57  
         protected String kimTypeId;
 58  
 
 59  
         /**
 60  
          * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
 61  
          */
 62  
         @SuppressWarnings("unchecked")
 63  
         @Override
 64  
         protected LinkedHashMap toStringMapper() {
 65  0
                 LinkedHashMap m = super.toStringMapper();
 66  0
                 m.put( "groupMemberId", groupMemberId );
 67  0
                 m.put( "groupId", groupId );
 68  0
                 m.put( "principalId", principalId );
 69  0
                 return m;
 70  
         }
 71  
         
 72  
         public String getGroupId() {
 73  0
                 return this.groupId;
 74  
         }
 75  
 
 76  
         public void setGroupId(String groupId) {
 77  0
                 this.groupId = groupId;
 78  0
         }
 79  
 
 80  
         public String getGroupName() {
 81  0
                 return this.groupName;
 82  
         }
 83  
 
 84  
         public void setGroupName(String groupName) {
 85  0
                 this.groupName = groupName;
 86  0
         }
 87  
 
 88  
         public KimTypeInfo getKimGroupType() {
 89  0
                 if ( kimGroupType == null || !StringUtils.equals( kimGroupType.getKimTypeId(), kimTypeId ) ) {
 90  0
                         kimGroupType = KIMServiceLocator.getTypeInfoService().getKimType(kimTypeId);
 91  
                 }
 92  0
                 return kimGroupType;
 93  
         }
 94  
 
 95  
         public String getKimTypeId() {
 96  0
                 return this.kimTypeId;
 97  
         }
 98  
 
 99  
         public void setKimTypeId(String kimTypeId) {
 100  0
                 this.kimTypeId = kimTypeId;
 101  0
         }
 102  
 
 103  
         public String getGroupMemberId() {
 104  0
                 return this.groupMemberId;
 105  
         }
 106  
 
 107  
         public void setGroupMemberId(String groupMemberId) {
 108  0
                 this.groupMemberId = groupMemberId;
 109  0
         }
 110  
 
 111  
         public String getPrincipalId() {
 112  0
                 return this.principalId;
 113  
         }
 114  
 
 115  
         public void setPrincipalId(String principalId) {
 116  0
                 this.principalId = principalId;
 117  0
         }
 118  
 
 119  
         public String getGroupType() {
 120  0
                 return this.groupType;
 121  
         }
 122  
 
 123  
         public void setGroupType(String groupType) {
 124  0
                 this.groupType = groupType;
 125  0
         }
 126  
 
 127  
         public String getNamespaceCode() {
 128  0
                 return this.namespaceCode;
 129  
         }
 130  
 
 131  
         public void setNamespaceCode(String namespaceCode) {
 132  0
                 this.namespaceCode = namespaceCode;
 133  0
         }
 134  
 
 135  
 }