| 1 |  |   | 
  | 2 |  |   | 
  | 3 |  |   | 
  | 4 |  |   | 
  | 5 |  |   | 
  | 6 |  |   | 
  | 7 |  |   | 
  | 8 |  |   | 
  | 9 |  |   | 
  | 10 |  |   | 
  | 11 |  |   | 
  | 12 |  |   | 
  | 13 |  |   | 
  | 14 |  |   | 
  | 15 |  |   | 
  | 16 |  |  package org.kuali.rice.kim.bo.role.dto; | 
  | 17 |  |   | 
  | 18 |  |  import java.io.Serializable; | 
  | 19 |  |  import java.util.ArrayList; | 
  | 20 |  |  import java.util.List; | 
  | 21 |  |   | 
  | 22 |  |  import org.kuali.rice.core.xml.dto.AttributeSet; | 
  | 23 |  |  import org.kuali.rice.kim.bo.role.KimResponsibility; | 
  | 24 |  |  import org.kuali.rice.kim.bo.role.ResponsibilityAction; | 
  | 25 |  |   | 
  | 26 |  |   | 
  | 27 |  |   | 
  | 28 |  |   | 
  | 29 |  |   | 
  | 30 |  |   | 
  | 31 |  |   | 
  | 32 |  |   | 
  | 33 |  |  public class ResponsibilityActionInfo implements ResponsibilityAction, Serializable { | 
  | 34 |  |   | 
  | 35 |  |          private static final long serialVersionUID = 308199072590100177L; | 
  | 36 |  |           | 
  | 37 |  |          protected String principalId; | 
  | 38 |  |          protected String groupId; | 
  | 39 |  |          protected String memberRoleId;  | 
  | 40 |  |          protected String responsibilityNamespaceCode; | 
  | 41 |  |          protected String responsibilityName; | 
  | 42 |  |          protected String responsibilityId; | 
  | 43 |  |          protected String roleId; | 
  | 44 |  |          protected String actionTypeCode; | 
  | 45 |  |          protected String actionPolicyCode; | 
  | 46 |  |          protected String roleResponsibilityActionId; | 
  | 47 | 0 |          protected String parallelRoutingGroupingCode = ""; | 
  | 48 |  |          protected boolean forceAction; | 
  | 49 |  |          protected Integer priorityNumber; | 
  | 50 |  |          protected AttributeSet qualifier; | 
  | 51 | 0 |          protected List<DelegateInfo> delegates = new ArrayList<DelegateInfo>(); | 
  | 52 |  |   | 
  | 53 |  |           | 
  | 54 |  |   | 
  | 55 |  |   | 
  | 56 | 0 |          public ResponsibilityActionInfo() { | 
  | 57 | 0 |          } | 
  | 58 |  |           | 
  | 59 |  |          public ResponsibilityActionInfo(String principalId, String groupId, String memberRoleId, KimResponsibility responsibility, | 
  | 60 | 0 |                          String roleId, AttributeSet qualifier, List<DelegateInfo> delegates ) { | 
  | 61 | 0 |                  this.principalId = principalId; | 
  | 62 | 0 |                  this.groupId = groupId; | 
  | 63 | 0 |                  this.memberRoleId = memberRoleId; | 
  | 64 | 0 |                  this.responsibilityNamespaceCode = responsibility.getNamespaceCode(); | 
  | 65 | 0 |                  this.responsibilityName = responsibility.getName(); | 
  | 66 | 0 |                  this.responsibilityId = responsibility.getResponsibilityId(); | 
  | 67 | 0 |                  this.roleId = roleId; | 
  | 68 | 0 |                  this.qualifier = qualifier; | 
  | 69 | 0 |                  this.delegates = delegates; | 
  | 70 | 0 |          } | 
  | 71 |  |   | 
  | 72 |  |          public String getActionTypeCode() { | 
  | 73 | 0 |                  return this.actionTypeCode; | 
  | 74 |  |          } | 
  | 75 |  |   | 
  | 76 |  |          public void setActionTypeCode(String actionTypeCode) { | 
  | 77 | 0 |                  this.actionTypeCode = actionTypeCode; | 
  | 78 | 0 |          } | 
  | 79 |  |   | 
  | 80 |  |          public Integer getPriorityNumber() { | 
  | 81 | 0 |                  return this.priorityNumber; | 
  | 82 |  |          } | 
  | 83 |  |   | 
  | 84 |  |          public void setPriorityNumber(Integer priorityNumber) { | 
  | 85 | 0 |                  this.priorityNumber = priorityNumber; | 
  | 86 | 0 |          } | 
  | 87 |  |   | 
  | 88 |  |          public String getPrincipalId() { | 
  | 89 | 0 |                  return this.principalId; | 
  | 90 |  |          } | 
  | 91 |  |   | 
  | 92 |  |          public void setPrincipalId(String principalId) { | 
  | 93 | 0 |                  this.principalId = principalId; | 
  | 94 | 0 |          } | 
  | 95 |  |   | 
  | 96 |  |          public String getResponsibilityName() { | 
  | 97 | 0 |                  return this.responsibilityName; | 
  | 98 |  |          } | 
  | 99 |  |   | 
  | 100 |  |          public void setResponsibilityName(String responsibilityName) { | 
  | 101 | 0 |                  this.responsibilityName = responsibilityName; | 
  | 102 | 0 |          } | 
  | 103 |  |   | 
  | 104 |  |          public String getRoleId() { | 
  | 105 | 0 |                  return this.roleId; | 
  | 106 |  |          } | 
  | 107 |  |   | 
  | 108 |  |          public void setRoleId(String roleId) { | 
  | 109 | 0 |                  this.roleId = roleId; | 
  | 110 | 0 |          } | 
  | 111 |  |   | 
  | 112 |  |          public String getGroupId() { | 
  | 113 | 0 |                  return this.groupId; | 
  | 114 |  |          } | 
  | 115 |  |   | 
  | 116 |  |          public void setGroupId(String groupId) { | 
  | 117 | 0 |                  this.groupId = groupId; | 
  | 118 | 0 |          } | 
  | 119 |  |   | 
  | 120 |  |          public AttributeSet getQualifier() { | 
  | 121 | 0 |                  return this.qualifier; | 
  | 122 |  |          } | 
  | 123 |  |   | 
  | 124 |  |          public void setQualifier(AttributeSet qualifier) { | 
  | 125 | 0 |                  this.qualifier = qualifier; | 
  | 126 | 0 |          } | 
  | 127 |  |   | 
  | 128 |  |          public List<DelegateInfo> getDelegates() { | 
  | 129 | 0 |                  return this.delegates; | 
  | 130 |  |          } | 
  | 131 |  |   | 
  | 132 |  |          public void setDelegates(List<DelegateInfo> delegates) { | 
  | 133 | 0 |                  this.delegates = delegates; | 
  | 134 | 0 |          } | 
  | 135 |  |   | 
  | 136 |  |          public String getResponsibilityNamespaceCode() { | 
  | 137 | 0 |                  return this.responsibilityNamespaceCode; | 
  | 138 |  |          } | 
  | 139 |  |   | 
  | 140 |  |          public void setResponsibilityNamespaceCode(String responsibilityNamespaceCode) { | 
  | 141 | 0 |                  this.responsibilityNamespaceCode = responsibilityNamespaceCode; | 
  | 142 | 0 |          } | 
  | 143 |  |   | 
  | 144 |  |           | 
  | 145 |  |   | 
  | 146 |  |   | 
  | 147 |  |          public String getResponsibilityId() { | 
  | 148 | 0 |                  return this.responsibilityId; | 
  | 149 |  |          } | 
  | 150 |  |   | 
  | 151 |  |           | 
  | 152 |  |   | 
  | 153 |  |   | 
  | 154 |  |          public void setResponsibilityId(String responsibilityId) { | 
  | 155 | 0 |                  this.responsibilityId = responsibilityId; | 
  | 156 | 0 |          } | 
  | 157 |  |   | 
  | 158 |  |          public String getActionPolicyCode() { | 
  | 159 | 0 |                  return this.actionPolicyCode; | 
  | 160 |  |          } | 
  | 161 |  |   | 
  | 162 |  |          public void setActionPolicyCode(String actionPolicyCode) { | 
  | 163 | 0 |                  this.actionPolicyCode = actionPolicyCode; | 
  | 164 | 0 |          } | 
  | 165 |  |   | 
  | 166 |  |          public String getMemberRoleId() { | 
  | 167 | 0 |                  return this.memberRoleId; | 
  | 168 |  |          } | 
  | 169 |  |   | 
  | 170 |  |          public void setMemberRoleId(String memberRoleId) { | 
  | 171 | 0 |                  this.memberRoleId = memberRoleId; | 
  | 172 | 0 |          } | 
  | 173 |  |   | 
  | 174 |  |           | 
  | 175 |  |   | 
  | 176 |  |   | 
  | 177 |  |          public boolean isForceAction() { | 
  | 178 | 0 |                  return this.forceAction; | 
  | 179 |  |          } | 
  | 180 |  |   | 
  | 181 |  |           | 
  | 182 |  |   | 
  | 183 |  |   | 
  | 184 |  |          public void setForceAction(boolean forceAction) { | 
  | 185 | 0 |                  this.forceAction = forceAction; | 
  | 186 | 0 |          } | 
  | 187 |  |   | 
  | 188 |  |           | 
  | 189 |  |   | 
  | 190 |  |   | 
  | 191 |  |   | 
  | 192 |  |   | 
  | 193 |  |   | 
  | 194 |  |   | 
  | 195 |  |          public String toString() { | 
  | 196 | 0 |              final String TAB = "\n"; | 
  | 197 |  |               | 
  | 198 | 0 |              String retValue = "ResponsibilityActionInfo ( " | 
  | 199 |  |                  + "principalId = " + this.principalId + TAB | 
  | 200 |  |                  + "groupId = " + this.groupId + TAB | 
  | 201 |  |                  + "memberRoleId = " + this.memberRoleId + TAB | 
  | 202 |  |                  + "responsibilityNamespaceCode = " + this.responsibilityNamespaceCode + TAB | 
  | 203 |  |                  + "responsibilityName = " + this.responsibilityName + TAB | 
  | 204 |  |                  + "responsibilityId = " + this.responsibilityId + TAB | 
  | 205 |  |                  + "roleId = " + this.roleId + TAB | 
  | 206 |  |                  + "actionTypeCode = " + this.actionTypeCode + TAB | 
  | 207 |  |                  + "actionPolicyCode = " + this.actionPolicyCode + TAB | 
  | 208 |  |                  + "forceAction = " + this.forceAction + TAB | 
  | 209 |  |                  + "priorityNumber = " + this.priorityNumber + TAB | 
  | 210 |  |                  + "qualifier = " + this.qualifier + TAB | 
  | 211 |  |                  + "delegates = " + this.delegates + TAB | 
  | 212 |  |                  + " )"; | 
  | 213 |  |           | 
  | 214 | 0 |              return retValue; | 
  | 215 |  |          } | 
  | 216 |  |   | 
  | 217 |  |          public String getParallelRoutingGroupingCode() { | 
  | 218 | 0 |                  return this.parallelRoutingGroupingCode; | 
  | 219 |  |          } | 
  | 220 |  |   | 
  | 221 |  |          public void setParallelRoutingGroupingCode(String actionGroupingCode) { | 
  | 222 | 0 |                  this.parallelRoutingGroupingCode = actionGroupingCode; | 
  | 223 | 0 |          } | 
  | 224 |  |   | 
  | 225 |  |          public String getRoleResponsibilityActionId() { | 
  | 226 | 0 |                  return this.roleResponsibilityActionId; | 
  | 227 |  |          } | 
  | 228 |  |   | 
  | 229 |  |          public void setRoleResponsibilityActionId(String roleResponsibilityActionId) { | 
  | 230 | 0 |                  this.roleResponsibilityActionId = roleResponsibilityActionId; | 
  | 231 | 0 |          } | 
  | 232 |  |           | 
  | 233 |  |           | 
  | 234 |  |  } |