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.krad.demo.uif.components;
17
18 import org.kuali.rice.krad.demo.travel.dataobject.TravelAccount;
19
20 import java.util.List;
21
22 /**
23 * Provides additional methods for retrieving {@link TravelAccount}s.
24 *
25 * @author Kuali Rice Team (rice.collab@kuali.org)
26 */
27 public interface ComponentViewHelperService {
28
29 /**
30 * Returns a list of {@link TravelAccount}s by {@code term}.
31 *
32 * @param term the {@link TravelAccount} number
33 *
34 * @return a list of {@link TravelAccount}s by {@code term}
35 */
36 List<TravelAccount> retrieveTravelAccounts(String term);
37
38 /**
39 * Returns a list of {@link TravelAccount}s by {@code subAccount} and {@code term}.
40 *
41 * @param subAccount the {@link TravelAccount} identifier
42 * @param term the {@link TravelAccount} number
43 *
44 * @return a list of {@link TravelAccount}s by {@code subAccount} and {@code term}
45 */
46 List<TravelAccount> retrieveTravelAccountsBySubAcctAndTerm(String subAccount, String term);
47
48 /**
49 * Returns a list of {@link TravelAccount}s by {@code name}.
50 *
51 * @param name the {@link TravelAccount} name
52 *
53 * @return a list of {@link TravelAccount}s by {@code name}
54 */
55 List<TravelAccount> retrieveTravelAccountsByName(String name);
56
57 }