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      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static 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          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException {
80          return getService()
81                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82      }
83  
84      public static int dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.kernel.exception.SystemException {
87          return getService().dynamicQueryCount(dynamicQuery);
88      }
89  
90      public static com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
91          long id)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException {
94          return getService().getJournalStructure(id);
95      }
96  
97      public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
98          int start, int end)
99          throws com.liferay.portal.kernel.exception.SystemException {
100         return getService().getJournalStructures(start, end);
101     }
102 
103     public static int getJournalStructuresCount()
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getService().getJournalStructuresCount();
106     }
107 
108     public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
109         com.liferay.portlet.journal.model.JournalStructure journalStructure)
110         throws com.liferay.portal.kernel.exception.SystemException {
111         return getService().updateJournalStructure(journalStructure);
112     }
113 
114     public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
115         com.liferay.portlet.journal.model.JournalStructure journalStructure,
116         boolean merge)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getService().updateJournalStructure(journalStructure, merge);
119     }
120 
121     public static com.liferay.portlet.journal.model.JournalStructure addStructure(
122         long userId, long groupId, java.lang.String structureId,
123         boolean autoStructureId, java.lang.String parentStructureId,
124         java.lang.String name, java.lang.String description,
125         java.lang.String xsd,
126         com.liferay.portal.service.ServiceContext serviceContext)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException {
129         return getService()
130                    .addStructure(userId, groupId, structureId, autoStructureId,
131             parentStructureId, name, description, xsd, serviceContext);
132     }
133 
134     public static com.liferay.portlet.journal.model.JournalStructure addStructure(
135         java.lang.String uuid, long userId, long groupId,
136         java.lang.String structureId, boolean autoStructureId,
137         java.lang.String parentStructureId, java.lang.String name,
138         java.lang.String description, java.lang.String xsd,
139         com.liferay.portal.service.ServiceContext serviceContext)
140         throws com.liferay.portal.kernel.exception.PortalException,
141             com.liferay.portal.kernel.exception.SystemException {
142         return getService()
143                    .addStructure(uuid, userId, groupId, structureId,
144             autoStructureId, parentStructureId, name, description, xsd,
145             serviceContext);
146     }
147 
148     public static void addStructureResources(long groupId,
149         java.lang.String structureId, boolean addCommunityPermissions,
150         boolean addGuestPermissions)
151         throws com.liferay.portal.kernel.exception.PortalException,
152             com.liferay.portal.kernel.exception.SystemException {
153         getService()
154             .addStructureResources(groupId, structureId,
155             addCommunityPermissions, addGuestPermissions);
156     }
157 
158     public static void addStructureResources(
159         com.liferay.portlet.journal.model.JournalStructure structure,
160         boolean addCommunityPermissions, boolean addGuestPermissions)
161         throws com.liferay.portal.kernel.exception.PortalException,
162             com.liferay.portal.kernel.exception.SystemException {
163         getService()
164             .addStructureResources(structure, addCommunityPermissions,
165             addGuestPermissions);
166     }
167 
168     public static void addStructureResources(long groupId,
169         java.lang.String structureId, java.lang.String[] communityPermissions,
170         java.lang.String[] guestPermissions)
171         throws com.liferay.portal.kernel.exception.PortalException,
172             com.liferay.portal.kernel.exception.SystemException {
173         getService()
174             .addStructureResources(groupId, structureId, communityPermissions,
175             guestPermissions);
176     }
177 
178     public static void addStructureResources(
179         com.liferay.portlet.journal.model.JournalStructure structure,
180         java.lang.String[] communityPermissions,
181         java.lang.String[] guestPermissions)
182         throws com.liferay.portal.kernel.exception.PortalException,
183             com.liferay.portal.kernel.exception.SystemException {
184         getService()
185             .addStructureResources(structure, communityPermissions,
186             guestPermissions);
187     }
188 
189     public static void checkNewLine(long groupId, java.lang.String structureId)
190         throws com.liferay.portal.kernel.exception.PortalException,
191             com.liferay.portal.kernel.exception.SystemException {
192         getService().checkNewLine(groupId, structureId);
193     }
194 
195     public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
196         long userId, long groupId, java.lang.String oldStructureId,
197         java.lang.String newStructureId, boolean autoStructureId)
198         throws com.liferay.portal.kernel.exception.PortalException,
199             com.liferay.portal.kernel.exception.SystemException {
200         return getService()
201                    .copyStructure(userId, groupId, oldStructureId,
202             newStructureId, autoStructureId);
203     }
204 
205     public static void deleteStructure(long groupId,
206         java.lang.String structureId)
207         throws com.liferay.portal.kernel.exception.PortalException,
208             com.liferay.portal.kernel.exception.SystemException {
209         getService().deleteStructure(groupId, structureId);
210     }
211 
212     public static void deleteStructure(
213         com.liferay.portlet.journal.model.JournalStructure structure)
214         throws com.liferay.portal.kernel.exception.PortalException,
215             com.liferay.portal.kernel.exception.SystemException {
216         getService().deleteStructure(structure);
217     }
218 
219     public static void deleteStructures(long groupId)
220         throws com.liferay.portal.kernel.exception.PortalException,
221             com.liferay.portal.kernel.exception.SystemException {
222         getService().deleteStructures(groupId);
223     }
224 
225     public static com.liferay.portlet.journal.model.JournalStructure getStructure(
226         long id)
227         throws com.liferay.portal.kernel.exception.PortalException,
228             com.liferay.portal.kernel.exception.SystemException {
229         return getService().getStructure(id);
230     }
231 
232     public static com.liferay.portlet.journal.model.JournalStructure getStructure(
233         long groupId, java.lang.String structureId)
234         throws com.liferay.portal.kernel.exception.PortalException,
235             com.liferay.portal.kernel.exception.SystemException {
236         return getService().getStructure(groupId, structureId);
237     }
238 
239     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
240         throws com.liferay.portal.kernel.exception.SystemException {
241         return getService().getStructures();
242     }
243 
244     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
245         long groupId)
246         throws com.liferay.portal.kernel.exception.SystemException {
247         return getService().getStructures(groupId);
248     }
249 
250     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
251         long groupId, int start, int end)
252         throws com.liferay.portal.kernel.exception.SystemException {
253         return getService().getStructures(groupId, start, end);
254     }
255 
256     public static int getStructuresCount(long groupId)
257         throws com.liferay.portal.kernel.exception.SystemException {
258         return getService().getStructuresCount(groupId);
259     }
260 
261     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
262         long companyId, long groupId, java.lang.String keywords, int start,
263         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.kernel.exception.SystemException {
265         return getService().search(companyId, groupId, keywords, start, end, obc);
266     }
267 
268     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
269         long companyId, long groupId, java.lang.String structureId,
270         java.lang.String name, java.lang.String description,
271         boolean andOperator, int start, int end,
272         com.liferay.portal.kernel.util.OrderByComparator obc)
273         throws com.liferay.portal.kernel.exception.SystemException {
274         return getService()
275                    .search(companyId, groupId, structureId, name, description,
276             andOperator, start, end, obc);
277     }
278 
279     public static int searchCount(long companyId, long groupId,
280         java.lang.String keywords)
281         throws com.liferay.portal.kernel.exception.SystemException {
282         return getService().searchCount(companyId, groupId, keywords);
283     }
284 
285     public static int searchCount(long companyId, long groupId,
286         java.lang.String structureId, java.lang.String name,
287         java.lang.String description, boolean andOperator)
288         throws com.liferay.portal.kernel.exception.SystemException {
289         return getService()
290                    .searchCount(companyId, groupId, structureId, name,
291             description, andOperator);
292     }
293 
294     public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
295         long groupId, java.lang.String structureId,
296         java.lang.String parentStructureId, java.lang.String name,
297         java.lang.String description, java.lang.String xsd,
298         com.liferay.portal.service.ServiceContext serviceContext)
299         throws com.liferay.portal.kernel.exception.PortalException,
300             com.liferay.portal.kernel.exception.SystemException {
301         return getService()
302                    .updateStructure(groupId, structureId, parentStructureId,
303             name, description, xsd, serviceContext);
304     }
305 
306     public static JournalStructureLocalService getService() {
307         if (_service == null) {
308             _service = (JournalStructureLocalService)PortalBeanLocatorUtil.locate(JournalStructureLocalService.class.getName());
309         }
310 
311         return _service;
312     }
313 
314     public void setService(JournalStructureLocalService service) {
315         _service = service;
316     }
317 
318     private static JournalStructureLocalService _service;
319 }