Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
457 | jmachado | 1 | package pt.estgp.estgweb.services.common; |
2 | |||
3 | import pt.estgp.estgweb.domain.UserSession; |
||
4 | import pt.utl.ist.berserk.logic.serviceManager.IService; |
||
5 | |||
6 | import java.util.List; |
||
7 | import java.util.ArrayList; |
||
8 | |||
9 | /** |
||
10 | * @author Jorge Machado |
||
11 | * @date 18/Nov/2009 |
||
12 | * @time 1:10:00 |
||
13 | * @email machadofisher@gmail.com |
||
14 | */ |
||
15 | public abstract class SingleSearchResults implements IService, IModuleCommonServices |
||
16 | { |
||
17 | public List<ISearchResults> searchList(1.5.0/docs/api/java/lang/String.html">String moduleInternalKey, 1.5.0/docs/api/java/lang/String.html">String search, SearchTypeEnum searchType, int page, int maxResults, UserSession userSession) { |
||
18 | ISearchResults searchResults = search(search, searchType,page,maxResults,userSession); |
||
19 | if(searchResults == null) |
||
20 | return null; |
||
21 | List<ISearchResults> finalResults = new ArrayList<ISearchResults>(); |
||
22 | finalResults.add(searchResults); |
||
23 | return finalResults; |
||
24 | } |
||
25 | |||
26 | public List<ISearchResults> searchList(1.5.0/docs/api/java/lang/String.html">String moduleInternalKey, 1.5.0/docs/api/java/lang/String.html">String from, 1.5.0/docs/api/java/lang/String.html">String search, SearchTypeEnum searchType, int page, int maxResults, UserSession userSession) { |
||
27 | ISearchResults searchResults = search(from, search, searchType, page, maxResults, userSession); |
||
28 | if(searchResults == null) |
||
29 | return null; |
||
30 | List<ISearchResults> finalResults = new ArrayList<ISearchResults>(); |
||
31 | finalResults.add(searchResults); |
||
32 | return finalResults; |
||
33 | } |
||
34 | } |