Coverage Report - org.kuali.rice.kim.bo.ui.PersonDocumentGroup
 
Classes in this File Line Coverage Branch Coverage Complexity
PersonDocumentGroup
0%
0/26
0%
0/6
1.2
 
 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 org.apache.commons.lang.StringUtils;
 19  
 import org.hibernate.annotations.GenericGenerator;
 20  
 import org.hibernate.annotations.Parameter;
 21  
 import org.kuali.rice.kim.api.services.KimApiServiceLocator;
 22  
 import org.kuali.rice.kim.impl.type.KimTypeBo;
 23  
 
 24  
 import javax.persistence.Column;
 25  
 import javax.persistence.Entity;
 26  
 import javax.persistence.GeneratedValue;
 27  
 import javax.persistence.Id;
 28  
 import javax.persistence.IdClass;
 29  
 import javax.persistence.Table;
 30  
 import javax.persistence.Transient;
 31  
 
 32  
 /**
 33  
  * This is a description of what this class does - shyu don't forget to fill this in. 
 34  
  * 
 35  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 36  
  *
 37  
  */
 38  
 @IdClass(PersonDocumentGroupId.class) 
 39  
 @Entity
 40  
 @Table(name="KRIM_PND_GRP_PRNCPL_MT")
 41  0
 public class PersonDocumentGroup extends KimDocumentBoActivatableToFromEditableBase {
 42  
         private static final long serialVersionUID = -1551337026170706411L;
 43  
         @Id
 44  
         @GeneratedValue(generator="KRIM_GRP_MBR_ID_S")
 45  
         @GenericGenerator(name="KRIM_GRP_MBR_ID_S",strategy="org.kuali.rice.core.jpa.spring.RiceNumericStringSequenceStyleGenerator",parameters={
 46  
                         @Parameter(name="sequence_name",value="KRIM_GRP_MBR_ID_S"),
 47  
                         @Parameter(name="value_column",value="id")
 48  
                 })
 49  
         @Column(name="GRP_MBR_ID")
 50  
         protected String groupMemberId;
 51  
         @Column(name="GRP_TYPE")
 52  
         protected String groupType;
 53  
                 
 54  
         @Column(name="GRP_ID")
 55  
         protected String groupId;
 56  
         @Column(name="GRP_NM")
 57  
         protected String groupName;
 58  
         @Column(name="NMSPC_CD")
 59  
         protected String namespaceCode;
 60  
         @Column(name="PRNCPL_ID")
 61  
         protected String principalId;
 62  
         @Transient
 63  
         protected transient KimTypeBo kimGroupType;
 64  
         @Transient
 65  
         protected String kimTypeId;
 66  
         
 67  
         public String getGroupId() {
 68  0
                 return this.groupId;
 69  
         }
 70  
 
 71  
         public void setGroupId(String groupId) {
 72  0
                 this.groupId = groupId;
 73  0
         }
 74  
 
 75  
         public String getGroupName() {
 76  0
                 return this.groupName;
 77  
         }
 78  
 
 79  
         public void setGroupName(String groupName) {
 80  0
                 this.groupName = groupName;
 81  0
         }
 82  
 
 83  
         public KimTypeBo getKimGroupType() {
 84  0
         if (StringUtils.isNotBlank(kimTypeId)) {
 85  0
             if ( kimGroupType == null || (!StringUtils.equals( kimGroupType.getId(), kimTypeId )) ) {
 86  0
                             kimGroupType = KimTypeBo.from(KimApiServiceLocator.getKimTypeInfoService().getKimType(kimTypeId));
 87  
                     }
 88  
         }
 89  0
                 return kimGroupType;
 90  
         }
 91  
 
 92  
         public String getKimTypeId() {
 93  0
                 return this.kimTypeId;
 94  
         }
 95  
 
 96  
         public void setKimTypeId(String kimTypeId) {
 97  0
                 this.kimTypeId = kimTypeId;
 98  0
         }
 99  
 
 100  
         public String getGroupMemberId() {
 101  0
                 return this.groupMemberId;
 102  
         }
 103  
 
 104  
         public void setGroupMemberId(String groupMemberId) {
 105  0
                 this.groupMemberId = groupMemberId;
 106  0
         }
 107  
 
 108  
         public String getPrincipalId() {
 109  0
                 return this.principalId;
 110  
         }
 111  
 
 112  
         public void setPrincipalId(String principalId) {
 113  0
                 this.principalId = principalId;
 114  0
         }
 115  
 
 116  
         public String getGroupType() {
 117  0
                 return this.groupType;
 118  
         }
 119  
 
 120  
         public void setGroupType(String groupType) {
 121  0
                 this.groupType = groupType;
 122  0
         }
 123  
 
 124  
         public String getNamespaceCode() {
 125  0
                 return this.namespaceCode;
 126  
         }
 127  
 
 128  
         public void setNamespaceCode(String namespaceCode) {
 129  0
                 this.namespaceCode = namespaceCode;
 130  0
         }
 131  
 
 132  
 
 133  
 }