| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.rice.kew.removereplace.web; |
| 17 | |
|
| 18 | |
import java.util.ArrayList; |
| 19 | |
import java.util.List; |
| 20 | |
import java.util.Map; |
| 21 | |
|
| 22 | |
import org.apache.commons.collections.Factory; |
| 23 | |
import org.apache.commons.collections.ListUtils; |
| 24 | |
import org.kuali.rice.kew.removereplace.RemoveReplaceDocument; |
| 25 | |
import org.kuali.rice.kew.web.KewRoutingKualiForm; |
| 26 | |
import org.kuali.rice.kew.web.ShowHideTree; |
| 27 | |
import org.kuali.rice.kew.web.WorkflowRoutingForm; |
| 28 | |
import org.kuali.rice.kim.bo.Person; |
| 29 | |
|
| 30 | |
|
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
|
| 36 | |
public class RemoveReplaceForm extends KewRoutingKualiForm { |
| 37 | |
|
| 38 | 0 | private String methodToCall = ""; |
| 39 | |
private String lookupableImplServiceName; |
| 40 | |
private String conversionFields; |
| 41 | |
private Map actionRequestCodes; |
| 42 | 0 | private String searchLink = ""; |
| 43 | 0 | private String searchLinkText = ""; |
| 44 | |
|
| 45 | |
|
| 46 | |
private String userId; |
| 47 | |
private String replacementUserId; |
| 48 | |
private String ruleDocumentTypeName; |
| 49 | |
private String ruleRuleTemplate; |
| 50 | |
|
| 51 | 0 | private String operation = RemoveReplaceDocument.REPLACE_OPERATION; |
| 52 | 0 | private List<RemoveReplaceRule> rules = ListUtils.lazyList(new ArrayList<RemoveReplaceRule>(), |
| 53 | 0 | new Factory() { |
| 54 | |
public Object create() { |
| 55 | 0 | return new RemoveReplaceRule(); |
| 56 | |
} |
| 57 | |
}); |
| 58 | 0 | private List<RemoveReplaceWorkgroup> workgroups = ListUtils.lazyList(new ArrayList<RemoveReplaceWorkgroup>(), |
| 59 | 0 | new Factory() { |
| 60 | |
public Object create() { |
| 61 | 0 | return new RemoveReplaceWorkgroup(); |
| 62 | |
} |
| 63 | |
}); |
| 64 | |
|
| 65 | |
|
| 66 | |
private Person user; |
| 67 | |
private Person replacementUser; |
| 68 | |
|
| 69 | |
private RemoveReplaceDocument document; |
| 70 | |
|
| 71 | 0 | private boolean operationSelected = false; |
| 72 | 0 | private ShowHideTree showHide = new ShowHideTree(); |
| 73 | 0 | private boolean report = false; |
| 74 | |
|
| 75 | 0 | public RemoveReplaceForm() { |
| 76 | 0 | } |
| 77 | |
|
| 78 | |
public String getMethodToCall() { |
| 79 | 0 | return this.methodToCall; |
| 80 | |
} |
| 81 | |
|
| 82 | |
public void setMethodToCall(String methodToCall) { |
| 83 | 0 | this.methodToCall = methodToCall; |
| 84 | 0 | } |
| 85 | |
|
| 86 | |
public String getLookupableImplServiceName() { |
| 87 | 0 | return this.lookupableImplServiceName; |
| 88 | |
} |
| 89 | |
|
| 90 | |
public void setLookupableImplServiceName(String lookupableImplServiceName) { |
| 91 | 0 | this.lookupableImplServiceName = lookupableImplServiceName; |
| 92 | 0 | } |
| 93 | |
|
| 94 | |
public String getRuleDocumentTypeName() { |
| 95 | 0 | return this.ruleDocumentTypeName; |
| 96 | |
} |
| 97 | |
|
| 98 | |
public String getOperation() { |
| 99 | 0 | return this.operation; |
| 100 | |
} |
| 101 | |
|
| 102 | |
public void setOperation(String operation) { |
| 103 | 0 | this.operation = operation; |
| 104 | 0 | } |
| 105 | |
|
| 106 | |
public void setRuleDocumentTypeName(String ruleDocumentType) { |
| 107 | 0 | this.ruleDocumentTypeName = ruleDocumentType; |
| 108 | 0 | } |
| 109 | |
|
| 110 | |
public String getRuleRuleTemplate() { |
| 111 | 0 | return this.ruleRuleTemplate; |
| 112 | |
} |
| 113 | |
|
| 114 | |
public void setRuleRuleTemplate(String ruleRuleTemplate) { |
| 115 | 0 | this.ruleRuleTemplate = ruleRuleTemplate; |
| 116 | 0 | } |
| 117 | |
|
| 118 | |
public List<RemoveReplaceRule> getRules() { |
| 119 | 0 | return this.rules; |
| 120 | |
} |
| 121 | |
|
| 122 | |
public void setRules(List<RemoveReplaceRule> rules) { |
| 123 | 0 | this.rules = rules; |
| 124 | 0 | } |
| 125 | |
|
| 126 | |
public String getUserId() { |
| 127 | 0 | return this.userId; |
| 128 | |
} |
| 129 | |
|
| 130 | |
public void setUserId(String userId) { |
| 131 | 0 | this.userId = userId; |
| 132 | 0 | } |
| 133 | |
|
| 134 | |
public String getReplacementUserId() { |
| 135 | 0 | return this.replacementUserId; |
| 136 | |
} |
| 137 | |
|
| 138 | |
public void setReplacementUserId(String userIdToReplace) { |
| 139 | 0 | this.replacementUserId = userIdToReplace; |
| 140 | 0 | } |
| 141 | |
|
| 142 | |
public Person getUser() { |
| 143 | 0 | return this.user; |
| 144 | |
} |
| 145 | |
|
| 146 | |
public void setUser(Person user) { |
| 147 | 0 | this.user = user; |
| 148 | 0 | } |
| 149 | |
|
| 150 | |
public Person getReplacementUser() { |
| 151 | 0 | return this.replacementUser; |
| 152 | |
} |
| 153 | |
|
| 154 | |
public void setReplacementUser(Person replacementUser) { |
| 155 | 0 | this.replacementUser = replacementUser; |
| 156 | 0 | } |
| 157 | |
|
| 158 | |
public List<RemoveReplaceWorkgroup> getWorkgroups() { |
| 159 | 0 | return this.workgroups; |
| 160 | |
} |
| 161 | |
|
| 162 | |
public void setWorkgroups(List<RemoveReplaceWorkgroup> workgroups) { |
| 163 | 0 | this.workgroups = workgroups; |
| 164 | 0 | } |
| 165 | |
|
| 166 | |
public Map getActionRequestCodes() { |
| 167 | 0 | return this.actionRequestCodes; |
| 168 | |
} |
| 169 | |
|
| 170 | |
public void setActionRequestCodes(Map actionRequestCodes) { |
| 171 | 0 | this.actionRequestCodes = actionRequestCodes; |
| 172 | 0 | } |
| 173 | |
|
| 174 | |
public RemoveReplaceDocument getDocument() { |
| 175 | 0 | return this.document; |
| 176 | |
} |
| 177 | |
|
| 178 | |
public void setDocument(RemoveReplaceDocument document) { |
| 179 | 0 | this.document = document; |
| 180 | 0 | } |
| 181 | |
|
| 182 | |
public String getOperationDisplayName() { |
| 183 | 0 | if (getOperation().equals(RemoveReplaceDocument.REMOVE_OPERATION)) { |
| 184 | 0 | return "Remove"; |
| 185 | 0 | } else if (getOperation().equals(RemoveReplaceDocument.REPLACE_OPERATION)) { |
| 186 | 0 | return "Replace"; |
| 187 | |
} |
| 188 | 0 | return ""; |
| 189 | |
} |
| 190 | |
|
| 191 | |
public boolean isReplace() { |
| 192 | 0 | return getOperation().equals(RemoveReplaceDocument.REPLACE_OPERATION); |
| 193 | |
} |
| 194 | |
|
| 195 | |
public boolean isRemove() { |
| 196 | 0 | return getOperation().equals(RemoveReplaceDocument.REMOVE_OPERATION); |
| 197 | |
} |
| 198 | |
|
| 199 | |
public boolean isOperationSelected() { |
| 200 | 0 | return this.operationSelected; |
| 201 | |
} |
| 202 | |
|
| 203 | |
public void setOperationSelected(boolean operationSelected) { |
| 204 | 0 | this.operationSelected = operationSelected; |
| 205 | 0 | } |
| 206 | |
|
| 207 | |
public String getConversionFields() { |
| 208 | 0 | return this.conversionFields; |
| 209 | |
} |
| 210 | |
|
| 211 | |
public void setConversionFields(String conversionFields) { |
| 212 | 0 | this.conversionFields = conversionFields; |
| 213 | 0 | } |
| 214 | |
|
| 215 | |
public ShowHideTree getShowHide() { |
| 216 | 0 | return this.showHide; |
| 217 | |
} |
| 218 | |
|
| 219 | |
public void setShowHide(ShowHideTree showHide) { |
| 220 | 0 | this.showHide = showHide; |
| 221 | 0 | } |
| 222 | |
|
| 223 | |
public boolean isReport() { |
| 224 | 0 | return this.report; |
| 225 | |
} |
| 226 | |
|
| 227 | |
public void setReport(boolean report) { |
| 228 | 0 | this.report = report; |
| 229 | 0 | } |
| 230 | |
|
| 231 | |
public String getSearchLink() { |
| 232 | 0 | return this.searchLink; |
| 233 | |
} |
| 234 | |
|
| 235 | |
public void setSearchLink(String searchLink) { |
| 236 | 0 | this.searchLink = searchLink; |
| 237 | 0 | } |
| 238 | |
|
| 239 | |
public String getSearchLinkText() { |
| 240 | 0 | return this.searchLinkText; |
| 241 | |
} |
| 242 | |
|
| 243 | |
public void setSearchLinkText(String searchLink) { |
| 244 | 0 | this.searchLinkText = searchLink; |
| 245 | 0 | } |
| 246 | |
|
| 247 | |
} |