001/**
002 * Copyright 2005-2018 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.krad.demo.uif.components;
017
018import org.kuali.rice.krad.demo.travel.dataobject.TravelAccount;
019
020import java.util.List;
021
022/**
023 * Provides additional methods for retrieving {@link TravelAccount}s.
024 *
025 * @author Kuali Rice Team (rice.collab@kuali.org)
026 */
027public interface ComponentViewHelperService {
028
029    /**
030     * Returns a list of {@link TravelAccount}s by {@code term}.
031     *
032     * @param term the {@link TravelAccount} number
033     *
034     * @return a list of {@link TravelAccount}s by {@code term}
035     */
036    List<TravelAccount> retrieveTravelAccounts(String term);
037
038    /**
039     * Returns a list of {@link TravelAccount}s by {@code subAccount} and {@code term}.
040     *
041     * @param subAccount the {@link TravelAccount} identifier
042     * @param term the {@link TravelAccount} number
043     *
044     * @return a list of {@link TravelAccount}s by {@code subAccount} and {@code term}
045     */
046    List<TravelAccount> retrieveTravelAccountsBySubAcctAndTerm(String subAccount, String term);
047
048    /**
049     * Returns a list of {@link TravelAccount}s by {@code name}.
050     *
051     * @param name the {@link TravelAccount} name
052     *
053     * @return a list of {@link TravelAccount}s by {@code name}
054     */
055    List<TravelAccount> retrieveTravelAccountsByName(String name);
056
057}