1 | package edu.iu.uis.sit.portal.portlet.publishing.services; |
2 | |
3 | import java.util.List; |
4 | |
5 | import edu.iu.uis.sit.portal.portlet.publishing.dao.PublishingDAO; |
6 | import edu.iu.uis.sit.portal.portlet.publishing.domain.Fragment; |
7 | import edu.iu.uis.sit.portal.portlet.publishing.domain.Tab; |
8 | |
9 | public class PublishingServiceImpl implements PublishingService { |
10 | |
11 | private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(PublishingServiceImpl.class); |
12 | |
13 | private PublishingDAO publishingDAO; |
14 | |
15 | public PublishingServiceImpl() { |
16 | } |
17 | |
18 | public List findAllTabs() { |
19 | return publishingDAO.findAllTabs(); |
20 | } |
21 | |
22 | public List findAllFragments() { |
23 | return publishingDAO.findAllFragments(); |
24 | } |
25 | |
26 | public Fragment findFragmentById(Long fragmentId) { |
27 | return publishingDAO.findFragmentById(fragmentId); |
28 | } |
29 | |
30 | public void deleteFragment(Fragment fragment) { |
31 | publishingDAO.deleteFragment(fragment); |
32 | } |
33 | |
34 | public List findFragmentsByPublisher() { |
35 | return publishingDAO.findFragmentsByPublisher(); |
36 | } |
37 | |
38 | public void saveFragment(Fragment fragment) { |
39 | publishingDAO.saveFragment(fragment); |
40 | } |
41 | |
42 | public PublishingDAO getPublishingDAO() { |
43 | return publishingDAO; |
44 | } |
45 | |
46 | public void setPublishingDAO(PublishingDAO publishingDAO) { |
47 | this.publishingDAO = publishingDAO; |
48 | } |
49 | |
50 | public void saveTab(Tab tab) { |
51 | publishingDAO.saveTab(tab); |
52 | } |
53 | |
54 | public Tab findTabById(Long tabId) { |
55 | return publishingDAO.findTabById(tabId); |
56 | } |
57 | |
58 | public void deleteTab(Tab tab) { |
59 | publishingDAO.deleteTab(tab); |
60 | } |
61 | |
62 | public List findTabsByPublisher() { |
63 | return publishingDAO.findTabsByPublisher(); |
64 | } |
65 | |
66 | } |