1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service;
24  
25  
26  /**
27   * <a href="JournalStructureLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.journal.service.JournalStructureLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.journal.service.JournalStructureLocalService
45   *
46   */
47  public class JournalStructureLocalServiceUtil {
48      public static com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
49          com.liferay.portlet.journal.model.JournalStructure journalStructure)
50          throws com.liferay.portal.SystemException {
51          return _service.addJournalStructure(journalStructure);
52      }
53  
54      public static void deleteJournalStructure(long id)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _service.deleteJournalStructure(id);
58      }
59  
60      public static void deleteJournalStructure(
61          com.liferay.portlet.journal.model.JournalStructure journalStructure)
62          throws com.liferay.portal.SystemException {
63          _service.deleteJournalStructure(journalStructure);
64      }
65  
66      public static java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return _service.dynamicQuery(dynamicQuery);
70      }
71  
72      public static java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.SystemException {
75          return _service.dynamicQuery(dynamicQuery, start, end);
76      }
77  
78      public static com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
79          long id)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException {
82          return _service.getJournalStructure(id);
83      }
84  
85      public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
86          int start, int end) throws com.liferay.portal.SystemException {
87          return _service.getJournalStructures(start, end);
88      }
89  
90      public static int getJournalStructuresCount()
91          throws com.liferay.portal.SystemException {
92          return _service.getJournalStructuresCount();
93      }
94  
95      public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
96          com.liferay.portlet.journal.model.JournalStructure journalStructure)
97          throws com.liferay.portal.SystemException {
98          return _service.updateJournalStructure(journalStructure);
99      }
100 
101     public static com.liferay.portlet.journal.model.JournalStructure addStructure(
102         long userId, java.lang.String structureId, boolean autoStructureId,
103         long plid, java.lang.String name, java.lang.String description,
104         java.lang.String xsd, boolean addCommunityPermissions,
105         boolean addGuestPermissions)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException {
108         return _service.addStructure(userId, structureId, autoStructureId,
109             plid, name, description, xsd, addCommunityPermissions,
110             addGuestPermissions);
111     }
112 
113     public static com.liferay.portlet.journal.model.JournalStructure addStructure(
114         java.lang.String uuid, long userId, java.lang.String structureId,
115         boolean autoStructureId, long plid, java.lang.String name,
116         java.lang.String description, java.lang.String xsd,
117         boolean addCommunityPermissions, boolean addGuestPermissions)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException {
120         return _service.addStructure(uuid, userId, structureId,
121             autoStructureId, plid, name, description, xsd,
122             addCommunityPermissions, addGuestPermissions);
123     }
124 
125     public static com.liferay.portlet.journal.model.JournalStructure addStructure(
126         long userId, java.lang.String structureId, boolean autoStructureId,
127         long plid, java.lang.String name, java.lang.String description,
128         java.lang.String xsd, java.lang.String[] communityPermissions,
129         java.lang.String[] guestPermissions)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException {
132         return _service.addStructure(userId, structureId, autoStructureId,
133             plid, name, description, xsd, communityPermissions, guestPermissions);
134     }
135 
136     public static com.liferay.portlet.journal.model.JournalStructure addStructure(
137         java.lang.String uuid, long userId, java.lang.String structureId,
138         boolean autoStructureId, long plid, java.lang.String name,
139         java.lang.String description, java.lang.String xsd,
140         java.lang.Boolean addCommunityPermissions,
141         java.lang.Boolean addGuestPermissions,
142         java.lang.String[] communityPermissions,
143         java.lang.String[] guestPermissions)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException {
146         return _service.addStructure(uuid, userId, structureId,
147             autoStructureId, plid, name, description, xsd,
148             addCommunityPermissions, addGuestPermissions, communityPermissions,
149             guestPermissions);
150     }
151 
152     public static com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(
153         java.lang.String uuid, long userId, java.lang.String structureId,
154         boolean autoStructureId, long groupId, java.lang.String name,
155         java.lang.String description, java.lang.String xsd,
156         java.lang.Boolean addCommunityPermissions,
157         java.lang.Boolean addGuestPermissions,
158         java.lang.String[] communityPermissions,
159         java.lang.String[] guestPermissions)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException {
162         return _service.addStructureToGroup(uuid, userId, structureId,
163             autoStructureId, groupId, name, description, xsd,
164             addCommunityPermissions, addGuestPermissions, communityPermissions,
165             guestPermissions);
166     }
167 
168     public static void addStructureResources(long groupId,
169         java.lang.String structureId, boolean addCommunityPermissions,
170         boolean addGuestPermissions)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException {
173         _service.addStructureResources(groupId, structureId,
174             addCommunityPermissions, addGuestPermissions);
175     }
176 
177     public static void addStructureResources(
178         com.liferay.portlet.journal.model.JournalStructure structure,
179         boolean addCommunityPermissions, boolean addGuestPermissions)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException {
182         _service.addStructureResources(structure, addCommunityPermissions,
183             addGuestPermissions);
184     }
185 
186     public static void addStructureResources(long groupId,
187         java.lang.String structureId, java.lang.String[] communityPermissions,
188         java.lang.String[] guestPermissions)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException {
191         _service.addStructureResources(groupId, structureId,
192             communityPermissions, guestPermissions);
193     }
194 
195     public static void addStructureResources(
196         com.liferay.portlet.journal.model.JournalStructure structure,
197         java.lang.String[] communityPermissions,
198         java.lang.String[] guestPermissions)
199         throws com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException {
201         _service.addStructureResources(structure, communityPermissions,
202             guestPermissions);
203     }
204 
205     public static void checkNewLine(long groupId, java.lang.String structureId)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException {
208         _service.checkNewLine(groupId, structureId);
209     }
210 
211     public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
212         long userId, long groupId, java.lang.String oldStructureId,
213         java.lang.String newStructureId, boolean autoStructureId)
214         throws com.liferay.portal.PortalException,
215             com.liferay.portal.SystemException {
216         return _service.copyStructure(userId, groupId, oldStructureId,
217             newStructureId, autoStructureId);
218     }
219 
220     public static void deleteStructure(long groupId,
221         java.lang.String structureId)
222         throws com.liferay.portal.PortalException,
223             com.liferay.portal.SystemException {
224         _service.deleteStructure(groupId, structureId);
225     }
226 
227     public static void deleteStructure(
228         com.liferay.portlet.journal.model.JournalStructure structure)
229         throws com.liferay.portal.PortalException,
230             com.liferay.portal.SystemException {
231         _service.deleteStructure(structure);
232     }
233 
234     public static void deleteStructures(long groupId)
235         throws com.liferay.portal.PortalException,
236             com.liferay.portal.SystemException {
237         _service.deleteStructures(groupId);
238     }
239 
240     public static com.liferay.portlet.journal.model.JournalStructure getStructure(
241         long id)
242         throws com.liferay.portal.PortalException,
243             com.liferay.portal.SystemException {
244         return _service.getStructure(id);
245     }
246 
247     public static com.liferay.portlet.journal.model.JournalStructure getStructure(
248         long groupId, java.lang.String structureId)
249         throws com.liferay.portal.PortalException,
250             com.liferay.portal.SystemException {
251         return _service.getStructure(groupId, structureId);
252     }
253 
254     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
255         throws com.liferay.portal.SystemException {
256         return _service.getStructures();
257     }
258 
259     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
260         long groupId) throws com.liferay.portal.SystemException {
261         return _service.getStructures(groupId);
262     }
263 
264     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
265         long groupId, int start, int end)
266         throws com.liferay.portal.SystemException {
267         return _service.getStructures(groupId, start, end);
268     }
269 
270     public static int getStructuresCount(long groupId)
271         throws com.liferay.portal.SystemException {
272         return _service.getStructuresCount(groupId);
273     }
274 
275     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
276         long companyId, long groupId, java.lang.String keywords, int start,
277         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
278         throws com.liferay.portal.SystemException {
279         return _service.search(companyId, groupId, keywords, start, end, obc);
280     }
281 
282     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
283         long companyId, long groupId, java.lang.String structureId,
284         java.lang.String name, java.lang.String description,
285         boolean andOperator, int start, int end,
286         com.liferay.portal.kernel.util.OrderByComparator obc)
287         throws com.liferay.portal.SystemException {
288         return _service.search(companyId, groupId, structureId, name,
289             description, andOperator, start, end, obc);
290     }
291 
292     public static int searchCount(long companyId, long groupId,
293         java.lang.String keywords) throws com.liferay.portal.SystemException {
294         return _service.searchCount(companyId, groupId, keywords);
295     }
296 
297     public static int searchCount(long companyId, long groupId,
298         java.lang.String structureId, java.lang.String name,
299         java.lang.String description, boolean andOperator)
300         throws com.liferay.portal.SystemException {
301         return _service.searchCount(companyId, groupId, structureId, name,
302             description, andOperator);
303     }
304 
305     public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
306         long groupId, java.lang.String structureId, java.lang.String name,
307         java.lang.String description, java.lang.String xsd)
308         throws com.liferay.portal.PortalException,
309             com.liferay.portal.SystemException {
310         return _service.updateStructure(groupId, structureId, name,
311             description, xsd);
312     }
313 
314     public static JournalStructureLocalService getService() {
315         return _service;
316     }
317 
318     public void setService(JournalStructureLocalService service) {
319         _service = service;
320     }
321 
322     private static JournalStructureLocalService _service;
323 }