1
14
15 package com.liferay.portlet.blogs.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface BlogsEntryService {
50 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
51 java.lang.String title, java.lang.String content, int displayDateMonth,
52 int displayDateDay, int displayDateYear, int displayDateHour,
53 int displayDateMinute, boolean draft, boolean allowTrackbacks,
54 java.lang.String[] trackbacks,
55 com.liferay.portal.service.ServiceContext serviceContext)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException;
58
59 public void deleteEntry(long entryId)
60 throws com.liferay.portal.PortalException,
61 com.liferay.portal.SystemException;
62
63 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
64 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
65 long companyId, int max)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException;
68
69 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
70 public java.lang.String getCompanyEntriesRSS(long companyId, int max,
71 java.lang.String type, double version, java.lang.String displayStyle,
72 java.lang.String feedURL, java.lang.String entryURL,
73 com.liferay.portal.theme.ThemeDisplay themeDisplay)
74 throws com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
79 throws com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException;
81
82 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
84 java.lang.String urlTitle)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
90 long groupId, int max)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public java.lang.String getGroupEntriesRSS(long groupId, int max,
96 java.lang.String type, double version, java.lang.String displayStyle,
97 java.lang.String feedURL, java.lang.String entryURL,
98 com.liferay.portal.theme.ThemeDisplay themeDisplay)
99 throws com.liferay.portal.PortalException,
100 com.liferay.portal.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
104 long companyId, long groupId, int max)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException;
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
110 long organizationId, int max)
111 throws com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public java.lang.String getOrganizationEntriesRSS(long organizationId,
116 int max, java.lang.String type, double version,
117 java.lang.String displayStyle, java.lang.String feedURL,
118 java.lang.String entryURL,
119 com.liferay.portal.theme.ThemeDisplay themeDisplay)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException;
122
123 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
124 long entryId, java.lang.String title, java.lang.String content,
125 int displayDateMonth, int displayDateDay, int displayDateYear,
126 int displayDateHour, int displayDateMinute, boolean draft,
127 boolean allowTrackbacks, java.lang.String[] trackbacks,
128 com.liferay.portal.service.ServiceContext serviceContext)
129 throws com.liferay.portal.PortalException,
130 com.liferay.portal.SystemException;
131 }