1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="JournalFeedLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.journal.service.impl.JournalFeedLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       JournalFeedLocalServiceUtil
45   * @generated
46   */
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.kernel.exception.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.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteJournalFeed(
62          com.liferay.portlet.journal.model.JournalFeed journalFeed)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.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.kernel.exception.SystemException;
72  
73      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74      public com.liferay.portlet.journal.model.JournalFeed getJournalFeed(long id)
75          throws com.liferay.portal.kernel.exception.PortalException,
76              com.liferay.portal.kernel.exception.SystemException;
77  
78      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79      public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
80          int start, int end)
81          throws com.liferay.portal.kernel.exception.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public int getJournalFeedsCount()
85          throws com.liferay.portal.kernel.exception.SystemException;
86  
87      public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
88          com.liferay.portlet.journal.model.JournalFeed journalFeed)
89          throws com.liferay.portal.kernel.exception.SystemException;
90  
91      public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
92          com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
96          long groupId, java.lang.String feedId, boolean autoFeedId,
97          java.lang.String name, java.lang.String description,
98          java.lang.String type, java.lang.String structureId,
99          java.lang.String templateId, java.lang.String rendererTemplateId,
100         int delta, java.lang.String orderByCol, java.lang.String orderByType,
101         java.lang.String targetLayoutFriendlyUrl,
102         java.lang.String targetPortletId, java.lang.String contentField,
103         java.lang.String feedType, double feedVersion,
104         com.liferay.portal.service.ServiceContext serviceContext)
105         throws com.liferay.portal.kernel.exception.PortalException,
106             com.liferay.portal.kernel.exception.SystemException;
107 
108     public com.liferay.portlet.journal.model.JournalFeed addFeed(
109         java.lang.String uuid, long userId, long groupId,
110         java.lang.String feedId, boolean autoFeedId, java.lang.String name,
111         java.lang.String description, java.lang.String type,
112         java.lang.String structureId, java.lang.String templateId,
113         java.lang.String rendererTemplateId, int delta,
114         java.lang.String orderByCol, java.lang.String orderByType,
115         java.lang.String targetLayoutFriendlyUrl,
116         java.lang.String targetPortletId, java.lang.String contentField,
117         java.lang.String feedType, double feedVersion,
118         com.liferay.portal.service.ServiceContext serviceContext)
119         throws com.liferay.portal.kernel.exception.PortalException,
120             com.liferay.portal.kernel.exception.SystemException;
121 
122     public void addFeedResources(long feedId, boolean addCommunityPermissions,
123         boolean addGuestPermissions)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException;
126 
127     public void addFeedResources(
128         com.liferay.portlet.journal.model.JournalFeed feed,
129         boolean addCommunityPermissions, boolean addGuestPermissions)
130         throws com.liferay.portal.kernel.exception.PortalException,
131             com.liferay.portal.kernel.exception.SystemException;
132 
133     public void addFeedResources(long feedId,
134         java.lang.String[] communityPermissions,
135         java.lang.String[] guestPermissions)
136         throws com.liferay.portal.kernel.exception.PortalException,
137             com.liferay.portal.kernel.exception.SystemException;
138 
139     public void addFeedResources(
140         com.liferay.portlet.journal.model.JournalFeed feed,
141         java.lang.String[] communityPermissions,
142         java.lang.String[] guestPermissions)
143         throws com.liferay.portal.kernel.exception.PortalException,
144             com.liferay.portal.kernel.exception.SystemException;
145 
146     public void deleteFeed(long feedId)
147         throws com.liferay.portal.kernel.exception.PortalException,
148             com.liferay.portal.kernel.exception.SystemException;
149 
150     public void deleteFeed(long groupId, java.lang.String feedId)
151         throws com.liferay.portal.kernel.exception.PortalException,
152             com.liferay.portal.kernel.exception.SystemException;
153 
154     public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
155         throws com.liferay.portal.kernel.exception.PortalException,
156             com.liferay.portal.kernel.exception.SystemException;
157 
158     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159     public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
160         throws com.liferay.portal.kernel.exception.PortalException,
161             com.liferay.portal.kernel.exception.SystemException;
162 
163     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164     public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
165         java.lang.String feedId)
166         throws com.liferay.portal.kernel.exception.PortalException,
167             com.liferay.portal.kernel.exception.SystemException;
168 
169     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
171         throws com.liferay.portal.kernel.exception.SystemException;
172 
173     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
175         long groupId)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
180         long groupId, int start, int end)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184     public int getFeedsCount(long groupId)
185         throws com.liferay.portal.kernel.exception.SystemException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
189         long companyId, long groupId, java.lang.String keywords, int start,
190         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.kernel.exception.SystemException;
192 
193     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
195         long companyId, long groupId, java.lang.String feedId,
196         java.lang.String name, java.lang.String description,
197         boolean andOperator, int start, int end,
198         com.liferay.portal.kernel.util.OrderByComparator obc)
199         throws com.liferay.portal.kernel.exception.SystemException;
200 
201     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202     public int searchCount(long companyId, long groupId,
203         java.lang.String keywords)
204         throws com.liferay.portal.kernel.exception.SystemException;
205 
206     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207     public int searchCount(long companyId, long groupId,
208         java.lang.String feedId, java.lang.String name,
209         java.lang.String description, boolean andOperator)
210         throws com.liferay.portal.kernel.exception.SystemException;
211 
212     public com.liferay.portlet.journal.model.JournalFeed updateFeed(
213         long groupId, java.lang.String feedId, java.lang.String name,
214         java.lang.String description, java.lang.String type,
215         java.lang.String structureId, java.lang.String templateId,
216         java.lang.String rendererTemplateId, int delta,
217         java.lang.String orderByCol, java.lang.String orderByType,
218         java.lang.String targetLayoutFriendlyUrl,
219         java.lang.String targetPortletId, java.lang.String contentField,
220         java.lang.String feedType, double feedVersion,
221         com.liferay.portal.service.ServiceContext serviceContext)
222         throws com.liferay.portal.kernel.exception.PortalException,
223             com.liferay.portal.kernel.exception.SystemException;
224 }