Rev 1306 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
456 | jmachado | 1 | package pt.estgp.estgweb.services.srusources; |
2 | |||
3 | import pt.utl.ist.berserk.logic.serviceManager.IService; |
||
4 | import pt.estgp.estgweb.services.profile.LoadUserByIdService; |
||
5 | import pt.estgp.estgweb.domain.views.UserView; |
||
6 | import pt.estgp.estgweb.domain.views.SruSourceView; |
||
7 | import pt.estgp.estgweb.domain.UserSession; |
||
8 | import pt.estgp.estgweb.domain.User; |
||
9 | import pt.estgp.estgweb.domain.SruSource; |
||
10 | import pt.estgp.estgweb.domain.dao.DaoFactory; |
||
11 | import org.apache.log4j.Logger; |
||
12 | |||
13 | import java.io.Serializable; |
||
14 | |||
15 | public class LoadSruSourceByIdService 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(LoadSruSourceByIdService.class); |
||
18 | |||
19 | |||
20 | |||
21 | public SruSourceView run(1.5.0/docs/api/java/io/Serializable.html">Serializable id, UserSession userSession) |
||
22 | { |
||
23 | SruSource sruSource = DaoFactory.getSruSourceDaoImpl().load(id); |
||
24 | SruSourceView sruSourceView = new SruSourceView(sruSource,sruSource.getCollections()); |
||
25 | logger.info("Loading srusource view:" + sruSourceView.getId()); |
||
26 | return sruSourceView; |
||
27 | } |
||
28 | } |