01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.kuali.workflow.workgroup;
18:
19: import java.util.ArrayList;
20: import java.util.List;
21:
22: import org.kuali.workflow.attribute.ExtensionAttribute;
23:
24: import edu.iu.uis.eden.lookupable.Field;
25: import edu.iu.uis.eden.lookupable.Row;
26: import edu.iu.uis.eden.validation.ValidationContext;
27: import edu.iu.uis.eden.validation.ValidationResults;
28:
29: /**
30: *
31: * @author ewestfal
32: */
33: public class ChartOrgDataAttribute implements ExtensionAttribute {
34:
35: private static final String CHART = "chartOfAccountsCode";
36: private static final String ORG = "organizationCode";
37:
38: private List<Row> rows;
39:
40: public ChartOrgDataAttribute() {
41: rows = new ArrayList<Row>();
42:
43: List fields = new ArrayList();
44: fields.add(new Field("Chart", "", Field.TEXT, true, CHART, "",
45: null, "ChartOrgLookupableImplService", "fin_coa_cd"));
46: rows.add(new Row(fields, "Chart & Org", 2));
47:
48: fields = new ArrayList();
49: fields.add(new Field("Org", "", Field.TEXT, true, ORG, "",
50: null, "ChartOrgLookupableImplService", "org_cd"));
51: fields.add(new Field("", "", Field.QUICKFINDER, false, "", "",
52: null, "ChartOrgLookupableImplService"));
53: rows.add(new Row(fields, "Chart & Org", 2));
54:
55: }
56:
57: public List<Row> getRows() {
58: return rows;
59: }
60:
61: public ValidationResults validate(
62: ValidationContext validationContext) {
63: return null;
64: }
65:
66: }
|