Coverage Report - org.kuali.rice.kim.bo.entity.impl.KimPrincipalImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
KimPrincipalImpl
0%
0/21
N/A
1
 
 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.entity.impl;
 17  
 
 18  
 import java.util.LinkedHashMap;
 19  
 
 20  
 import javax.persistence.Column;
 21  
 import javax.persistence.Entity;
 22  
 import javax.persistence.Id;
 23  
 import javax.persistence.Table;
 24  
 
 25  
 import org.hibernate.annotations.Type;
 26  
 import org.kuali.rice.kim.bo.entity.KimPrincipal;
 27  
 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
 28  
 
 29  
 /**
 30  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 31  
  */
 32  
 @Entity
 33  
 @Table(name="KRIM_PRNCPL_T")
 34  0
 public class KimPrincipalImpl extends PersistableBusinessObjectBase implements KimPrincipal {
 35  
 
 36  
         private static final long serialVersionUID = 4480581610252159266L;
 37  
 
 38  
         @Id
 39  
         @Column(name="PRNCPL_ID")
 40  
         private String principalId;
 41  
 
 42  
         @Column(name="PRNCPL_NM")
 43  
         private String principalName;
 44  
 
 45  
         @Column(name="ENTITY_ID")
 46  
         private String entityId;
 47  
 
 48  
         @Column(name="PRNCPL_PSWD")
 49  
         private String password;
 50  
 
 51  
         @Column(name="ACTV_IND")
 52  
         @Type(type="yes_no")
 53  
         private boolean active;
 54  
 
 55  
         @Override
 56  
         protected LinkedHashMap toStringMapper() {
 57  0
                 LinkedHashMap m = new LinkedHashMap();
 58  0
                 m.put( "principalId", this.principalId );
 59  0
                 m.put( "principalName", this.principalName );
 60  0
                 m.put( "entityId", this.entityId );
 61  0
                 return m;
 62  
         }
 63  
 
 64  
         public String getPrincipalId() {
 65  0
                 return this.principalId;
 66  
         }
 67  
 
 68  
         public void setPrincipalId(String principalId) {
 69  0
                 this.principalId = principalId;
 70  0
         }
 71  
 
 72  
         public String getPrincipalName() {
 73  0
                 return this.principalName;
 74  
         }
 75  
 
 76  
         public void setPrincipalName(String principalName) {
 77  0
                 this.principalName = principalName.toLowerCase();
 78  0
         }
 79  
 
 80  
         public String getEntityId() {
 81  0
                 return this.entityId;
 82  
         }
 83  
 
 84  
         public void setEntityId(String entityId) {
 85  0
                 this.entityId = entityId;
 86  0
         }
 87  
 
 88  
         public String getPassword() {
 89  0
                 return this.password;
 90  
         }
 91  
 
 92  
         public void setPassword(String password) {
 93  0
                 this.password = password;
 94  0
         }
 95  
 
 96  
         public boolean isActive() {
 97  0
                 return this.active;
 98  
         }
 99  
 
 100  
         public void setActive(boolean active) {
 101  0
                 this.active = active;
 102  0
         }
 103  
 
 104  
 }