1
14
15 package com.liferay.portlet.journal.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 JournalFeedLocalService {
50 public com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
51 com.liferay.portlet.journal.model.JournalFeed journalFeed)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
55 long id);
56
57 public void deleteJournalFeed(long id)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteJournalFeed(
62 com.liferay.portlet.journal.model.JournalFeed journalFeed)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.journal.model.JournalFeed getJournalFeed(long id)
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.journal.model.JournalFeed> getJournalFeeds(
90 int start, int end) throws com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public int getJournalFeedsCount() throws com.liferay.portal.SystemException;
94
95 public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
96 com.liferay.portlet.journal.model.JournalFeed journalFeed)
97 throws com.liferay.portal.SystemException;
98
99 public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
100 com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
101 throws com.liferay.portal.SystemException;
102
103 public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
104 long groupId, java.lang.String feedId, boolean autoFeedId,
105 java.lang.String name, java.lang.String description,
106 java.lang.String type, java.lang.String structureId,
107 java.lang.String templateId, java.lang.String rendererTemplateId,
108 int delta, java.lang.String orderByCol, java.lang.String orderByType,
109 java.lang.String targetLayoutFriendlyUrl,
110 java.lang.String targetPortletId, java.lang.String contentField,
111 java.lang.String feedType, double feedVersion,
112 com.liferay.portal.service.ServiceContext serviceContext)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException;
115
116 public com.liferay.portlet.journal.model.JournalFeed addFeed(
117 java.lang.String uuid, long userId, long groupId,
118 java.lang.String feedId, boolean autoFeedId, java.lang.String name,
119 java.lang.String description, java.lang.String type,
120 java.lang.String structureId, java.lang.String templateId,
121 java.lang.String rendererTemplateId, int delta,
122 java.lang.String orderByCol, java.lang.String orderByType,
123 java.lang.String targetLayoutFriendlyUrl,
124 java.lang.String targetPortletId, java.lang.String contentField,
125 java.lang.String feedType, double feedVersion,
126 com.liferay.portal.service.ServiceContext serviceContext)
127 throws com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException;
129
130 public void addFeedResources(long feedId, boolean addCommunityPermissions,
131 boolean addGuestPermissions)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException;
134
135 public void addFeedResources(
136 com.liferay.portlet.journal.model.JournalFeed feed,
137 boolean addCommunityPermissions, boolean addGuestPermissions)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException;
140
141 public void addFeedResources(long feedId,
142 java.lang.String[] communityPermissions,
143 java.lang.String[] guestPermissions)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException;
146
147 public void addFeedResources(
148 com.liferay.portlet.journal.model.JournalFeed feed,
149 java.lang.String[] communityPermissions,
150 java.lang.String[] guestPermissions)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException;
153
154 public void deleteFeed(long feedId)
155 throws com.liferay.portal.PortalException,
156 com.liferay.portal.SystemException;
157
158 public void deleteFeed(long groupId, java.lang.String feedId)
159 throws com.liferay.portal.PortalException,
160 com.liferay.portal.SystemException;
161
162 public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
168 throws com.liferay.portal.PortalException,
169 com.liferay.portal.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
173 java.lang.String feedId)
174 throws com.liferay.portal.PortalException,
175 com.liferay.portal.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
179 throws com.liferay.portal.SystemException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
183 long groupId) throws com.liferay.portal.SystemException;
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
187 long groupId, int start, int end)
188 throws com.liferay.portal.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public int getFeedsCount(long groupId)
192 throws com.liferay.portal.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
196 long companyId, long groupId, java.lang.String keywords, int start,
197 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
198 throws com.liferay.portal.SystemException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
202 long companyId, long groupId, java.lang.String feedId,
203 java.lang.String name, java.lang.String description,
204 boolean andOperator, int start, int end,
205 com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public int searchCount(long companyId, long groupId,
210 java.lang.String keywords) throws com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public int searchCount(long companyId, long groupId,
214 java.lang.String feedId, java.lang.String name,
215 java.lang.String description, boolean andOperator)
216 throws com.liferay.portal.SystemException;
217
218 public com.liferay.portlet.journal.model.JournalFeed updateFeed(
219 long groupId, java.lang.String feedId, java.lang.String name,
220 java.lang.String description, java.lang.String type,
221 java.lang.String structureId, java.lang.String templateId,
222 java.lang.String rendererTemplateId, int delta,
223 java.lang.String orderByCol, java.lang.String orderByType,
224 java.lang.String targetLayoutFriendlyUrl,
225 java.lang.String targetPortletId, java.lang.String contentField,
226 java.lang.String feedType, double feedVersion,
227 com.liferay.portal.service.ServiceContext serviceContext)
228 throws com.liferay.portal.PortalException,
229 com.liferay.portal.SystemException;
230 }