1 /* 2 * Copyright 2012 The Kuali Foundation. 3 * 4 * Licensed under the Educational Community License, Version 1.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/ecl1.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.ole.select.service; 17 18 import org.kuali.ole.coa.businessobject.Account; 19 20 import java.util.List; 21 import java.util.Map; 22 23 public interface OleAccountService { 24 25 /** 26 * This method returns list of temporary Restricted accounts 27 * 28 * @return List<Account> 29 */ 30 public List<Account> getTemporaryRestrictedAccounts(); 31 32 /** 33 * This method takes account number as parameter and return account details of that account number 34 * 35 * @param accountNumber 36 * @return 37 */ 38 public Account getAccountDetailsWithAccountNumber(String accountNumber); 39 40 /** 41 * This method returns the list of accounts exists in database 42 * 43 * @return 44 */ 45 public List<Account> getAllAccountDetails(); 46 47 /** 48 * This method takes map as a parameter consists account details and returns matching accounts 49 * 50 * @param parameters 51 * @return 52 */ 53 public List<Account> getMatchingAccountDetails(Map<String, String> parameters); 54 55 56 public boolean shouldAccountRouteForApproval(String documentId); 57 }