| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
package org.kuali.rice.kew.actionrequest; |
| 18 | |
|
| 19 | |
import org.apache.commons.lang.StringUtils; |
| 20 | |
import org.apache.commons.lang.builder.ToStringBuilder; |
| 21 | |
import org.apache.commons.lang.builder.ToStringStyle; |
| 22 | |
import org.hibernate.annotations.Fetch; |
| 23 | |
import org.hibernate.annotations.FetchMode; |
| 24 | |
import org.hibernate.annotations.GenericGenerator; |
| 25 | |
import org.hibernate.annotations.Parameter; |
| 26 | |
import org.kuali.rice.core.framework.persistence.jpa.OrmUtils; |
| 27 | |
import org.kuali.rice.core.util.RiceConstants; |
| 28 | |
import org.kuali.rice.kew.actionitem.ActionItem; |
| 29 | |
import org.kuali.rice.kew.actiontaken.ActionTakenValue; |
| 30 | |
import org.kuali.rice.kew.engine.CompatUtils; |
| 31 | |
import org.kuali.rice.kew.engine.node.RouteNode; |
| 32 | |
import org.kuali.rice.kew.engine.node.RouteNodeInstance; |
| 33 | |
import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue; |
| 34 | |
import org.kuali.rice.kew.rule.RuleBaseValues; |
| 35 | |
import org.kuali.rice.kew.rule.service.RuleService; |
| 36 | |
import org.kuali.rice.kew.service.KEWServiceLocator; |
| 37 | |
import org.kuali.rice.kew.user.RoleRecipient; |
| 38 | |
import org.kuali.rice.kew.util.CodeTranslator; |
| 39 | |
import org.kuali.rice.kew.util.KEWConstants; |
| 40 | |
import org.kuali.rice.kim.bo.Group; |
| 41 | |
import org.kuali.rice.kim.bo.Person; |
| 42 | |
import org.kuali.rice.kim.bo.entity.KimPrincipal; |
| 43 | |
import org.kuali.rice.kim.service.KIMServiceLocator; |
| 44 | |
|
| 45 | |
import javax.persistence.*; |
| 46 | |
import java.io.Serializable; |
| 47 | |
import java.sql.Timestamp; |
| 48 | |
import java.util.ArrayList; |
| 49 | |
import java.util.Iterator; |
| 50 | |
import java.util.List; |
| 51 | |
|
| 52 | |
|
| 53 | |
|
| 54 | |
|
| 55 | |
|
| 56 | |
|
| 57 | |
|
| 58 | |
|
| 59 | |
@Entity |
| 60 | |
@Table(name="KREW_ACTN_RQST_T") |
| 61 | |
|
| 62 | |
@NamedQueries({ |
| 63 | |
@NamedQuery(name="ActionRequestValue.FindByRouteHeaderId", query="select arv from ActionRequestValue arv where arv.routeHeaderId = :routeHeaderId"), |
| 64 | |
@NamedQuery(name="ActionRequestValue.GetUserRequestCount", query="select count(arv) from ActionRequestValue arv where arv.routeHeaderId = :routeHeaderId and arv.recipientTypeCd = :recipientTypeCd and arv.principalId = :principalId and arv.currentIndicator = :currentIndicator"), |
| 65 | |
@NamedQuery(name="ActionRequestValue.FindActivatedByGroup", query="select count(arv) from ActionRequestValue arv where arv.groupId = :groupId and arv.currentIndicator = :currentIndicator and arv.status = :status"), |
| 66 | |
@NamedQuery(name="ActionRequestValue.FindAllByDocId", query="select arv from ActionRequestValue arv where arv.routeHeaderId = :routeHeaderId and arv.currentIndicator = :currentIndicator"), |
| 67 | |
@NamedQuery(name="ActionRequestValue.FindAllPendingByDocId", query="select arv from ActionRequestValue arv where arv.routeHeaderId = :routeHeaderId and arv.currentIndicator = :currentIndicator and (arv.status = '" + KEWConstants.ACTION_REQUEST_INITIALIZED + "' or arv.status = '" + KEWConstants.ACTION_REQUEST_ACTIVATED + "')"), |
| 68 | |
@NamedQuery(name="ActionRequestValue.FindAllRootByDocId", query="select arv from ActionRequestValue arv where arv.routeHeaderId = :routeHeaderId and arv.currentIndicator = :currentIndicator and arv.parentActionRequest is null"), |
| 69 | |
@NamedQuery(name="ActionRequestValue.FindByStatusAndDocId", query="select arv from ActionRequestValue arv where arv.routeHeaderId = :routeHeaderId and arv.currentIndicator = :currentIndicator and arv.status = :status"), |
| 70 | |
@NamedQuery(name="ActionRequestValue.FindPendingByActionRequestedAndDocId", query="select arv from ActionRequestValue arv where arv.routeHeaderId = :routeHeaderId and arv.currentIndicator = :currentIndicator and arv.actionRequested = :actionRequested and (arv.status = '" + KEWConstants.ACTION_REQUEST_INITIALIZED + "' or arv.status = '" + KEWConstants.ACTION_REQUEST_ACTIVATED + "')"), |
| 71 | |
@NamedQuery(name="ActionRequestValue.FindPendingByDocIdAtOrBelowRouteLevel", query="select arv from ActionRequestValue arv where arv.routeHeaderId = :routeHeaderId and arv.currentIndicator = :currentIndicator and arv.status <> :status and arv.routeLevel <= :routeLevel"), |
| 72 | |
@NamedQuery(name="ActionRequestValue.FindPendingByResponsibilityIds", query="select arv from ActionRequestValue arv where arv.responsibilityId in (:responsibilityIds) and (arv.status = '" + KEWConstants.ACTION_REQUEST_INITIALIZED + "' or arv.status = '" + KEWConstants.ACTION_REQUEST_ACTIVATED + "')"), |
| 73 | |
@NamedQuery(name="ActionRequestValue.FindPendingRootRequestsByDocIdAtOrBelowRouteLevel", query="select arv from ActionRequestValue arv where arv.routeHeaderId = :routeHeaderId and arv.currentIndicator = :currentIndicator and arv.parentActionRequest is null and arv.status <> :status and routeLevel <= :routeLevel"), |
| 74 | |
@NamedQuery(name="ActionRequestValue.FindPendingRootRequestsByDocIdAtRouteLevel", query="select arv from ActionRequestValue arv where arv.routeHeaderId = :routeHeaderId and arv.currentIndicator = :currentIndicator and arv.parentActionRequest is null and arv.status <> :status and routeLevel = :routeLevel"), |
| 75 | |
@NamedQuery(name="ActionRequestValue.FindPendingRootRequestsByDocIdAtRouteNode", query="select arv from ActionRequestValue arv where arv.routeHeaderId = :routeHeaderId and arv.currentIndicator = :currentIndicator and arv.parentActionRequest is null and arv.nodeInstance.routeNodeInstanceId = :routeNodeInstanceId and (arv.status = '" + KEWConstants.ACTION_REQUEST_INITIALIZED + "' or arv.status = '" + KEWConstants.ACTION_REQUEST_ACTIVATED + "')"), |
| 76 | |
@NamedQuery(name="ActionRequestValue.FindPendingRootRequestsByDocumentType", query="select arv from ActionRequestValue arv where arv.routeHeaderId in (select drhv.routeHeaderId from DocumentRouteHeaderValue drhv where drhv.documentTypeId = :documentTypeId) and arv.currentIndicator = :currentIndicator and arv.parentActionRequest is null and (arv.status = '" + KEWConstants.ACTION_REQUEST_INITIALIZED + "' or arv.status = '" + KEWConstants.ACTION_REQUEST_ACTIVATED + "')"), |
| 77 | |
@NamedQuery(name="ActionRequestValue.FindRootRequestsByDocIdAtRouteNode", query="select arv from ActionRequestValue arv where arv.routeHeaderId = :routeHeaderId and arv.currentIndicator = :currentIndicator and arv.parentActionRequest is null and arv.nodeInstance.routeNodeInstanceId = :routeNodeInstanceId"), |
| 78 | |
@NamedQuery(name="ActionRequestValue.GetRequestGroupIds", query="select arv.groupId from ActionRequestValue arv where arv.routeHeaderId = :routeHeaderId and arv.currentIndicator = :currentIndicator and arv.recipientTypeCd = :recipientTypeCd"), |
| 79 | |
@NamedQuery(name="ActionRequestValue.FindByStatusAndGroupId", query="select arv from ActionRequestValue arv where arv.groupId = :groupId and arv.currentIndicator = :currentIndicator and arv.status = :status") |
| 80 | |
}) |
| 81 | |
public class ActionRequestValue implements Serializable { |
| 82 | |
|
| 83 | |
private static final long serialVersionUID = 8781414791855848385L; |
| 84 | |
|
| 85 | 0 | private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(ActionRequestValue.class); |
| 86 | |
|
| 87 | |
private static final String ACTION_CODE_RANK = "FKACB"; |
| 88 | |
private static final String RECIPIENT_TYPE_RANK = "RWU"; |
| 89 | |
private static final String DELEGATION_TYPE_RANK = "SPN"; |
| 90 | |
|
| 91 | |
@Id |
| 92 | |
@GeneratedValue(generator="KREW_ACTN_RQST_S") |
| 93 | |
@GenericGenerator(name="KREW_ACTN_RQST_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={ |
| 94 | |
@Parameter(name="sequence_name",value="KREW_ACTN_RQST_S"), |
| 95 | |
@Parameter(name="value_column",value="id") |
| 96 | |
}) |
| 97 | |
@Column(name="ACTN_RQST_ID") |
| 98 | |
private Long actionRequestId; |
| 99 | |
@Column(name="ACTN_RQST_CD") |
| 100 | |
private String actionRequested; |
| 101 | |
@Column(name="DOC_HDR_ID") |
| 102 | |
private Long routeHeaderId; |
| 103 | |
@Column(name="STAT_CD") |
| 104 | |
private String status; |
| 105 | |
@Column(name="RSP_ID") |
| 106 | |
private Long responsibilityId; |
| 107 | |
@Column(name="GRP_ID") |
| 108 | |
private String groupId; |
| 109 | |
@Column(name="RECIP_TYP_CD") |
| 110 | |
private String recipientTypeCd; |
| 111 | |
@Column(name="PRIO_NBR") |
| 112 | |
private Integer priority; |
| 113 | |
@Column(name="RTE_LVL_NBR") |
| 114 | |
private Integer routeLevel; |
| 115 | |
@Column(name="ACTN_TKN_ID", insertable=false, updatable=false) |
| 116 | |
private Long actionTakenId; |
| 117 | 0 | @Column(name="DOC_VER_NBR") |
| 118 | |
private Integer docVersion = 1; |
| 119 | |
@Column(name="CRTE_DT") |
| 120 | |
private java.sql.Timestamp createDate; |
| 121 | |
@Column(name="RSP_DESC_TXT") |
| 122 | |
private String responsibilityDesc; |
| 123 | |
@Column(name="ACTN_RQST_ANNOTN_TXT") |
| 124 | |
private String annotation; |
| 125 | |
@Column(name="VER_NBR") |
| 126 | |
private Integer jrfVerNbr; |
| 127 | |
@Column(name="PRNCPL_ID") |
| 128 | |
private String principalId; |
| 129 | |
@Column(name="FRC_ACTN") |
| 130 | |
private Boolean forceAction; |
| 131 | |
@Column(name="PARNT_ID", insertable=false, updatable=false) |
| 132 | |
private Long parentActionRequestId; |
| 133 | |
@Column(name="QUAL_ROLE_NM") |
| 134 | |
private String qualifiedRoleName; |
| 135 | |
@Column(name="ROLE_NM") |
| 136 | |
private String roleName; |
| 137 | |
@Column(name="QUAL_ROLE_NM_LBL_TXT") |
| 138 | |
private String qualifiedRoleNameLabel; |
| 139 | |
@Transient |
| 140 | |
private String displayStatus; |
| 141 | |
@Column(name="RULE_ID") |
| 142 | |
private Long ruleBaseValuesId; |
| 143 | |
|
| 144 | 0 | @Column(name="DLGN_TYP") |
| 145 | |
private String delegationType = KEWConstants.DELEGATION_NONE; |
| 146 | |
@Column(name="APPR_PLCY") |
| 147 | |
private String approvePolicy; |
| 148 | |
|
| 149 | |
@ManyToOne(fetch=FetchType.EAGER) |
| 150 | |
@JoinColumn(name="PARNT_ID") |
| 151 | |
private ActionRequestValue parentActionRequest; |
| 152 | 0 | @Fetch(value = FetchMode.SELECT) |
| 153 | |
@OneToMany(mappedBy="parentActionRequest",cascade={CascadeType.PERSIST, CascadeType.MERGE},fetch=FetchType.EAGER) |
| 154 | |
private List<ActionRequestValue> childrenRequests = new ArrayList<ActionRequestValue>(); |
| 155 | |
@ManyToOne(fetch=FetchType.EAGER) |
| 156 | |
@JoinColumn(name="ACTN_TKN_ID") |
| 157 | |
private ActionTakenValue actionTaken; |
| 158 | |
|
| 159 | |
|
| 160 | 0 | @Column(name="CUR_IND") |
| 161 | |
private Boolean currentIndicator = true; |
| 162 | |
@Transient |
| 163 | |
private String createDateString; |
| 164 | |
@Transient |
| 165 | |
private String groupName; |
| 166 | |
|
| 167 | |
|
| 168 | |
|
| 169 | |
@ManyToOne(fetch=FetchType.EAGER) |
| 170 | |
@JoinColumn(name="RTE_NODE_INSTN_ID") |
| 171 | |
private RouteNodeInstance nodeInstance; |
| 172 | |
|
| 173 | |
@Column(name="RQST_LBL") |
| 174 | |
private String requestLabel; |
| 175 | |
|
| 176 | 0 | @Transient |
| 177 | |
private boolean resolveResponsibility = true; |
| 178 | |
@Transient |
| 179 | |
private DocumentRouteHeaderValue routeHeader; |
| 180 | |
@Transient |
| 181 | |
private List<ActionItem> simulatedActionItems; |
| 182 | |
|
| 183 | 0 | public ActionRequestValue() { |
| 184 | 0 | createDate = new Timestamp(System.currentTimeMillis()); |
| 185 | 0 | } |
| 186 | |
|
| 187 | |
|
| 188 | |
public void beforeInsert(){ |
| 189 | 0 | OrmUtils.populateAutoIncValue(this, KEWServiceLocator.getEntityManagerFactory().createEntityManager()); |
| 190 | 0 | } |
| 191 | |
|
| 192 | |
public Group getGroup() { |
| 193 | 0 | if (getGroupId() == null) { |
| 194 | 0 | LOG.error("Attempting to get a group with a blank group id"); |
| 195 | 0 | return null; |
| 196 | |
} |
| 197 | 0 | return KIMServiceLocator.getIdentityManagementService().getGroup(getGroupId()); |
| 198 | |
} |
| 199 | |
|
| 200 | |
public String getRouteLevelName() { |
| 201 | |
|
| 202 | 0 | if (CompatUtils.isRouteLevelRequest(this)) { |
| 203 | 0 | int routeLevelInt = getRouteLevel(); |
| 204 | 0 | if (routeLevelInt == KEWConstants.EXCEPTION_ROUTE_LEVEL) { |
| 205 | 0 | return "Exception"; |
| 206 | |
} |
| 207 | |
|
| 208 | 0 | List routeLevelNodes = CompatUtils.getRouteLevelCompatibleNodeList(KEWServiceLocator.getRouteHeaderService().getRouteHeader(routeHeaderId).getDocumentType()); |
| 209 | 0 | if (!(routeLevelInt < routeLevelNodes.size())) { |
| 210 | 0 | return "Not Found"; |
| 211 | |
} |
| 212 | 0 | return ((RouteNode)routeLevelNodes.get(routeLevelInt)).getRouteNodeName(); |
| 213 | |
} else { |
| 214 | 0 | return (nodeInstance == null ? "Exception" : nodeInstance.getName()); |
| 215 | |
} |
| 216 | |
} |
| 217 | |
|
| 218 | |
public boolean isUserRequest() { |
| 219 | 0 | return principalId != null; |
| 220 | |
} |
| 221 | |
|
| 222 | |
public KimPrincipal getPrincipal() { |
| 223 | 0 | if (getPrincipalId() == null) { |
| 224 | 0 | return null; |
| 225 | |
} |
| 226 | 0 | return KEWServiceLocator.getIdentityHelperService().getPrincipal(getPrincipalId()); |
| 227 | |
} |
| 228 | |
|
| 229 | |
public Person getPerson() { |
| 230 | 0 | if (getPrincipalId() == null) { |
| 231 | 0 | return null; |
| 232 | |
} |
| 233 | 0 | return KIMServiceLocator.getPersonService().getPerson(getPrincipalId()); |
| 234 | |
} |
| 235 | |
|
| 236 | |
public String getDisplayName() { |
| 237 | 0 | if (isUserRequest()) { |
| 238 | 0 | return getPerson().getName(); |
| 239 | 0 | } else if (isGroupRequest()) { |
| 240 | 0 | return getGroup().getGroupName(); |
| 241 | 0 | } else if (isRoleRequest()) { |
| 242 | 0 | return getRoleName(); |
| 243 | |
} |
| 244 | 0 | return ""; |
| 245 | |
} |
| 246 | |
|
| 247 | |
public Recipient getRecipient() { |
| 248 | 0 | if (getPrincipalId() != null) { |
| 249 | 0 | return new KimPrincipalRecipient(getPrincipal()); |
| 250 | 0 | } else if (getGroupId() != null){ |
| 251 | 0 | return new KimGroupRecipient(getGroup()); |
| 252 | |
} else { |
| 253 | 0 | return new RoleRecipient(this.getRoleName()); |
| 254 | |
} |
| 255 | |
} |
| 256 | |
|
| 257 | |
public boolean isPending() { |
| 258 | 0 | return KEWConstants.ACTION_REQUEST_INITIALIZED.equals(getStatus()) || KEWConstants.ACTION_REQUEST_ACTIVATED.equals(getStatus()); |
| 259 | |
} |
| 260 | |
|
| 261 | |
public String getStatusLabel() { |
| 262 | 0 | return CodeTranslator.getActionRequestStatusLabel(getStatus()); |
| 263 | |
} |
| 264 | |
|
| 265 | |
public String getActionRequestedLabel() { |
| 266 | 0 | if (StringUtils.isNotBlank(getRequestLabel())) { |
| 267 | 0 | return getRequestLabel(); |
| 268 | |
} |
| 269 | 0 | return CodeTranslator.getActionRequestLabel(getActionRequested()); |
| 270 | |
} |
| 271 | |
|
| 272 | |
|
| 273 | |
|
| 274 | |
|
| 275 | |
public ActionTakenValue getActionTaken() { |
| 276 | 0 | return actionTaken; |
| 277 | |
} |
| 278 | |
|
| 279 | |
|
| 280 | |
|
| 281 | |
|
| 282 | |
|
| 283 | |
public void setActionTaken(ActionTakenValue actionTaken) { |
| 284 | 0 | this.actionTaken = actionTaken; |
| 285 | 0 | } |
| 286 | |
|
| 287 | |
|
| 288 | |
|
| 289 | |
|
| 290 | |
public String getActionRequested() { |
| 291 | 0 | return actionRequested; |
| 292 | |
} |
| 293 | |
|
| 294 | |
|
| 295 | |
|
| 296 | |
|
| 297 | |
|
| 298 | |
public void setActionRequested(String actionRequested) { |
| 299 | 0 | this.actionRequested = actionRequested; |
| 300 | 0 | } |
| 301 | |
|
| 302 | |
|
| 303 | |
|
| 304 | |
|
| 305 | |
public Long getActionRequestId() { |
| 306 | 0 | return actionRequestId; |
| 307 | |
} |
| 308 | |
|
| 309 | |
|
| 310 | |
|
| 311 | |
|
| 312 | |
|
| 313 | |
public void setActionRequestId(Long actionRequestId) { |
| 314 | 0 | this.actionRequestId = actionRequestId; |
| 315 | 0 | } |
| 316 | |
|
| 317 | |
|
| 318 | |
|
| 319 | |
|
| 320 | |
public Long getActionTakenId() { |
| 321 | 0 | return actionTakenId; |
| 322 | |
} |
| 323 | |
|
| 324 | |
|
| 325 | |
|
| 326 | |
|
| 327 | |
|
| 328 | |
public void setActionTakenId(Long actionTakenId) { |
| 329 | 0 | this.actionTakenId = actionTakenId; |
| 330 | 0 | } |
| 331 | |
|
| 332 | |
|
| 333 | |
|
| 334 | |
|
| 335 | |
public String getAnnotation() { |
| 336 | 0 | return annotation; |
| 337 | |
} |
| 338 | |
|
| 339 | |
|
| 340 | |
|
| 341 | |
|
| 342 | |
|
| 343 | |
public void setAnnotation(String annotation) { |
| 344 | 0 | this.annotation = annotation; |
| 345 | 0 | } |
| 346 | |
|
| 347 | |
|
| 348 | |
|
| 349 | |
|
| 350 | |
public java.sql.Timestamp getCreateDate() { |
| 351 | 0 | return createDate; |
| 352 | |
} |
| 353 | |
|
| 354 | |
|
| 355 | |
|
| 356 | |
|
| 357 | |
|
| 358 | |
public void setCreateDate(java.sql.Timestamp createDate) { |
| 359 | 0 | this.createDate = createDate; |
| 360 | 0 | } |
| 361 | |
|
| 362 | |
|
| 363 | |
|
| 364 | |
|
| 365 | |
public Integer getDocVersion() { |
| 366 | 0 | return docVersion; |
| 367 | |
} |
| 368 | |
|
| 369 | |
|
| 370 | |
|
| 371 | |
|
| 372 | |
|
| 373 | |
public void setDocVersion(Integer docVersion) { |
| 374 | 0 | this.docVersion = docVersion; |
| 375 | 0 | } |
| 376 | |
|
| 377 | |
public String getPrincipalId() { |
| 378 | 0 | return principalId; |
| 379 | |
} |
| 380 | |
|
| 381 | |
public void setPrincipalId(String principalId) { |
| 382 | 0 | this.principalId = principalId; |
| 383 | 0 | } |
| 384 | |
|
| 385 | |
|
| 386 | |
|
| 387 | |
|
| 388 | |
public Boolean getForceAction() { |
| 389 | 0 | return forceAction; |
| 390 | |
} |
| 391 | |
|
| 392 | |
|
| 393 | |
|
| 394 | |
|
| 395 | |
|
| 396 | |
public void setForceAction(Boolean forceAction) { |
| 397 | 0 | this.forceAction = forceAction; |
| 398 | 0 | } |
| 399 | |
|
| 400 | |
|
| 401 | |
|
| 402 | |
|
| 403 | |
public Integer getJrfVerNbr() { |
| 404 | 0 | return jrfVerNbr; |
| 405 | |
} |
| 406 | |
|
| 407 | |
|
| 408 | |
|
| 409 | |
|
| 410 | |
|
| 411 | |
public void setJrfVerNbr(Integer jrfVerNbr) { |
| 412 | 0 | this.jrfVerNbr = jrfVerNbr; |
| 413 | 0 | } |
| 414 | |
|
| 415 | |
|
| 416 | |
|
| 417 | |
|
| 418 | |
public Integer getPriority() { |
| 419 | 0 | return priority; |
| 420 | |
} |
| 421 | |
|
| 422 | |
|
| 423 | |
|
| 424 | |
|
| 425 | |
|
| 426 | |
public void setPriority(Integer priority) { |
| 427 | 0 | this.priority = priority; |
| 428 | 0 | } |
| 429 | |
|
| 430 | |
|
| 431 | |
|
| 432 | |
|
| 433 | |
public String getRecipientTypeCd() { |
| 434 | 0 | return recipientTypeCd; |
| 435 | |
} |
| 436 | |
|
| 437 | |
|
| 438 | |
|
| 439 | |
|
| 440 | |
|
| 441 | |
public void setRecipientTypeCd(String recipientTypeCd) { |
| 442 | 0 | this.recipientTypeCd = recipientTypeCd; |
| 443 | 0 | } |
| 444 | |
|
| 445 | |
|
| 446 | |
|
| 447 | |
|
| 448 | |
public String getResponsibilityDesc() { |
| 449 | 0 | return responsibilityDesc; |
| 450 | |
} |
| 451 | |
|
| 452 | |
|
| 453 | |
|
| 454 | |
|
| 455 | |
|
| 456 | |
public void setResponsibilityDesc(String responsibilityDesc) { |
| 457 | 0 | this.responsibilityDesc = responsibilityDesc; |
| 458 | 0 | } |
| 459 | |
|
| 460 | |
|
| 461 | |
|
| 462 | |
|
| 463 | |
public Long getResponsibilityId() { |
| 464 | 0 | return responsibilityId; |
| 465 | |
} |
| 466 | |
|
| 467 | |
|
| 468 | |
|
| 469 | |
|
| 470 | |
|
| 471 | |
public void setResponsibilityId(Long responsibilityId) { |
| 472 | 0 | this.responsibilityId = responsibilityId; |
| 473 | 0 | } |
| 474 | |
|
| 475 | |
|
| 476 | |
|
| 477 | |
|
| 478 | |
public Long getRouteHeaderId() { |
| 479 | 0 | return routeHeaderId; |
| 480 | |
} |
| 481 | |
|
| 482 | |
public void setRouteHeaderId(Long routeHeaderId) { |
| 483 | 0 | this.routeHeaderId = routeHeaderId; |
| 484 | 0 | } |
| 485 | |
|
| 486 | |
public Integer getRouteLevel() { |
| 487 | 0 | return routeLevel; |
| 488 | |
} |
| 489 | |
|
| 490 | |
public void setRouteLevel(Integer routeLevel) { |
| 491 | 0 | this.routeLevel = routeLevel; |
| 492 | 0 | } |
| 493 | |
|
| 494 | |
public String getStatus() { |
| 495 | 0 | return status; |
| 496 | |
} |
| 497 | |
|
| 498 | |
public void setStatus(String status) { |
| 499 | 0 | this.status = status; |
| 500 | 0 | } |
| 501 | |
|
| 502 | |
public String getGroupId() { |
| 503 | 0 | return groupId; |
| 504 | |
} |
| 505 | |
|
| 506 | |
public void setGroupId(String groupId) { |
| 507 | 0 | this.groupId = groupId; |
| 508 | 0 | } |
| 509 | |
|
| 510 | |
public boolean isInitialized() { |
| 511 | 0 | return KEWConstants.ACTION_REQUEST_INITIALIZED.equals(getStatus()); |
| 512 | |
} |
| 513 | |
|
| 514 | |
public boolean isActive() { |
| 515 | 0 | return KEWConstants.ACTION_REQUEST_ACTIVATED.equals(getStatus()); |
| 516 | |
} |
| 517 | |
|
| 518 | |
public boolean isApproveOrCompleteRequest() { |
| 519 | 0 | return KEWConstants.ACTION_REQUEST_APPROVE_REQ.equals(getActionRequested()) || KEWConstants.ACTION_REQUEST_COMPLETE_REQ.equals(getActionRequested()); |
| 520 | |
} |
| 521 | |
|
| 522 | |
public boolean isDone() { |
| 523 | 0 | return KEWConstants.ACTION_REQUEST_DONE_STATE.equals(getStatus()); |
| 524 | |
} |
| 525 | |
|
| 526 | |
public boolean isReviewerUser() { |
| 527 | 0 | return KEWConstants.ACTION_REQUEST_USER_RECIPIENT_CD.equals(getRecipientTypeCd()); |
| 528 | |
} |
| 529 | |
|
| 530 | |
public boolean isRecipientRoutedRequest(String principalId) { |
| 531 | |
|
| 532 | |
|
| 533 | 0 | if (principalId == null || "".equals(principalId)) { |
| 534 | 0 | return false; |
| 535 | |
} |
| 536 | |
|
| 537 | 0 | boolean isRecipientInGraph = false; |
| 538 | 0 | if (isReviewerUser()) { |
| 539 | 0 | isRecipientInGraph = getPrincipalId().equals(principalId); |
| 540 | 0 | } else if (isGroupRequest()) { |
| 541 | 0 | Group group = getGroup(); |
| 542 | 0 | if (group == null){ |
| 543 | 0 | LOG.error("Was unable to retrieve workgroup " + getGroupId()); |
| 544 | |
} |
| 545 | 0 | isRecipientInGraph = KIMServiceLocator.getIdentityManagementService().isMemberOfGroup(principalId, group.getGroupId()); |
| 546 | |
} |
| 547 | |
|
| 548 | |
|
| 549 | 0 | for (ActionRequestValue childRequest : getChildrenRequests()) |
| 550 | |
{ |
| 551 | 0 | isRecipientInGraph = isRecipientInGraph || childRequest.isRecipientRoutedRequest(principalId); |
| 552 | |
} |
| 553 | |
|
| 554 | 0 | return isRecipientInGraph; |
| 555 | |
} |
| 556 | |
|
| 557 | |
public boolean isRecipientRoutedRequest(Recipient recipient) { |
| 558 | |
|
| 559 | |
|
| 560 | 0 | if (recipient == null) { |
| 561 | 0 | return false; |
| 562 | |
} |
| 563 | |
|
| 564 | 0 | boolean isRecipientInGraph = false; |
| 565 | 0 | if (isReviewerUser()) { |
| 566 | 0 | if (recipient instanceof KimPrincipalRecipient) { |
| 567 | 0 | isRecipientInGraph = getPrincipalId().equals(((KimPrincipalRecipient) recipient).getPrincipalId()); |
| 568 | 0 | } else if (recipient instanceof KimGroupRecipient){ |
| 569 | 0 | isRecipientInGraph = KIMServiceLocator.getIdentityManagementService().isMemberOfGroup(getPrincipalId(), ((KimGroupRecipient)recipient).getGroup().getGroupId()); |
| 570 | |
} |
| 571 | |
|
| 572 | 0 | } else if (isGroupRequest()) { |
| 573 | 0 | Group group = getGroup(); |
| 574 | 0 | if (group == null){ |
| 575 | 0 | LOG.error("Was unable to retrieve workgroup " + getGroupId()); |
| 576 | |
} |
| 577 | 0 | if (recipient instanceof KimPrincipalRecipient) { |
| 578 | 0 | KimPrincipalRecipient principalRecipient = (KimPrincipalRecipient)recipient; |
| 579 | 0 | isRecipientInGraph = KIMServiceLocator.getIdentityManagementService().isMemberOfGroup(principalRecipient.getPrincipalId(), group.getGroupId()); |
| 580 | 0 | } else if (recipient instanceof KimGroupRecipient) { |
| 581 | 0 | isRecipientInGraph = ((KimGroupRecipient) recipient).getGroup().getGroupId().equals(group.getGroupId()); |
| 582 | |
} |
| 583 | |
} |
| 584 | |
|
| 585 | |
|
| 586 | 0 | for (ActionRequestValue childRequest : getChildrenRequests()) |
| 587 | |
{ |
| 588 | 0 | isRecipientInGraph = isRecipientInGraph || childRequest.isRecipientRoutedRequest(recipient); |
| 589 | |
} |
| 590 | |
|
| 591 | 0 | return isRecipientInGraph; |
| 592 | |
} |
| 593 | |
|
| 594 | |
public boolean isGroupRequest(){ |
| 595 | 0 | return KEWConstants.ACTION_REQUEST_GROUP_RECIPIENT_CD.equals(getRecipientTypeCd()); |
| 596 | |
} |
| 597 | |
|
| 598 | |
public boolean isRoleRequest() { |
| 599 | 0 | return KEWConstants.ACTION_REQUEST_ROLE_RECIPIENT_CD.equals(getRecipientTypeCd()); |
| 600 | |
} |
| 601 | |
|
| 602 | |
public boolean isAcknowledgeRequest() { |
| 603 | 0 | return KEWConstants.ACTION_REQUEST_ACKNOWLEDGE_REQ.equals(getActionRequested()); |
| 604 | |
} |
| 605 | |
|
| 606 | |
public boolean isApproveRequest() { |
| 607 | 0 | return KEWConstants.ACTION_REQUEST_APPROVE_REQ.equals(getActionRequested()); |
| 608 | |
} |
| 609 | |
|
| 610 | |
public boolean isCompleteRequst() { |
| 611 | 0 | return KEWConstants.ACTION_REQUEST_COMPLETE_REQ.equals(getActionRequested()); |
| 612 | |
} |
| 613 | |
|
| 614 | |
public boolean isFYIRequest() { |
| 615 | 0 | return KEWConstants.ACTION_REQUEST_FYI_REQ.equals(getActionRequested()); |
| 616 | |
} |
| 617 | |
|
| 618 | |
|
| 619 | |
|
| 620 | |
|
| 621 | |
|
| 622 | |
|
| 623 | |
|
| 624 | |
|
| 625 | |
|
| 626 | |
public static int compareActionCode(String code1, String code2, boolean completeAndApproveTheSame) { |
| 627 | 0 | int cutoff = Integer.MAX_VALUE; |
| 628 | 0 | if (completeAndApproveTheSame) { |
| 629 | |
|
| 630 | 0 | cutoff = ACTION_CODE_RANK.length() - 3; |
| 631 | |
} |
| 632 | 0 | Integer code1Index = Math.min(ACTION_CODE_RANK.indexOf(code1), cutoff); |
| 633 | 0 | Integer code2Index = Math.min(ACTION_CODE_RANK.indexOf(code2), cutoff); |
| 634 | 0 | return code1Index.compareTo(code2Index); |
| 635 | |
} |
| 636 | |
|
| 637 | |
|
| 638 | |
|
| 639 | |
|
| 640 | |
|
| 641 | |
|
| 642 | |
|
| 643 | |
|
| 644 | |
public static int compareRecipientType(String type1, String type2) { |
| 645 | 0 | Integer type1Index = RECIPIENT_TYPE_RANK.indexOf(type1); |
| 646 | 0 | Integer type2Index = RECIPIENT_TYPE_RANK.indexOf(type2); |
| 647 | 0 | return type1Index.compareTo(type2Index); |
| 648 | |
} |
| 649 | |
|
| 650 | |
public static int compareDelegationType(String type1, String type2) { |
| 651 | 0 | if (StringUtils.isEmpty(type1)) { |
| 652 | 0 | type1 = "N"; |
| 653 | |
} |
| 654 | 0 | if (StringUtils.isEmpty(type2)) { |
| 655 | 0 | type2 = "N"; |
| 656 | |
} |
| 657 | 0 | Integer type1Index = DELEGATION_TYPE_RANK.indexOf(type1); |
| 658 | 0 | Integer type2Index = DELEGATION_TYPE_RANK.indexOf(type2); |
| 659 | 0 | return type1Index.compareTo(type2Index); |
| 660 | |
} |
| 661 | |
|
| 662 | |
public List<ActionItem> getActionItems() { |
| 663 | 0 | if (this.simulatedActionItems == null || this.simulatedActionItems.isEmpty()) { |
| 664 | 0 | return (List<ActionItem>) KEWServiceLocator.getActionListService().findByActionRequestId(actionRequestId); |
| 665 | |
} else { |
| 666 | 0 | return this.simulatedActionItems; |
| 667 | |
} |
| 668 | |
} |
| 669 | |
|
| 670 | |
public List<ActionItem> getSimulatedActionItems() { |
| 671 | 0 | if (this.simulatedActionItems == null) { |
| 672 | 0 | this.simulatedActionItems = new ArrayList<ActionItem>(); |
| 673 | |
} |
| 674 | 0 | return this.simulatedActionItems; |
| 675 | |
} |
| 676 | |
|
| 677 | |
public void setSimulatedActionItems(List<ActionItem> simulatedActionItems) { |
| 678 | 0 | this.simulatedActionItems = simulatedActionItems; |
| 679 | 0 | } |
| 680 | |
|
| 681 | |
public Boolean getCurrentIndicator() { |
| 682 | 0 | return currentIndicator; |
| 683 | |
} |
| 684 | |
|
| 685 | |
public void setCurrentIndicator(Boolean currentIndicator) { |
| 686 | 0 | this.currentIndicator = currentIndicator; |
| 687 | 0 | } |
| 688 | |
|
| 689 | |
public Long getParentActionRequestId() { |
| 690 | 0 | return parentActionRequestId; |
| 691 | |
} |
| 692 | |
|
| 693 | |
public void setParentActionRequestId(Long parentActionRequestId) { |
| 694 | 0 | this.parentActionRequestId = parentActionRequestId; |
| 695 | 0 | } |
| 696 | |
|
| 697 | |
public ActionRequestValue getParentActionRequest() { |
| 698 | 0 | return parentActionRequest; |
| 699 | |
} |
| 700 | |
|
| 701 | |
public void setParentActionRequest(ActionRequestValue parentActionRequest) { |
| 702 | 0 | this.parentActionRequest = parentActionRequest; |
| 703 | 0 | } |
| 704 | |
|
| 705 | |
public List<ActionRequestValue> getChildrenRequests() { |
| 706 | 0 | return childrenRequests; |
| 707 | |
} |
| 708 | |
|
| 709 | |
public void setChildrenRequests(List<ActionRequestValue> childrenRequests) { |
| 710 | 0 | this.childrenRequests = childrenRequests; |
| 711 | 0 | } |
| 712 | |
|
| 713 | |
public String getQualifiedRoleName() { |
| 714 | 0 | return qualifiedRoleName; |
| 715 | |
} |
| 716 | |
|
| 717 | |
public void setQualifiedRoleName(String roleName) { |
| 718 | 0 | this.qualifiedRoleName = roleName; |
| 719 | 0 | } |
| 720 | |
|
| 721 | |
public String getDelegationType() { |
| 722 | 0 | return delegationType; |
| 723 | |
} |
| 724 | |
|
| 725 | |
public void setDelegationType(String delegatePolicy) { |
| 726 | 0 | this.delegationType = delegatePolicy; |
| 727 | 0 | } |
| 728 | |
|
| 729 | |
public String getRoleName() { |
| 730 | 0 | return roleName; |
| 731 | |
} |
| 732 | |
|
| 733 | |
public void setRoleName(String roleName) { |
| 734 | 0 | this.roleName = roleName; |
| 735 | 0 | } |
| 736 | |
|
| 737 | |
public String getApprovePolicy() { |
| 738 | 0 | return approvePolicy; |
| 739 | |
} |
| 740 | |
|
| 741 | |
public void setApprovePolicy(String requestType) { |
| 742 | 0 | this.approvePolicy = requestType; |
| 743 | 0 | } |
| 744 | |
|
| 745 | |
public boolean getHasApprovePolicy() { |
| 746 | 0 | return getApprovePolicy() != null; |
| 747 | |
} |
| 748 | |
|
| 749 | |
public boolean isDeactivated() { |
| 750 | 0 | return KEWConstants.ACTION_REQUEST_DONE_STATE.equals(getStatus()); |
| 751 | |
} |
| 752 | |
|
| 753 | |
public boolean hasParent() { |
| 754 | 0 | return getParentActionRequest() != null; |
| 755 | |
} |
| 756 | |
|
| 757 | |
public boolean hasChild(ActionRequestValue actionRequest) { |
| 758 | 0 | if (actionRequest == null) |
| 759 | 0 | return false; |
| 760 | 0 | Long actionRequestId = actionRequest.getActionRequestId(); |
| 761 | 0 | for (Iterator<ActionRequestValue> iter = getChildrenRequests().iterator(); iter.hasNext();) { |
| 762 | 0 | ActionRequestValue childRequest = iter.next(); |
| 763 | 0 | if (childRequest.equals(actionRequest) || (actionRequestId != null && actionRequestId.equals(childRequest.getActionRequestId()))) { |
| 764 | 0 | return true; |
| 765 | |
} |
| 766 | 0 | } |
| 767 | 0 | return false; |
| 768 | |
} |
| 769 | |
|
| 770 | |
public String getDisplayStatus() { |
| 771 | 0 | return displayStatus; |
| 772 | |
} |
| 773 | |
|
| 774 | |
public void setDisplayStatus(String displayStatus) { |
| 775 | 0 | this.displayStatus = displayStatus; |
| 776 | 0 | } |
| 777 | |
|
| 778 | |
public String getQualifiedRoleNameLabel() { |
| 779 | 0 | return qualifiedRoleNameLabel; |
| 780 | |
} |
| 781 | |
|
| 782 | |
public void setQualifiedRoleNameLabel(String qualifiedRoleNameLabel) { |
| 783 | 0 | this.qualifiedRoleNameLabel = qualifiedRoleNameLabel; |
| 784 | 0 | } |
| 785 | |
|
| 786 | |
public String getCreateDateString() { |
| 787 | 0 | if (createDateString == null || createDateString.trim().equals("")) { |
| 788 | 0 | return RiceConstants.getDefaultDateFormat().format(getCreateDate()); |
| 789 | |
} else { |
| 790 | 0 | return createDateString; |
| 791 | |
} |
| 792 | |
} |
| 793 | |
|
| 794 | |
public void setCreateDateString(String createDateString) { |
| 795 | 0 | this.createDateString = createDateString; |
| 796 | 0 | } |
| 797 | |
|
| 798 | |
public RouteNodeInstance getNodeInstance() { |
| 799 | 0 | return nodeInstance; |
| 800 | |
} |
| 801 | |
|
| 802 | |
public String getPotentialNodeName() { |
| 803 | 0 | return (getNodeInstance() == null ? "" : getNodeInstance().getName()); |
| 804 | |
} |
| 805 | |
|
| 806 | |
public void setNodeInstance(RouteNodeInstance nodeInstance) { |
| 807 | 0 | this.nodeInstance = nodeInstance; |
| 808 | 0 | } |
| 809 | |
|
| 810 | |
public String getRecipientTypeLabel() { |
| 811 | 0 | return (String) KEWConstants.ACTION_REQUEST_RECIPIENT_TYPE.get(getRecipientTypeCd()); |
| 812 | |
} |
| 813 | |
|
| 814 | |
public RuleBaseValues getRuleBaseValues(){ |
| 815 | 0 | if(ruleBaseValuesId != null){ |
| 816 | 0 | return getRuleService().findRuleBaseValuesById(ruleBaseValuesId); |
| 817 | |
} |
| 818 | 0 | return null; |
| 819 | |
} |
| 820 | |
public Long getRuleBaseValuesId() { |
| 821 | 0 | return ruleBaseValuesId; |
| 822 | |
} |
| 823 | |
|
| 824 | |
public void setRuleBaseValuesId(Long ruleBaseValuesId) { |
| 825 | 0 | this.ruleBaseValuesId = ruleBaseValuesId; |
| 826 | 0 | } |
| 827 | |
|
| 828 | |
private RuleService getRuleService() { |
| 829 | 0 | return (RuleService) KEWServiceLocator.getService(KEWServiceLocator.RULE_SERVICE); |
| 830 | |
} |
| 831 | |
|
| 832 | |
public boolean isPrimaryDelegator() { |
| 833 | 0 | boolean primaryDelegator = false; |
| 834 | 0 | for (Iterator<ActionRequestValue> iter = childrenRequests.iterator(); iter.hasNext();) { |
| 835 | 0 | ActionRequestValue childRequest = iter.next(); |
| 836 | 0 | primaryDelegator = KEWConstants.DELEGATION_PRIMARY.equals(childRequest.getDelegationType()) || primaryDelegator; |
| 837 | 0 | } |
| 838 | 0 | return primaryDelegator; |
| 839 | |
} |
| 840 | |
|
| 841 | |
|
| 842 | |
|
| 843 | |
|
| 844 | |
|
| 845 | |
|
| 846 | |
|
| 847 | |
|
| 848 | |
public List<ActionRequestValue> getPrimaryDelegateRequests() { |
| 849 | 0 | List<ActionRequestValue> primaryDelegateRequests = new ArrayList<ActionRequestValue>(); |
| 850 | 0 | for (ActionRequestValue childRequest : childrenRequests) |
| 851 | |
{ |
| 852 | 0 | if (KEWConstants.DELEGATION_PRIMARY.equals(childRequest.getDelegationType())) |
| 853 | |
{ |
| 854 | 0 | if (childRequest.isRoleRequest()) |
| 855 | |
{ |
| 856 | 0 | for (ActionRequestValue actionRequestValue : childRequest.getChildrenRequests()) |
| 857 | |
{ |
| 858 | 0 | primaryDelegateRequests.add(actionRequestValue); |
| 859 | |
} |
| 860 | |
} else |
| 861 | |
{ |
| 862 | 0 | primaryDelegateRequests.add(childRequest); |
| 863 | |
} |
| 864 | |
} |
| 865 | |
} |
| 866 | 0 | return primaryDelegateRequests; |
| 867 | |
} |
| 868 | |
|
| 869 | |
public boolean isAdHocRequest() { |
| 870 | 0 | return KEWConstants.ADHOC_REQUEST_RESPONSIBILITY_ID.equals(getResponsibilityId()); |
| 871 | |
} |
| 872 | |
|
| 873 | |
public boolean isGeneratedRequest() { |
| 874 | 0 | return KEWConstants.MACHINE_GENERATED_RESPONSIBILITY_ID.equals(getResponsibilityId()); |
| 875 | |
} |
| 876 | |
|
| 877 | |
public boolean isExceptionRequest() { |
| 878 | 0 | return KEWConstants.EXCEPTION_REQUEST_RESPONSIBILITY_ID.equals(getResponsibilityId()); |
| 879 | |
} |
| 880 | |
|
| 881 | |
public boolean isRouteModuleRequest() { |
| 882 | 0 | return getResponsibilityId() > 0; |
| 883 | |
} |
| 884 | |
|
| 885 | |
public String toString() { |
| 886 | 0 | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| 887 | |
.append("actionRequestId", actionRequestId) |
| 888 | |
.append("actionRequested", actionRequested) |
| 889 | |
.append("routeHeaderId", routeHeaderId) |
| 890 | |
.append("status", status) |
| 891 | |
.append("responsibilityId", responsibilityId) |
| 892 | |
.append("groupId", groupId) |
| 893 | |
.append("recipientTypeCd", recipientTypeCd) |
| 894 | |
.append("priority", priority) |
| 895 | |
.append("routeLevel", routeLevel) |
| 896 | |
.append("actionTakenId", actionTakenId) |
| 897 | |
.append("docVersion", docVersion) |
| 898 | |
.append("createDate", createDate) |
| 899 | |
.append("responsibilityDesc", responsibilityDesc) |
| 900 | |
.append("annotation", annotation) |
| 901 | |
.append("jrfVerNbr", jrfVerNbr) |
| 902 | |
.append("principalId", principalId) |
| 903 | |
.append("forceAction", forceAction) |
| 904 | |
.append("parentActionRequestId", parentActionRequestId) |
| 905 | |
.append("qualifiedRoleName", qualifiedRoleName) |
| 906 | |
.append("roleName", roleName) |
| 907 | |
.append("qualifiedRoleNameLabel", qualifiedRoleNameLabel) |
| 908 | |
.append("displayStatus", displayStatus) |
| 909 | |
.append("ruleBaseValuesId", ruleBaseValuesId) |
| 910 | |
.append("delegationType", delegationType) |
| 911 | |
.append("approvePolicy", approvePolicy) |
| 912 | |
.append("childrenRequests", childrenRequests == null ? null : childrenRequests.size()) |
| 913 | |
.append("actionTaken", actionTaken) |
| 914 | |
.append("currentIndicator", currentIndicator) |
| 915 | |
.append("createDateString", createDateString) |
| 916 | |
.append("nodeInstance", nodeInstance).toString(); |
| 917 | |
} |
| 918 | |
|
| 919 | |
public String getRequestLabel() { |
| 920 | 0 | return this.requestLabel; |
| 921 | |
} |
| 922 | |
|
| 923 | |
public void setRequestLabel(String requestLabel) { |
| 924 | 0 | this.requestLabel = requestLabel; |
| 925 | 0 | } |
| 926 | |
|
| 927 | |
public String getGroupName() { |
| 928 | 0 | return KIMServiceLocator.getIdentityManagementService().getGroup(this.groupId).getGroupName(); |
| 929 | |
} |
| 930 | |
|
| 931 | |
|
| 932 | |
|
| 933 | |
|
| 934 | |
public boolean getResolveResponsibility() { |
| 935 | 0 | return this.resolveResponsibility; |
| 936 | |
} |
| 937 | |
|
| 938 | |
|
| 939 | |
|
| 940 | |
|
| 941 | |
public void setResolveResponsibility(boolean resolveResponsibility) { |
| 942 | 0 | this.resolveResponsibility = resolveResponsibility; |
| 943 | 0 | } |
| 944 | |
|
| 945 | |
public DocumentRouteHeaderValue getRouteHeader() { |
| 946 | 0 | if (this.routeHeader == null && this.routeHeaderId != null) { |
| 947 | 0 | this.routeHeader = KEWServiceLocator.getRouteHeaderService().getRouteHeader(this.routeHeaderId); |
| 948 | |
} |
| 949 | 0 | return this.routeHeader; |
| 950 | |
} |
| 951 | |
|
| 952 | |
public void setRouteHeader(DocumentRouteHeaderValue routeHeader) { |
| 953 | 0 | this.routeHeader = routeHeader; |
| 954 | 0 | } |
| 955 | |
|
| 956 | |
} |