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