001    /**
002     * Copyright 2005-2012 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.rice.kew.rule;
017    
018    import org.kuali.rice.core.api.uif.RemotableAttributeError;
019    import org.kuali.rice.kns.web.ui.Row;
020    
021    import java.util.Collections;
022    import java.util.List;
023    import java.util.Map;
024    
025    
026    
027    /**
028     * Abstract base class for {@link WorkflowRuleAttribute}s.
029     * 
030     * @author Kuali Rice Team (rice.collab@kuali.org)
031     */
032    public abstract class AbstractWorkflowAttribute implements WorkflowRuleAttribute {
033        protected boolean required;
034    
035        public List<Row> getRuleRows() {
036            return Collections.EMPTY_LIST;
037        }
038    
039        public List<Row> getRoutingDataRows() {
040            return Collections.EMPTY_LIST;
041        }
042    
043        public String getDocContent() {
044            return "";
045        }
046    
047        public List<RuleExtensionValue> getRuleExtensionValues() {
048            return Collections.EMPTY_LIST;
049        }
050    
051        public List<RemotableAttributeError> validateRoutingData(Map paramMap) {
052            return Collections.EMPTY_LIST;
053        }
054    
055        public List<RemotableAttributeError> validateRuleData(Map paramMap) {
056            return Collections.EMPTY_LIST;
057        }
058    
059        public void setRequired(boolean required) {
060            this.required = required;
061        }
062    
063        public boolean isRequired() {
064            return required;
065        }
066    
067        /* TODO: document these two methods ... what are these for? */
068        public String getIdFieldName() {
069            return "";
070        }
071        public String getLockFieldName() {
072            return "";
073        }
074    }