| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
package org.kuali.rice.kew.dto; |
| 18 | |
|
| 19 | |
public class RuleResponsibilityDTO implements java.io.Serializable { |
| 20 | |
|
| 21 | |
private static final long serialVersionUID = -5253556415865901457L; |
| 22 | |
|
| 23 | |
private Long responsibilityId; |
| 24 | |
private String actionRequestedCd; |
| 25 | |
private Integer priority; |
| 26 | |
private String approvePolicy; |
| 27 | |
|
| 28 | |
|
| 29 | |
|
| 30 | |
|
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
private String principalId; |
| 36 | |
private String groupId; |
| 37 | |
private String roleName; |
| 38 | |
|
| 39 | |
private RuleDelegationDTO[] delegationRules; |
| 40 | |
|
| 41 | 0 | public RuleResponsibilityDTO() {} |
| 42 | |
|
| 43 | |
public String getActionRequestedCd() { |
| 44 | 0 | return actionRequestedCd; |
| 45 | |
} |
| 46 | |
|
| 47 | |
public void setActionRequestedCd(String actionRequestedCd) { |
| 48 | 0 | this.actionRequestedCd = actionRequestedCd; |
| 49 | 0 | } |
| 50 | |
|
| 51 | |
public String getApprovePolicy() { |
| 52 | 0 | return approvePolicy; |
| 53 | |
} |
| 54 | |
|
| 55 | |
public void setApprovePolicy(String approvePolicy) { |
| 56 | 0 | this.approvePolicy = approvePolicy; |
| 57 | 0 | } |
| 58 | |
|
| 59 | |
public RuleDelegationDTO[] getDelegationRules() { |
| 60 | 0 | return delegationRules; |
| 61 | |
} |
| 62 | |
|
| 63 | |
public void setDelegationRules(RuleDelegationDTO[] delegationRules) { |
| 64 | 0 | this.delegationRules = delegationRules; |
| 65 | 0 | } |
| 66 | |
|
| 67 | |
public void addDelegationRule(RuleDelegationDTO delegationRule) { |
| 68 | 0 | if (getDelegationRules() == null) { |
| 69 | 0 | setDelegationRules(new RuleDelegationDTO[0]); |
| 70 | |
} |
| 71 | 0 | RuleDelegationDTO[] newDelegationRules = new RuleDelegationDTO[getDelegationRules().length+1]; |
| 72 | 0 | System.arraycopy(getDelegationRules(), 0, newDelegationRules, 0, getDelegationRules().length); |
| 73 | 0 | newDelegationRules[getDelegationRules().length] = delegationRule; |
| 74 | 0 | setDelegationRules(newDelegationRules); |
| 75 | 0 | } |
| 76 | |
|
| 77 | |
public Integer getPriority() { |
| 78 | 0 | return priority; |
| 79 | |
} |
| 80 | |
|
| 81 | |
public void setPriority(Integer priority) { |
| 82 | 0 | this.priority = priority; |
| 83 | 0 | } |
| 84 | |
|
| 85 | |
public Long getResponsibilityId() { |
| 86 | 0 | return responsibilityId; |
| 87 | |
} |
| 88 | |
|
| 89 | |
public void setResponsibilityId(Long responsibilityId) { |
| 90 | 0 | this.responsibilityId = responsibilityId; |
| 91 | 0 | } |
| 92 | |
|
| 93 | |
public String getRoleName() { |
| 94 | 0 | return roleName; |
| 95 | |
} |
| 96 | |
|
| 97 | |
public void setRoleName(String roleName) { |
| 98 | 0 | this.roleName = roleName; |
| 99 | 0 | } |
| 100 | |
|
| 101 | |
public String getPrincipalId() { |
| 102 | 0 | return principalId; |
| 103 | |
} |
| 104 | |
|
| 105 | |
public void setPrincipalId(String principalId) { |
| 106 | 0 | this.principalId = principalId; |
| 107 | 0 | } |
| 108 | |
|
| 109 | |
public String getGroupId() { |
| 110 | 0 | return groupId; |
| 111 | |
} |
| 112 | |
|
| 113 | |
public void setGroupId(String groupId) { |
| 114 | 0 | this.groupId = groupId; |
| 115 | 0 | } |
| 116 | |
|
| 117 | |
} |