Rev 163 | Rev 457 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
163 | jmachado | 1 | package pt.estgp.estgweb.services.common; |
2 | |||
3 | import pt.utl.ist.berserk.logic.serviceManager.IService; |
||
4 | import pt.estgp.estgweb.domain.UserSession; |
||
5 | import pt.estgp.estgweb.services.expceptions.ServiceException; |
||
6 | import org.apache.log4j.Logger; |
||
7 | |||
8 | import java.util.List; |
||
9 | |||
10 | /** |
||
11 | * @author Jorge Machado |
||
12 | * @date 22/Mai/2008 |
||
13 | * @see pt.estgp.estgweb.services.common |
||
14 | */ |
||
15 | public class CommonServicesService implements IService |
||
16 | { |
||
17 | private static final 1.5.0/docs/api/java/util/logging/Logger.html">Logger logger = 1.5.0/docs/api/java/util/logging/Logger.html">Logger.getLogger(CommonServicesService.class); |
||
18 | |||
165 | jmachado | 19 | public ICommonSearchResults search(1.5.0/docs/api/java/lang/String.html">String from, 1.5.0/docs/api/java/lang/String.html">String query, SearchTypeEnum searchTypeEnum, UserSession userSession) throws ServiceException |
163 | jmachado | 20 | { |
21 | try |
||
22 | { |
||
165 | jmachado | 23 | return CommonServicesManager.getInstance().search(userSession, query, searchTypeEnum, from); |
163 | jmachado | 24 | } |
25 | catch (1.5.0/docs/api/java/lang/Throwable.html">Throwable throwable) |
||
26 | { |
||
27 | logger.error(throwable,throwable); |
||
28 | throw new ServiceException("", throwable); |
||
29 | } |
||
30 | } |
||
31 | |||
165 | jmachado | 32 | public ISearchResults searchModule(1.5.0/docs/api/java/lang/String.html">String from, 1.5.0/docs/api/java/lang/String.html">String query, SearchTypeEnum searchType, ModuleEnum moduleKey, int page,UserSession userSession) throws 1.5.0/docs/api/java/lang/Throwable.html">Throwable |
163 | jmachado | 33 | { |
34 | try |
||
35 | { |
||
165 | jmachado | 36 | return CommonServicesManager.getInstance().search(userSession, query, searchType,moduleKey,page, from); |
163 | jmachado | 37 | } |
38 | catch (1.5.0/docs/api/java/lang/Throwable.html">Throwable throwable) |
||
39 | { |
||
40 | logger.error(throwable,throwable); |
||
41 | throw new ServiceException("", throwable); |
||
42 | } |
||
43 | } |
||
44 | |||
45 | public List<IToDoCat> getAllToDosCats(UserSession userSession) throws 1.5.0/docs/api/java/lang/Throwable.html">Throwable |
||
46 | { |
||
47 | return CommonServicesManager.getInstance().getAllToDosCats(userSession); |
||
48 | } |
||
49 | |||
50 | } |