Coverage Report - org.kuali.rice.kim.bo.role.impl.RolePermissionImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
RolePermissionImpl
0%
0/17
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.role.impl;
 17  
 
 18  
 import org.hibernate.annotations.Type;
 19  
 import org.kuali.rice.krad.bo.Inactivateable;
 20  
 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
 21  
 
 22  
 import javax.persistence.*;
 23  
 
 24  
 /**
 25  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 26  
  */
 27  
 @Entity
 28  
 @Table(name="KRIM_ROLE_PERM_T")
 29  0
 public class RolePermissionImpl extends PersistableBusinessObjectBase implements Inactivateable{
 30  
 
 31  
         private static final long serialVersionUID = 1L;
 32  
         
 33  
         @Id
 34  
         @Column(name="ROLE_PERM_ID")
 35  
         protected String rolePermissionId;
 36  
         @Column(name="ROLE_ID")
 37  
         protected String roleId;
 38  
         @Column(name="PERM_ID")
 39  
         protected String permissionId;
 40  
         @Type(type="yes_no")
 41  
         @Column(name="ACTV_IND")
 42  
         protected boolean active;
 43  
 
 44  
         @OneToOne(targetEntity=KimPermissionImpl.class, fetch = FetchType.EAGER, cascade = { })
 45  
         @JoinColumn(name = "PERM_ID", insertable = false, updatable = false)
 46  
         protected KimPermissionImpl kimPermission;
 47  
         
 48  
         public KimPermissionImpl getPermission() {
 49  0
                 return kimPermission;
 50  
         }
 51  
 
 52  
         public String getPermissionId() {
 53  0
                 return permissionId;
 54  
         }
 55  
         
 56  
         public String getRoleId() {
 57  0
                 return roleId;
 58  
         }
 59  
 
 60  
         public String getRolePermissionId() {
 61  0
                 return rolePermissionId;
 62  
         }
 63  
 
 64  
         public void setPermissionId(String permissionId) {
 65  0
                 this.permissionId = permissionId;
 66  0
         }
 67  
 
 68  
         public void setRoleId(String roleId) {
 69  0
                 this.roleId = roleId;
 70  0
         }
 71  
 
 72  
         public boolean isActive() {
 73  0
                 return this.active;
 74  
         }
 75  
 
 76  
         public void setActive(boolean active) {
 77  0
                 this.active = active;
 78  0
         }
 79  
 
 80  
         public void setRolePermissionId(String rolePermissionId) {
 81  0
                 this.rolePermissionId = rolePermissionId;
 82  0
         }
 83  
 
 84  
         /**
 85  
          * @return the kimPermission
 86  
          */
 87  
         public KimPermissionImpl getKimPermission() {
 88  0
                 return this.kimPermission;
 89  
         }
 90  
 
 91  
         /**
 92  
          * @param kimPermission the kimPermission to set
 93  
          */
 94  
         public void setKimPermission(KimPermissionImpl kimPermission) {
 95  0
                 this.kimPermission = kimPermission;
 96  0
         }
 97  
 
 98  
 }