001/** 002 * Copyright 2005-2014 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 */ 016package org.kuali.rice.kew.rule; 017 018import org.kuali.rice.core.api.uif.RemotableAttributeError; 019import org.kuali.rice.kew.rule.bo.RuleBaseValuesLookupableImpl; 020import org.kuali.rice.kns.web.ui.Row; 021 022import java.util.List; 023import java.util.Map; 024 025/** 026 * An interface which can be implemented by a {@link WorkflowRuleAttribute} implementation which allows 027 * a different List of {@link Row} objects to be returned for rendering on the rule lookup screen. 028 * 029 * @see RuleBaseValuesLookupableImpl 030 * 031 * @author Kuali Rice Team (rice.collab@kuali.org) 032 */ 033public interface WorkflowRuleSearchAttribute extends WorkflowRuleAttribute{ 034 035 /** 036 * If your attribute is an OddSearchAttribute this method will be used to get search rows instead of the 037 * usually called get RuleRows. Generally this is used for Attributes that want to expose drop downs 038 * for Rule Entry but need special wild card fields for searches that wouldn't work for rule entry. 039 */ 040 List<Row> getSearchRows(); 041 042 /** 043 * validate search data and populate attribute with search data 044 * @param paramMap 045 * @return 046 */ 047 List<RemotableAttributeError> validateSearchData(Map<String, String> paramMap); 048 049}