Rev 1306 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
205 | jmachado | 1 | package pt.estgp.estgweb.services.blogs; |
2 | |||
3 | import pt.utl.ist.berserk.logic.serviceManager.IService; |
||
4 | import pt.estgp.estgweb.domain.views.BlogPostView; |
||
5 | import pt.estgp.estgweb.domain.UserSession; |
||
6 | import pt.estgp.estgweb.domain.BlogPostImpl; |
||
7 | import pt.estgp.estgweb.domain.BlogPost; |
||
8 | import pt.estgp.estgweb.domain.dao.DaoFactory; |
||
9 | import pt.estgp.estgweb.services.expceptions.ServiceException; |
||
10 | import org.apache.log4j.Logger; |
||
11 | |||
12 | import java.util.List; |
||
13 | import java.util.ArrayList; |
||
14 | |||
15 | /* |
||
16 | * @author Goncalo Luiz gedl [AT] rnl [DOT] ist [DOT] utl [DOT] pt |
||
17 | * |
||
18 | * |
||
19 | * Created at 17/Out/2003 , 23:45:24 |
||
20 | * |
||
21 | */ |
||
22 | /** |
||
23 | * @author Jorge Machado |
||
24 | * |
||
25 | * |
||
26 | * Created at 17/Out/2003 , 23:45:24 |
||
27 | * |
||
28 | */ |
||
29 | public class ValidateBlogPostService implements IService |
||
30 | { |
||
31 | |||
32 | 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(ValidateBlogPostService.class); |
||
33 | |||
34 | public void run(long blogpostId, boolean newStatus, UserSession userSession) throws ServiceException |
||
35 | { |
||
36 | BlogPost blogPost = DaoFactory.getBlogPostDaoImpl().get(blogpostId); |
||
37 | blogPost.setStatus(newStatus); |
||
38 | } |
||
39 | |||
40 | |||
41 | } |