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