View Javadoc
1   /*
2    * Copyright 2011 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.ole.coa.identity;
17  
18  import org.kuali.rice.kim.api.role.RoleResponsibilityActionContract;
19  import org.kuali.rice.kim.api.role.RoleResponsibilityContract;
20  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
21  
22  public class OleKimRoleResponsibilityAction extends PersistableBusinessObjectBase implements RoleResponsibilityActionContract {
23  
24      protected String id;
25      protected String roleResponsibilityId;
26      protected String actionTypeCode;
27      protected String actionPolicyCode;
28      protected Integer priorityNumber;
29      protected String roleMemberId;
30      protected boolean forceAction;
31      
32      public OleKimRoleResponsibilityAction() {}
33      
34      public OleKimRoleResponsibilityAction( RoleResponsibilityActionContract b ) {
35          id = b.getId();
36          roleResponsibilityId = b.getRoleResponsibilityId();
37          roleMemberId = b.getRoleMemberId();
38          actionTypeCode = b.getActionTypeCode();
39          actionPolicyCode = b.getActionPolicyCode();
40          forceAction = b.isForceAction();
41          priorityNumber = b.getPriorityNumber();
42  //        roleResponsibility = b.getRoleResponsibility();
43      }
44      
45      
46  
47      @Override
48      public RoleResponsibilityContract getRoleResponsibility() {
49          throw new UnsupportedOperationException( "getRoleResponsibility needs to be implemented" );
50      }
51  
52  
53      public String getId() {
54          return id;
55      }
56  
57  
58      public void setId(String id) {
59          this.id = id;
60      }
61  
62  
63      public String getRoleResponsibilityId() {
64          return roleResponsibilityId;
65      }
66  
67  
68      public void setRoleResponsibilityId(String roleResponsibilityId) {
69          this.roleResponsibilityId = roleResponsibilityId;
70      }
71  
72  
73      public String getActionTypeCode() {
74          return actionTypeCode;
75      }
76  
77  
78      public void setActionTypeCode(String actionTypeCode) {
79          this.actionTypeCode = actionTypeCode;
80      }
81  
82  
83      public String getActionPolicyCode() {
84          return actionPolicyCode;
85      }
86  
87  
88      public void setActionPolicyCode(String actionPolicyCode) {
89          this.actionPolicyCode = actionPolicyCode;
90      }
91  
92  
93      public Integer getPriorityNumber() {
94          return priorityNumber;
95      }
96  
97  
98      public void setPriorityNumber(Integer priorityNumber) {
99          this.priorityNumber = priorityNumber;
100     }
101 
102 
103     public String getRoleMemberId() {
104         return roleMemberId;
105     }
106 
107 
108     public void setRoleMemberId(String roleMemberId) {
109         this.roleMemberId = roleMemberId;
110     }
111 
112 
113     public boolean isForceAction() {
114         return forceAction;
115     }
116 
117 
118     public void setForceAction(boolean forceAction) {
119         this.forceAction = forceAction;
120     }
121 
122 }