01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.workflow.attribute;
17:
18: import java.util.ArrayList;
19: import java.util.List;
20: import java.util.Map;
21:
22: import edu.iu.uis.eden.lookupable.Row;
23: import edu.iu.uis.eden.plugin.attributes.WorkflowAttribute;
24: import edu.iu.uis.eden.routeheader.DocumentContent;
25: import edu.iu.uis.eden.routetemplate.RuleExtension;
26: import edu.iu.uis.eden.routetemplate.RuleExtensionValue;
27:
28: public class KualiResearchRiskAttribute implements WorkflowAttribute {
29:
30: private final static String PROPOSAL_RESEARCH_RISKS = "proposalResearchRisks";
31: private boolean required = false;
32: private String researchRiskTypeCode;
33:
34: public String getDocContent() {
35: // TODO Auto-generated method stub
36: /*
37: * <newMaintainableObject class="org.kuali.module.cg.maintenance.AwardMaintainableImpl"> <businessObject
38: * class="org.kuali.module.cg.bo.Award"> <proposalNumber>81159</proposalNumber> <proposal> <proposalResearchRisks
39: * class="org.apache.ojb.broker.util.collections.ManageableArrayList" serialization="custom"> <list> <default> <size>6</size>
40: * </default> <int>10</int> <org.kuali.module.cg.bo.ProposalResearchRisk> <researchRiskTypeCode>H</researchRiskTypeCode>
41: * <proposalNumber>81159</proposalNumber> <isActive>false</isActive> <proposal reference="../../../.."/>
42: * <researchRiskType> <researchRiskTypeCode>H</researchRiskTypeCode> <dataObjectMaintenanceCodeActiveIndicator>true</dataObjectMaintenanceCodeActiveIndicator>
43: * <researchRiskTypeDescription>Human Subjects</researchRiskTypeDescription>
44: */
45: return null;
46: }
47:
48: public List<Row> getRoutingDataRows() {
49: // TODO Auto-generated method stub
50: return null;
51: }
52:
53: public List<RuleExtensionValue> getRuleExtensionValues() {
54: List extensions = new ArrayList();
55: extensions.add(new RuleExtensionValue(PROPOSAL_RESEARCH_RISKS,
56: this .researchRiskTypeCode));
57: return extensions;
58: }
59:
60: public List<Row> getRuleRows() {
61: // TODO Auto-generated method stub
62: return null;
63: }
64:
65: public boolean isMatch(DocumentContent arg0,
66: List<RuleExtension> arg1) {
67: // TODO Auto-generated method stub
68: return false;
69: }
70:
71: public boolean isRequired() {
72: return this .required;
73: }
74:
75: public void setRequired(boolean required) {
76: this .required = required;
77:
78: }
79:
80: public List validateRoutingData(Map arg0) {
81: // TODO Auto-generated method stub
82: return null;
83: }
84:
85: public List validateRuleData(Map arg0) {
86: // TODO Auto-generated method stub
87: return null;
88: }
89:
90: }
|