Coverage Report - org.kuali.rice.kim.bo.role.impl.RoleResponsibilityActionImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
RoleResponsibilityActionImpl
0%
0/35
N/A
1
 
 1  
 /*
 2  
  * Copyright 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.kim.bo.role.dto.RoleResponsibilityActionInfo;
 20  
 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
 21  
 
 22  
 import javax.persistence.*;
 23  
 
 24  
 /**
 25  
  * This is a description of what this class does - kellerj don't forget to fill this in. 
 26  
  * 
 27  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 28  
  *
 29  
  */
 30  
 @Entity
 31  
 @Table(name="KRIM_ROLE_RSP_ACTN_T")
 32  0
 public class RoleResponsibilityActionImpl extends PersistableBusinessObjectBase {
 33  
 
 34  
         private static final long serialVersionUID = -2840071737863303404L;
 35  
         
 36  
         @Id
 37  
         @Column(name="ROLE_RSP_ACTN_ID")
 38  
         protected String roleResponsibilityActionId;
 39  
         @Column(name="ROLE_RSP_ID")
 40  
         protected String roleResponsibilityId;
 41  
         @Column(name="ROLE_MBR_ID")
 42  
         protected String roleMemberId;
 43  
         @Column(name="ACTN_TYP_CD")
 44  
         protected String actionTypeCode;
 45  
         @Column(name="ACTN_PLCY_CD")
 46  
         protected String actionPolicyCode;
 47  
         @Column(name="FRC_ACTN")
 48  
         @Type(type="yes_no")
 49  
         protected boolean forceAction;
 50  
         @Column(name="PRIORITY_NBR")
 51  
         protected Integer priorityNumber;
 52  
         
 53  
         @ManyToOne(targetEntity=RoleResponsibilityImpl.class, fetch = FetchType.EAGER, cascade = {})
 54  
         @JoinColumn(name="ROLE_RSP_ID",insertable=false, updatable=false)
 55  
         protected RoleResponsibilityImpl roleResponsibility;
 56  
         
 57  
         public String getRoleResponsibilityActionId() {
 58  0
                 return this.roleResponsibilityActionId;
 59  
         }
 60  
         public void setRoleResponsibilityActionId(String roleResponsibilityResolutionId) {
 61  0
                 this.roleResponsibilityActionId = roleResponsibilityResolutionId;
 62  0
         }
 63  
         public String getRoleResponsibilityId() {
 64  0
                 return this.roleResponsibilityId;
 65  
         }
 66  
         public void setRoleResponsibilityId(String roleResponsibilityId) {
 67  0
                 this.roleResponsibilityId = roleResponsibilityId;
 68  0
         }
 69  
         public String getActionTypeCode() {
 70  0
                 return this.actionTypeCode;
 71  
         }
 72  
         public void setActionTypeCode(String actionTypeCode) {
 73  0
                 this.actionTypeCode = actionTypeCode;
 74  0
         }
 75  
         public Integer getPriorityNumber() {
 76  0
                 return this.priorityNumber;
 77  
         }
 78  
         public void setPriorityNumber(Integer priorityNumber) {
 79  0
                 this.priorityNumber = priorityNumber;
 80  0
         }
 81  
 
 82  
         public String getActionPolicyCode() {
 83  0
                 return this.actionPolicyCode;
 84  
         }
 85  
         public void setActionPolicyCode(String actionPolicyCode) {
 86  0
                 this.actionPolicyCode = actionPolicyCode;
 87  0
         }
 88  
         public String getRoleMemberId() {
 89  0
                 return this.roleMemberId;
 90  
         }
 91  
         public void setRoleMemberId(String roleMemberId) {
 92  0
                 this.roleMemberId = roleMemberId;
 93  0
         }
 94  
         public RoleResponsibilityImpl getRoleResponsibility() {
 95  0
                 return this.roleResponsibility;
 96  
         }
 97  
         public void setRoleResponsibility(RoleResponsibilityImpl roleResponsibility) {
 98  0
                 this.roleResponsibility = roleResponsibility;
 99  0
         }
 100  
         /**
 101  
          * @return the forceAction
 102  
          */
 103  
         public boolean isForceAction() {
 104  0
                 return this.forceAction;
 105  
         }
 106  
         /**
 107  
          * @param forceAction the forceAction to set
 108  
          */
 109  
         public void setForceAction(boolean forceAction) {
 110  0
                 this.forceAction = forceAction;
 111  0
         }
 112  
         
 113  
         public RoleResponsibilityActionInfo toSimpleInfo(){
 114  0
                 RoleResponsibilityActionInfo roleResponsibilityActionInfo = new RoleResponsibilityActionInfo();
 115  0
                 roleResponsibilityActionInfo.setActionPolicyCode(actionPolicyCode);
 116  0
                 roleResponsibilityActionInfo.setActionTypeCode(actionTypeCode);
 117  0
                 roleResponsibilityActionInfo.setForceAction(forceAction);
 118  0
                 roleResponsibilityActionInfo.setPriorityNumber(priorityNumber);
 119  0
                 roleResponsibilityActionInfo.setRoleMemberId(roleMemberId);
 120  0
                 roleResponsibilityActionInfo.setRoleResponsibilityInfo(roleResponsibility.toSimpleInfo());
 121  0
                 roleResponsibilityActionInfo.setRoleResponsibilityActionId(roleResponsibilityActionId);
 122  0
                 roleResponsibilityActionInfo.setRoleResponsibilityId(roleResponsibilityId);
 123  0
                 return roleResponsibilityActionInfo;
 124  
         }
 125  
 }