Rev 457 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 457 | Rev 1306 | ||
---|---|---|---|
1 | package pt.estgp.estgweb.services.common; |
1 | package pt.estgp.estgweb.services.common; |
2 | 2 | ||
3 | import pt.estgp.estgweb.domain.UserSession; |
3 | import pt.estgp.estgweb.domain.UserSession; |
4 | import pt.utl.ist.berserk.logic.serviceManager.IService; |
4 | import pt.utl.ist.berserk.logic.serviceManager.IService; |
5 | 5 | ||
6 | import java.util.List; |
6 | import java.util.List; |
7 | import java.util.ArrayList; |
7 | import java.util.ArrayList; |
8 | 8 | ||
9 | /** |
9 | /** |
10 | * @author Jorge Machado |
10 | * @author Jorge Machado |
11 | * @date 18/Nov/2009 |
11 | * @date 18/Nov/2009 |
12 | * @time 1:10:00 |
12 | * @time 1:10:00 |
13 | * @email machadofisher@gmail.com |
13 | * @email machadofisher@gmail.com |
14 | */ |
14 | */ |
15 | public abstract class SingleSearchResults implements IService, IModuleCommonServices |
15 | public abstract class SingleSearchResults implements IService, IModuleCommonServices |
16 | { |
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) { |
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); |
18 | ISearchResults searchResults = search(search, searchType,page,maxResults,userSession); |
19 | if(searchResults == null) |
19 | if(searchResults == null) |
20 | return null; |
20 | return null; |
21 | List<ISearchResults> finalResults = new ArrayList<ISearchResults>(); |
21 | List<ISearchResults> finalResults = new ArrayList<ISearchResults>(); |
22 | finalResults.add(searchResults); |
22 | finalResults.add(searchResults); |
23 | return finalResults; |
23 | return finalResults; |
24 | } |
24 | } |
25 | 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) { |
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); |
27 | ISearchResults searchResults = search(from, search, searchType, page, maxResults, userSession); |
28 | if(searchResults == null) |
28 | if(searchResults == null) |
29 | return null; |
29 | return null; |
30 | List<ISearchResults> finalResults = new ArrayList<ISearchResults>(); |
30 | List<ISearchResults> finalResults = new ArrayList<ISearchResults>(); |
31 | finalResults.add(searchResults); |
31 | finalResults.add(searchResults); |
32 | return finalResults; |
32 | return finalResults; |
33 | } |
33 | } |
34 | } |
34 | } |
35 | 35 |