001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface JournalStructureLocalService {
043
050 public com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
051 com.liferay.portlet.journal.model.JournalStructure journalStructure)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
061 long id);
062
063
070 public void deleteJournalStructure(long id)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deleteJournalStructure(
081 com.liferay.portlet.journal.model.JournalStructure journalStructure)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
156 long id)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.journal.model.JournalStructure getJournalStructureByUuidAndGroupId(
171 java.lang.String uuid, long groupId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
189 int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getJournalStructuresCount()
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
209 public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
210 com.liferay.portlet.journal.model.JournalStructure journalStructure)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
221 public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
222 com.liferay.portlet.journal.model.JournalStructure journalStructure,
223 boolean merge)
224 throws com.liferay.portal.kernel.exception.SystemException;
225
226 public com.liferay.portlet.journal.model.JournalStructure addStructure(
227 long userId, long groupId, java.lang.String structureId,
228 boolean autoStructureId, java.lang.String parentStructureId,
229 java.lang.String name, java.lang.String description,
230 java.lang.String xsd,
231 com.liferay.portal.service.ServiceContext serviceContext)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException;
234
235 public void addStructureResources(long groupId,
236 java.lang.String structureId, boolean addCommunityPermissions,
237 boolean addGuestPermissions)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException;
240
241 public void addStructureResources(
242 com.liferay.portlet.journal.model.JournalStructure structure,
243 boolean addCommunityPermissions, boolean addGuestPermissions)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException;
246
247 public void addStructureResources(long groupId,
248 java.lang.String structureId, java.lang.String[] communityPermissions,
249 java.lang.String[] guestPermissions)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException;
252
253 public void addStructureResources(
254 com.liferay.portlet.journal.model.JournalStructure structure,
255 java.lang.String[] communityPermissions,
256 java.lang.String[] guestPermissions)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException;
259
260 public void checkNewLine(long groupId, java.lang.String structureId)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException;
263
264 public com.liferay.portlet.journal.model.JournalStructure copyStructure(
265 long userId, long groupId, java.lang.String oldStructureId,
266 java.lang.String newStructureId, boolean autoStructureId)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException;
269
270 public void deleteStructure(long groupId, java.lang.String structureId)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException;
273
274 public void deleteStructure(
275 com.liferay.portlet.journal.model.JournalStructure structure)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException;
278
279 public void deleteStructures(long groupId)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException;
282
283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284 public com.liferay.portlet.journal.model.JournalStructure getStructure(
285 long id)
286 throws com.liferay.portal.kernel.exception.PortalException,
287 com.liferay.portal.kernel.exception.SystemException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public com.liferay.portlet.journal.model.JournalStructure getStructure(
291 long groupId, java.lang.String structureId)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
297 throws com.liferay.portal.kernel.exception.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
301 long groupId)
302 throws com.liferay.portal.kernel.exception.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
306 long groupId, int start, int end)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public int getStructuresCount(long groupId)
311 throws com.liferay.portal.kernel.exception.SystemException;
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
315 long companyId, long groupId, java.lang.String keywords, int start,
316 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
317 throws com.liferay.portal.kernel.exception.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
321 long companyId, long groupId, java.lang.String structureId,
322 java.lang.String name, java.lang.String description,
323 boolean andOperator, int start, int end,
324 com.liferay.portal.kernel.util.OrderByComparator obc)
325 throws com.liferay.portal.kernel.exception.SystemException;
326
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public int searchCount(long companyId, long groupId,
329 java.lang.String keywords)
330 throws com.liferay.portal.kernel.exception.SystemException;
331
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public int searchCount(long companyId, long groupId,
334 java.lang.String structureId, java.lang.String name,
335 java.lang.String description, boolean andOperator)
336 throws com.liferay.portal.kernel.exception.SystemException;
337
338 public com.liferay.portlet.journal.model.JournalStructure updateStructure(
339 long groupId, java.lang.String structureId,
340 java.lang.String parentStructureId, java.lang.String name,
341 java.lang.String description, java.lang.String xsd,
342 com.liferay.portal.service.ServiceContext serviceContext)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException;
345 }