View Javadoc
1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
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.rice.kew.rule;
17  
18  import org.kuali.rice.core.api.uif.RemotableAttributeError;
19  import org.kuali.rice.kns.web.ui.Row;
20  
21  import java.util.Collections;
22  import java.util.List;
23  import java.util.Map;
24  
25  
26  
27  /**
28   * Abstract base class for {@link WorkflowRuleAttribute}s.
29   * 
30   * @author Kuali Rice Team (rice.collab@kuali.org)
31   */
32  public abstract class AbstractWorkflowAttribute implements WorkflowRuleAttribute {
33      protected boolean required;
34  
35      public List<Row> getRuleRows() {
36          return Collections.EMPTY_LIST;
37      }
38  
39      public List<Row> getRoutingDataRows() {
40          return Collections.EMPTY_LIST;
41      }
42  
43      public String getDocContent() {
44          return "";
45      }
46  
47      public List<RuleExtensionValue> getRuleExtensionValues() {
48          return Collections.EMPTY_LIST;
49      }
50  
51      public List<RemotableAttributeError> validateRoutingData(Map paramMap) {
52          return Collections.EMPTY_LIST;
53      }
54  
55      public List<RemotableAttributeError> validateRuleData(Map paramMap) {
56          return Collections.EMPTY_LIST;
57      }
58  
59      public void setRequired(boolean required) {
60          this.required = required;
61      }
62  
63      public boolean isRequired() {
64          return required;
65      }
66  
67      /* TODO: document these two methods ... what are these for? */
68      public String getIdFieldName() {
69          return "";
70      }
71      public String getLockFieldName() {
72          return "";
73      }
74  }