Coverage Report - org.kuali.rice.kim.bo.entity.dto.KimPrincipalInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
KimPrincipalInfo
0%
0/23
0%
0/2
1.1
 
 1  
 /*
 2  
  * Copyright 2007-2009 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.dto;
 17  
 
 18  
 import org.kuali.rice.kim.bo.entity.KimPrincipal;
 19  
 
 20  
 /**
 21  
  * DTO for a principal associated with a KIM entity 
 22  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 23  
  */
 24  
 public class KimPrincipalInfo extends KimInactivatableInfo implements KimPrincipal {
 25  
 
 26  
         private static final long serialVersionUID = 4480581610252159266L;
 27  
 
 28  
         private String principalId;
 29  
         private String principalName;
 30  
         private String entityId;
 31  
         private String password;
 32  
         
 33  
         /**
 34  
          * 
 35  
          */
 36  
         public KimPrincipalInfo() {
 37  0
                 super();
 38  0
                 active = true;
 39  0
         }
 40  
         
 41  
         /**
 42  
          * 
 43  
          */
 44  
         public KimPrincipalInfo( KimPrincipal p ) {
 45  0
                 this();
 46  0
                 if ( p != null ) {
 47  0
                         principalId = p.getPrincipalId();
 48  0
                         entityId = p.getEntityId();
 49  0
                         principalName = p.getPrincipalName();
 50  0
                         password = p.getPassword();
 51  0
                         active = p.isActive();
 52  
                 }
 53  0
         }
 54  
         
 55  
         /**
 56  
          * {@inheritDoc} 
 57  
          * @see org.kuali.rice.kim.bo.entity.KimPrincipal#getPrincipalId()
 58  
          */
 59  
         public String getPrincipalId() {
 60  0
                 return principalId;
 61  
         }
 62  
 
 63  
         public void setPrincipalId(String principalId) {
 64  0
                 this.principalId = principalId;
 65  0
         }
 66  
 
 67  
         /**
 68  
          * {@inheritDoc} 
 69  
          * @see org.kuali.rice.kim.bo.entity.KimPrincipal#getPrincipalName()
 70  
          */
 71  
         public String getPrincipalName() {
 72  0
                 return principalName;
 73  
         }
 74  
 
 75  
         public void setPrincipalName(String principalName) {
 76  0
                 this.principalName = principalName;
 77  0
         }
 78  
 
 79  
         /**
 80  
          * {@inheritDoc} 
 81  
          * @see org.kuali.rice.kim.bo.entity.KimPrincipal#getEntityId()
 82  
          */
 83  
         public String getEntityId() {
 84  0
                 return entityId;
 85  
         }
 86  
 
 87  
         public void setEntityId(String entityId) {
 88  0
                 this.entityId = entityId;
 89  0
         }
 90  
 
 91  
         /**
 92  
          * {@inheritDoc} 
 93  
          * @see org.kuali.rice.kim.bo.entity.KimPrincipal#getPassword()
 94  
          */
 95  
         public String getPassword() {
 96  0
                 return password;
 97  
         }
 98  
 
 99  
         public void setPassword(String password) {
 100  0
                 this.password = password;
 101  0
         }
 102  
 }