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.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="JournalStructureLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link JournalStructureLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       JournalStructureLocalService
37   * @generated
38   */
39  public class JournalStructureLocalServiceUtil {
40      public static com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
41          com.liferay.portlet.journal.model.JournalStructure journalStructure)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addJournalStructure(journalStructure);
44      }
45  
46      public static com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
47          long id) {
48          return getService().createJournalStructure(id);
49      }
50  
51      public static void deleteJournalStructure(long id)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteJournalStructure(id);
55      }
56  
57      public static void deleteJournalStructure(
58          com.liferay.portlet.journal.model.JournalStructure journalStructure)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteJournalStructure(journalStructure);
61      }
62  
63      @SuppressWarnings("unchecked")
64      public static java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException {
67          return getService().dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("unchecked")
71      public static java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException {
74          return getService().dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("unchecked")
78      public static java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException {
83          return getService()
84                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85      }
86  
87      public static long dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().dynamicQueryCount(dynamicQuery);
91      }
92  
93      public static com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
94          long id)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getService().getJournalStructure(id);
98      }
99  
100     public static com.liferay.portlet.journal.model.JournalStructure getJournalStructureByUuidAndGroupId(
101         java.lang.String uuid, long groupId)
102         throws com.liferay.portal.kernel.exception.PortalException,
103             com.liferay.portal.kernel.exception.SystemException {
104         return getService().getJournalStructureByUuidAndGroupId(uuid, groupId);
105     }
106 
107     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
108         int start, int end)
109         throws com.liferay.portal.kernel.exception.SystemException {
110         return getService().getJournalStructures(start, end);
111     }
112 
113     public static int getJournalStructuresCount()
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getService().getJournalStructuresCount();
116     }
117 
118     public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
119         com.liferay.portlet.journal.model.JournalStructure journalStructure)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getService().updateJournalStructure(journalStructure);
122     }
123 
124     public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
125         com.liferay.portlet.journal.model.JournalStructure journalStructure,
126         boolean merge)
127         throws com.liferay.portal.kernel.exception.SystemException {
128         return getService().updateJournalStructure(journalStructure, merge);
129     }
130 
131     public static com.liferay.portlet.journal.model.JournalStructure addStructure(
132         long userId, long groupId, java.lang.String structureId,
133         boolean autoStructureId, java.lang.String parentStructureId,
134         java.lang.String name, java.lang.String description,
135         java.lang.String xsd,
136         com.liferay.portal.service.ServiceContext serviceContext)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException {
139         return getService()
140                    .addStructure(userId, groupId, structureId, autoStructureId,
141             parentStructureId, name, description, xsd, serviceContext);
142     }
143 
144     public static com.liferay.portlet.journal.model.JournalStructure addStructure(
145         java.lang.String uuid, long userId, long groupId,
146         java.lang.String structureId, boolean autoStructureId,
147         java.lang.String parentStructureId, java.lang.String name,
148         java.lang.String description, java.lang.String xsd,
149         com.liferay.portal.service.ServiceContext serviceContext)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException {
152         return getService()
153                    .addStructure(uuid, userId, groupId, structureId,
154             autoStructureId, parentStructureId, name, description, xsd,
155             serviceContext);
156     }
157 
158     public static void addStructureResources(long groupId,
159         java.lang.String structureId, boolean addCommunityPermissions,
160         boolean addGuestPermissions)
161         throws com.liferay.portal.kernel.exception.PortalException,
162             com.liferay.portal.kernel.exception.SystemException {
163         getService()
164             .addStructureResources(groupId, structureId,
165             addCommunityPermissions, addGuestPermissions);
166     }
167 
168     public static void addStructureResources(
169         com.liferay.portlet.journal.model.JournalStructure structure,
170         boolean addCommunityPermissions, boolean addGuestPermissions)
171         throws com.liferay.portal.kernel.exception.PortalException,
172             com.liferay.portal.kernel.exception.SystemException {
173         getService()
174             .addStructureResources(structure, addCommunityPermissions,
175             addGuestPermissions);
176     }
177 
178     public static void addStructureResources(long groupId,
179         java.lang.String structureId, java.lang.String[] communityPermissions,
180         java.lang.String[] guestPermissions)
181         throws com.liferay.portal.kernel.exception.PortalException,
182             com.liferay.portal.kernel.exception.SystemException {
183         getService()
184             .addStructureResources(groupId, structureId, communityPermissions,
185             guestPermissions);
186     }
187 
188     public static void addStructureResources(
189         com.liferay.portlet.journal.model.JournalStructure structure,
190         java.lang.String[] communityPermissions,
191         java.lang.String[] guestPermissions)
192         throws com.liferay.portal.kernel.exception.PortalException,
193             com.liferay.portal.kernel.exception.SystemException {
194         getService()
195             .addStructureResources(structure, communityPermissions,
196             guestPermissions);
197     }
198 
199     public static void checkNewLine(long groupId, java.lang.String structureId)
200         throws com.liferay.portal.kernel.exception.PortalException,
201             com.liferay.portal.kernel.exception.SystemException {
202         getService().checkNewLine(groupId, structureId);
203     }
204 
205     public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
206         long userId, long groupId, java.lang.String oldStructureId,
207         java.lang.String newStructureId, boolean autoStructureId)
208         throws com.liferay.portal.kernel.exception.PortalException,
209             com.liferay.portal.kernel.exception.SystemException {
210         return getService()
211                    .copyStructure(userId, groupId, oldStructureId,
212             newStructureId, autoStructureId);
213     }
214 
215     public static void deleteStructure(long groupId,
216         java.lang.String structureId)
217         throws com.liferay.portal.kernel.exception.PortalException,
218             com.liferay.portal.kernel.exception.SystemException {
219         getService().deleteStructure(groupId, structureId);
220     }
221 
222     public static void deleteStructure(
223         com.liferay.portlet.journal.model.JournalStructure structure)
224         throws com.liferay.portal.kernel.exception.PortalException,
225             com.liferay.portal.kernel.exception.SystemException {
226         getService().deleteStructure(structure);
227     }
228 
229     public static void deleteStructures(long groupId)
230         throws com.liferay.portal.kernel.exception.PortalException,
231             com.liferay.portal.kernel.exception.SystemException {
232         getService().deleteStructures(groupId);
233     }
234 
235     public static com.liferay.portlet.journal.model.JournalStructure getStructure(
236         long id)
237         throws com.liferay.portal.kernel.exception.PortalException,
238             com.liferay.portal.kernel.exception.SystemException {
239         return getService().getStructure(id);
240     }
241 
242     public static com.liferay.portlet.journal.model.JournalStructure getStructure(
243         long groupId, java.lang.String structureId)
244         throws com.liferay.portal.kernel.exception.PortalException,
245             com.liferay.portal.kernel.exception.SystemException {
246         return getService().getStructure(groupId, structureId);
247     }
248 
249     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
250         throws com.liferay.portal.kernel.exception.SystemException {
251         return getService().getStructures();
252     }
253 
254     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
255         long groupId)
256         throws com.liferay.portal.kernel.exception.SystemException {
257         return getService().getStructures(groupId);
258     }
259 
260     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
261         long groupId, int start, int end)
262         throws com.liferay.portal.kernel.exception.SystemException {
263         return getService().getStructures(groupId, start, end);
264     }
265 
266     public static int getStructuresCount(long groupId)
267         throws com.liferay.portal.kernel.exception.SystemException {
268         return getService().getStructuresCount(groupId);
269     }
270 
271     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
272         long companyId, long groupId, java.lang.String keywords, int start,
273         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
274         throws com.liferay.portal.kernel.exception.SystemException {
275         return getService().search(companyId, groupId, keywords, start, end, obc);
276     }
277 
278     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
279         long companyId, long groupId, java.lang.String structureId,
280         java.lang.String name, java.lang.String description,
281         boolean andOperator, int start, int end,
282         com.liferay.portal.kernel.util.OrderByComparator obc)
283         throws com.liferay.portal.kernel.exception.SystemException {
284         return getService()
285                    .search(companyId, groupId, structureId, name, description,
286             andOperator, start, end, obc);
287     }
288 
289     public static int searchCount(long companyId, long groupId,
290         java.lang.String keywords)
291         throws com.liferay.portal.kernel.exception.SystemException {
292         return getService().searchCount(companyId, groupId, keywords);
293     }
294 
295     public static int searchCount(long companyId, long groupId,
296         java.lang.String structureId, java.lang.String name,
297         java.lang.String description, boolean andOperator)
298         throws com.liferay.portal.kernel.exception.SystemException {
299         return getService()
300                    .searchCount(companyId, groupId, structureId, name,
301             description, andOperator);
302     }
303 
304     public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
305         long groupId, java.lang.String structureId,
306         java.lang.String parentStructureId, java.lang.String name,
307         java.lang.String description, java.lang.String xsd,
308         com.liferay.portal.service.ServiceContext serviceContext)
309         throws com.liferay.portal.kernel.exception.PortalException,
310             com.liferay.portal.kernel.exception.SystemException {
311         return getService()
312                    .updateStructure(groupId, structureId, parentStructureId,
313             name, description, xsd, serviceContext);
314     }
315 
316     public static JournalStructureLocalService getService() {
317         if (_service == null) {
318             _service = (JournalStructureLocalService)PortalBeanLocatorUtil.locate(JournalStructureLocalService.class.getName());
319         }
320 
321         return _service;
322     }
323 
324     public void setService(JournalStructureLocalService service) {
325         _service = service;
326     }
327 
328     private static JournalStructureLocalService _service;
329 }