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.portal.service;
24  
25  
26  /**
27   * <a href="PortletLocalServiceUtil.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.portal.service.PortletLocalService</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   * <p>
43   * <code>com.liferay.portal.service.PortletLocalServiceFactory</code>
44   * is responsible for the lookup of the bean.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portal.service.PortletLocalService
50   * @see com.liferay.portal.service.PortletLocalServiceFactory
51   *
52   */
53  public class PortletLocalServiceUtil {
54      public static com.liferay.portal.model.Portlet addPortlet(
55          com.liferay.portal.model.Portlet model)
56          throws com.liferay.portal.SystemException {
57          PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
58  
59          return portletLocalService.addPortlet(model);
60      }
61  
62      public static java.util.List dynamicQuery(
63          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
64          throws com.liferay.portal.SystemException {
65          PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
66  
67          return portletLocalService.dynamicQuery(queryInitializer);
68      }
69  
70      public static java.util.List dynamicQuery(
71          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
72          int begin, int end) throws com.liferay.portal.SystemException {
73          PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
74  
75          return portletLocalService.dynamicQuery(queryInitializer, begin, end);
76      }
77  
78      public static com.liferay.portal.model.Portlet updatePortlet(
79          com.liferay.portal.model.Portlet model)
80          throws com.liferay.portal.SystemException {
81          PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
82  
83          return portletLocalService.updatePortlet(model);
84      }
85  
86      public static com.liferay.portal.service.persistence.AccountPersistence getAccountPersistence() {
87          PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
88  
89          return portletLocalService.getAccountPersistence();
90      }
91  
92      public static void setAccountPersistence(
93          com.liferay.portal.service.persistence.AccountPersistence accountPersistence) {
94          PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
95  
96          portletLocalService.setAccountPersistence(accountPersistence);
97      }
98  
99      public static com.liferay.portal.service.persistence.ActivityTrackerPersistence getActivityTrackerPersistence() {
100         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
101 
102         return portletLocalService.getActivityTrackerPersistence();
103     }
104 
105     public static void setActivityTrackerPersistence(
106         com.liferay.portal.service.persistence.ActivityTrackerPersistence activityTrackerPersistence) {
107         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
108 
109         portletLocalService.setActivityTrackerPersistence(activityTrackerPersistence);
110     }
111 
112     public static com.liferay.portal.service.persistence.ActivityTrackerFinder getActivityTrackerFinder() {
113         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
114 
115         return portletLocalService.getActivityTrackerFinder();
116     }
117 
118     public static void setActivityTrackerFinder(
119         com.liferay.portal.service.persistence.ActivityTrackerFinder activityTrackerFinder) {
120         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
121 
122         portletLocalService.setActivityTrackerFinder(activityTrackerFinder);
123     }
124 
125     public static com.liferay.portal.service.persistence.AddressPersistence getAddressPersistence() {
126         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
127 
128         return portletLocalService.getAddressPersistence();
129     }
130 
131     public static void setAddressPersistence(
132         com.liferay.portal.service.persistence.AddressPersistence addressPersistence) {
133         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
134 
135         portletLocalService.setAddressPersistence(addressPersistence);
136     }
137 
138     public static com.liferay.portal.service.persistence.ClassNamePersistence getClassNamePersistence() {
139         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
140 
141         return portletLocalService.getClassNamePersistence();
142     }
143 
144     public static void setClassNamePersistence(
145         com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence) {
146         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
147 
148         portletLocalService.setClassNamePersistence(classNamePersistence);
149     }
150 
151     public static com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence() {
152         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
153 
154         return portletLocalService.getCompanyPersistence();
155     }
156 
157     public static void setCompanyPersistence(
158         com.liferay.portal.service.persistence.CompanyPersistence companyPersistence) {
159         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
160 
161         portletLocalService.setCompanyPersistence(companyPersistence);
162     }
163 
164     public static com.liferay.portal.service.persistence.ContactPersistence getContactPersistence() {
165         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
166 
167         return portletLocalService.getContactPersistence();
168     }
169 
170     public static void setContactPersistence(
171         com.liferay.portal.service.persistence.ContactPersistence contactPersistence) {
172         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
173 
174         portletLocalService.setContactPersistence(contactPersistence);
175     }
176 
177     public static com.liferay.portal.service.persistence.CountryPersistence getCountryPersistence() {
178         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
179 
180         return portletLocalService.getCountryPersistence();
181     }
182 
183     public static void setCountryPersistence(
184         com.liferay.portal.service.persistence.CountryPersistence countryPersistence) {
185         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
186 
187         portletLocalService.setCountryPersistence(countryPersistence);
188     }
189 
190     public static com.liferay.portal.service.persistence.EmailAddressPersistence getEmailAddressPersistence() {
191         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
192 
193         return portletLocalService.getEmailAddressPersistence();
194     }
195 
196     public static void setEmailAddressPersistence(
197         com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence) {
198         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
199 
200         portletLocalService.setEmailAddressPersistence(emailAddressPersistence);
201     }
202 
203     public static com.liferay.portal.service.persistence.GroupPersistence getGroupPersistence() {
204         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
205 
206         return portletLocalService.getGroupPersistence();
207     }
208 
209     public static void setGroupPersistence(
210         com.liferay.portal.service.persistence.GroupPersistence groupPersistence) {
211         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
212 
213         portletLocalService.setGroupPersistence(groupPersistence);
214     }
215 
216     public static com.liferay.portal.service.persistence.GroupFinder getGroupFinder() {
217         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
218 
219         return portletLocalService.getGroupFinder();
220     }
221 
222     public static void setGroupFinder(
223         com.liferay.portal.service.persistence.GroupFinder groupFinder) {
224         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
225 
226         portletLocalService.setGroupFinder(groupFinder);
227     }
228 
229     public static com.liferay.portal.service.persistence.ImagePersistence getImagePersistence() {
230         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
231 
232         return portletLocalService.getImagePersistence();
233     }
234 
235     public static void setImagePersistence(
236         com.liferay.portal.service.persistence.ImagePersistence imagePersistence) {
237         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
238 
239         portletLocalService.setImagePersistence(imagePersistence);
240     }
241 
242     public static com.liferay.portal.service.persistence.LayoutPersistence getLayoutPersistence() {
243         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
244 
245         return portletLocalService.getLayoutPersistence();
246     }
247 
248     public static void setLayoutPersistence(
249         com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence) {
250         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
251 
252         portletLocalService.setLayoutPersistence(layoutPersistence);
253     }
254 
255     public static com.liferay.portal.service.persistence.LayoutFinder getLayoutFinder() {
256         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
257 
258         return portletLocalService.getLayoutFinder();
259     }
260 
261     public static void setLayoutFinder(
262         com.liferay.portal.service.persistence.LayoutFinder layoutFinder) {
263         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
264 
265         portletLocalService.setLayoutFinder(layoutFinder);
266     }
267 
268     public static com.liferay.portal.service.persistence.LayoutSetPersistence getLayoutSetPersistence() {
269         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
270 
271         return portletLocalService.getLayoutSetPersistence();
272     }
273 
274     public static void setLayoutSetPersistence(
275         com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence) {
276         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
277 
278         portletLocalService.setLayoutSetPersistence(layoutSetPersistence);
279     }
280 
281     public static com.liferay.portal.service.persistence.ListTypePersistence getListTypePersistence() {
282         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
283 
284         return portletLocalService.getListTypePersistence();
285     }
286 
287     public static void setListTypePersistence(
288         com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence) {
289         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
290 
291         portletLocalService.setListTypePersistence(listTypePersistence);
292     }
293 
294     public static com.liferay.portal.service.persistence.MembershipRequestPersistence getMembershipRequestPersistence() {
295         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
296 
297         return portletLocalService.getMembershipRequestPersistence();
298     }
299 
300     public static void setMembershipRequestPersistence(
301         com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence) {
302         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
303 
304         portletLocalService.setMembershipRequestPersistence(membershipRequestPersistence);
305     }
306 
307     public static com.liferay.portal.service.persistence.OrganizationPersistence getOrganizationPersistence() {
308         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
309 
310         return portletLocalService.getOrganizationPersistence();
311     }
312 
313     public static void setOrganizationPersistence(
314         com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence) {
315         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
316 
317         portletLocalService.setOrganizationPersistence(organizationPersistence);
318     }
319 
320     public static com.liferay.portal.service.persistence.OrganizationFinder getOrganizationFinder() {
321         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
322 
323         return portletLocalService.getOrganizationFinder();
324     }
325 
326     public static void setOrganizationFinder(
327         com.liferay.portal.service.persistence.OrganizationFinder organizationFinder) {
328         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
329 
330         portletLocalService.setOrganizationFinder(organizationFinder);
331     }
332 
333     public static com.liferay.portal.service.persistence.OrgGroupPermissionPersistence getOrgGroupPermissionPersistence() {
334         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
335 
336         return portletLocalService.getOrgGroupPermissionPersistence();
337     }
338 
339     public static void setOrgGroupPermissionPersistence(
340         com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence) {
341         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
342 
343         portletLocalService.setOrgGroupPermissionPersistence(orgGroupPermissionPersistence);
344     }
345 
346     public static com.liferay.portal.service.persistence.OrgGroupPermissionFinder getOrgGroupPermissionFinder() {
347         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
348 
349         return portletLocalService.getOrgGroupPermissionFinder();
350     }
351 
352     public static void setOrgGroupPermissionFinder(
353         com.liferay.portal.service.persistence.OrgGroupPermissionFinder orgGroupPermissionFinder) {
354         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
355 
356         portletLocalService.setOrgGroupPermissionFinder(orgGroupPermissionFinder);
357     }
358 
359     public static com.liferay.portal.service.persistence.OrgGroupRolePersistence getOrgGroupRolePersistence() {
360         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
361 
362         return portletLocalService.getOrgGroupRolePersistence();
363     }
364 
365     public static void setOrgGroupRolePersistence(
366         com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence) {
367         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
368 
369         portletLocalService.setOrgGroupRolePersistence(orgGroupRolePersistence);
370     }
371 
372     public static com.liferay.portal.service.persistence.OrgLaborPersistence getOrgLaborPersistence() {
373         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
374 
375         return portletLocalService.getOrgLaborPersistence();
376     }
377 
378     public static void setOrgLaborPersistence(
379         com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence) {
380         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
381 
382         portletLocalService.setOrgLaborPersistence(orgLaborPersistence);
383     }
384 
385     public static com.liferay.portal.service.persistence.PasswordPolicyPersistence getPasswordPolicyPersistence() {
386         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
387 
388         return portletLocalService.getPasswordPolicyPersistence();
389     }
390 
391     public static void setPasswordPolicyPersistence(
392         com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence) {
393         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
394 
395         portletLocalService.setPasswordPolicyPersistence(passwordPolicyPersistence);
396     }
397 
398     public static com.liferay.portal.service.persistence.PasswordPolicyFinder getPasswordPolicyFinder() {
399         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
400 
401         return portletLocalService.getPasswordPolicyFinder();
402     }
403 
404     public static void setPasswordPolicyFinder(
405         com.liferay.portal.service.persistence.PasswordPolicyFinder passwordPolicyFinder) {
406         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
407 
408         portletLocalService.setPasswordPolicyFinder(passwordPolicyFinder);
409     }
410 
411     public static com.liferay.portal.service.persistence.PasswordPolicyRelPersistence getPasswordPolicyRelPersistence() {
412         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
413 
414         return portletLocalService.getPasswordPolicyRelPersistence();
415     }
416 
417     public static void setPasswordPolicyRelPersistence(
418         com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence) {
419         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
420 
421         portletLocalService.setPasswordPolicyRelPersistence(passwordPolicyRelPersistence);
422     }
423 
424     public static com.liferay.portal.service.persistence.PasswordTrackerPersistence getPasswordTrackerPersistence() {
425         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
426 
427         return portletLocalService.getPasswordTrackerPersistence();
428     }
429 
430     public static void setPasswordTrackerPersistence(
431         com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence) {
432         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
433 
434         portletLocalService.setPasswordTrackerPersistence(passwordTrackerPersistence);
435     }
436 
437     public static com.liferay.portal.service.persistence.PermissionPersistence getPermissionPersistence() {
438         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
439 
440         return portletLocalService.getPermissionPersistence();
441     }
442 
443     public static void setPermissionPersistence(
444         com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence) {
445         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
446 
447         portletLocalService.setPermissionPersistence(permissionPersistence);
448     }
449 
450     public static com.liferay.portal.service.persistence.PermissionFinder getPermissionFinder() {
451         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
452 
453         return portletLocalService.getPermissionFinder();
454     }
455 
456     public static void setPermissionFinder(
457         com.liferay.portal.service.persistence.PermissionFinder permissionFinder) {
458         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
459 
460         portletLocalService.setPermissionFinder(permissionFinder);
461     }
462 
463     public static com.liferay.portal.service.persistence.PermissionUserFinder getPermissionUserFinder() {
464         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
465 
466         return portletLocalService.getPermissionUserFinder();
467     }
468 
469     public static void setPermissionUserFinder(
470         com.liferay.portal.service.persistence.PermissionUserFinder permissionUserFinder) {
471         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
472 
473         portletLocalService.setPermissionUserFinder(permissionUserFinder);
474     }
475 
476     public static com.liferay.portal.service.persistence.PhonePersistence getPhonePersistence() {
477         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
478 
479         return portletLocalService.getPhonePersistence();
480     }
481 
482     public static void setPhonePersistence(
483         com.liferay.portal.service.persistence.PhonePersistence phonePersistence) {
484         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
485 
486         portletLocalService.setPhonePersistence(phonePersistence);
487     }
488 
489     public static com.liferay.portal.service.persistence.PluginSettingPersistence getPluginSettingPersistence() {
490         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
491 
492         return portletLocalService.getPluginSettingPersistence();
493     }
494 
495     public static void setPluginSettingPersistence(
496         com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence) {
497         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
498 
499         portletLocalService.setPluginSettingPersistence(pluginSettingPersistence);
500     }
501 
502     public static com.liferay.portal.service.persistence.PortletPersistence getPortletPersistence() {
503         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
504 
505         return portletLocalService.getPortletPersistence();
506     }
507 
508     public static void setPortletPersistence(
509         com.liferay.portal.service.persistence.PortletPersistence portletPersistence) {
510         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
511 
512         portletLocalService.setPortletPersistence(portletPersistence);
513     }
514 
515     public static com.liferay.portal.service.persistence.PortletPreferencesPersistence getPortletPreferencesPersistence() {
516         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
517 
518         return portletLocalService.getPortletPreferencesPersistence();
519     }
520 
521     public static void setPortletPreferencesPersistence(
522         com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence) {
523         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
524 
525         portletLocalService.setPortletPreferencesPersistence(portletPreferencesPersistence);
526     }
527 
528     public static com.liferay.portal.service.persistence.PortletPreferencesFinder getPortletPreferencesFinder() {
529         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
530 
531         return portletLocalService.getPortletPreferencesFinder();
532     }
533 
534     public static void setPortletPreferencesFinder(
535         com.liferay.portal.service.persistence.PortletPreferencesFinder portletPreferencesFinder) {
536         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
537 
538         portletLocalService.setPortletPreferencesFinder(portletPreferencesFinder);
539     }
540 
541     public static com.liferay.portal.service.persistence.RegionPersistence getRegionPersistence() {
542         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
543 
544         return portletLocalService.getRegionPersistence();
545     }
546 
547     public static void setRegionPersistence(
548         com.liferay.portal.service.persistence.RegionPersistence regionPersistence) {
549         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
550 
551         portletLocalService.setRegionPersistence(regionPersistence);
552     }
553 
554     public static com.liferay.portal.service.persistence.ReleasePersistence getReleasePersistence() {
555         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
556 
557         return portletLocalService.getReleasePersistence();
558     }
559 
560     public static void setReleasePersistence(
561         com.liferay.portal.service.persistence.ReleasePersistence releasePersistence) {
562         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
563 
564         portletLocalService.setReleasePersistence(releasePersistence);
565     }
566 
567     public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
568         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
569 
570         return portletLocalService.getResourcePersistence();
571     }
572 
573     public static void setResourcePersistence(
574         com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
575         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
576 
577         portletLocalService.setResourcePersistence(resourcePersistence);
578     }
579 
580     public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
581         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
582 
583         return portletLocalService.getResourceFinder();
584     }
585 
586     public static void setResourceFinder(
587         com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
588         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
589 
590         portletLocalService.setResourceFinder(resourceFinder);
591     }
592 
593     public static com.liferay.portal.service.persistence.ResourceCodePersistence getResourceCodePersistence() {
594         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
595 
596         return portletLocalService.getResourceCodePersistence();
597     }
598 
599     public static void setResourceCodePersistence(
600         com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence) {
601         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
602 
603         portletLocalService.setResourceCodePersistence(resourceCodePersistence);
604     }
605 
606     public static com.liferay.portal.service.persistence.RolePersistence getRolePersistence() {
607         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
608 
609         return portletLocalService.getRolePersistence();
610     }
611 
612     public static void setRolePersistence(
613         com.liferay.portal.service.persistence.RolePersistence rolePersistence) {
614         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
615 
616         portletLocalService.setRolePersistence(rolePersistence);
617     }
618 
619     public static com.liferay.portal.service.persistence.RoleFinder getRoleFinder() {
620         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
621 
622         return portletLocalService.getRoleFinder();
623     }
624 
625     public static void setRoleFinder(
626         com.liferay.portal.service.persistence.RoleFinder roleFinder) {
627         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
628 
629         portletLocalService.setRoleFinder(roleFinder);
630     }
631 
632     public static com.liferay.portal.service.persistence.ServiceComponentPersistence getServiceComponentPersistence() {
633         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
634 
635         return portletLocalService.getServiceComponentPersistence();
636     }
637 
638     public static void setServiceComponentPersistence(
639         com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence) {
640         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
641 
642         portletLocalService.setServiceComponentPersistence(serviceComponentPersistence);
643     }
644 
645     public static com.liferay.portal.service.persistence.SubscriptionPersistence getSubscriptionPersistence() {
646         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
647 
648         return portletLocalService.getSubscriptionPersistence();
649     }
650 
651     public static void setSubscriptionPersistence(
652         com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence) {
653         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
654 
655         portletLocalService.setSubscriptionPersistence(subscriptionPersistence);
656     }
657 
658     public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
659         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
660 
661         return portletLocalService.getUserPersistence();
662     }
663 
664     public static void setUserPersistence(
665         com.liferay.portal.service.persistence.UserPersistence userPersistence) {
666         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
667 
668         portletLocalService.setUserPersistence(userPersistence);
669     }
670 
671     public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
672         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
673 
674         return portletLocalService.getUserFinder();
675     }
676 
677     public static void setUserFinder(
678         com.liferay.portal.service.persistence.UserFinder userFinder) {
679         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
680 
681         portletLocalService.setUserFinder(userFinder);
682     }
683 
684     public static com.liferay.portal.service.persistence.UserGroupPersistence getUserGroupPersistence() {
685         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
686 
687         return portletLocalService.getUserGroupPersistence();
688     }
689 
690     public static void setUserGroupPersistence(
691         com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence) {
692         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
693 
694         portletLocalService.setUserGroupPersistence(userGroupPersistence);
695     }
696 
697     public static com.liferay.portal.service.persistence.UserGroupFinder getUserGroupFinder() {
698         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
699 
700         return portletLocalService.getUserGroupFinder();
701     }
702 
703     public static void setUserGroupFinder(
704         com.liferay.portal.service.persistence.UserGroupFinder userGroupFinder) {
705         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
706 
707         portletLocalService.setUserGroupFinder(userGroupFinder);
708     }
709 
710     public static com.liferay.portal.service.persistence.UserGroupRolePersistence getUserGroupRolePersistence() {
711         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
712 
713         return portletLocalService.getUserGroupRolePersistence();
714     }
715 
716     public static void setUserGroupRolePersistence(
717         com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence) {
718         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
719 
720         portletLocalService.setUserGroupRolePersistence(userGroupRolePersistence);
721     }
722 
723     public static com.liferay.portal.service.persistence.UserIdMapperPersistence getUserIdMapperPersistence() {
724         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
725 
726         return portletLocalService.getUserIdMapperPersistence();
727     }
728 
729     public static void setUserIdMapperPersistence(
730         com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence) {
731         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
732 
733         portletLocalService.setUserIdMapperPersistence(userIdMapperPersistence);
734     }
735 
736     public static com.liferay.portal.service.persistence.UserTrackerPersistence getUserTrackerPersistence() {
737         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
738 
739         return portletLocalService.getUserTrackerPersistence();
740     }
741 
742     public static void setUserTrackerPersistence(
743         com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence) {
744         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
745 
746         portletLocalService.setUserTrackerPersistence(userTrackerPersistence);
747     }
748 
749     public static com.liferay.portal.service.persistence.UserTrackerPathPersistence getUserTrackerPathPersistence() {
750         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
751 
752         return portletLocalService.getUserTrackerPathPersistence();
753     }
754 
755     public static void setUserTrackerPathPersistence(
756         com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence) {
757         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
758 
759         portletLocalService.setUserTrackerPathPersistence(userTrackerPathPersistence);
760     }
761 
762     public static com.liferay.portal.service.persistence.WebDAVPropsPersistence getWebDAVPropsPersistence() {
763         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
764 
765         return portletLocalService.getWebDAVPropsPersistence();
766     }
767 
768     public static void setWebDAVPropsPersistence(
769         com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence) {
770         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
771 
772         portletLocalService.setWebDAVPropsPersistence(webDAVPropsPersistence);
773     }
774 
775     public static com.liferay.portal.service.persistence.WebsitePersistence getWebsitePersistence() {
776         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
777 
778         return portletLocalService.getWebsitePersistence();
779     }
780 
781     public static void setWebsitePersistence(
782         com.liferay.portal.service.persistence.WebsitePersistence websitePersistence) {
783         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
784 
785         portletLocalService.setWebsitePersistence(websitePersistence);
786     }
787 
788     public static void afterPropertiesSet() {
789         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
790 
791         portletLocalService.afterPropertiesSet();
792     }
793 
794     public static void destroyPortlet(com.liferay.portal.model.Portlet portlet) {
795         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
796 
797         portletLocalService.destroyPortlet(portlet);
798     }
799 
800     public static com.liferay.portal.model.PortletCategory getEARDisplay(
801         java.lang.String xml) throws com.liferay.portal.SystemException {
802         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
803 
804         return portletLocalService.getEARDisplay(xml);
805     }
806 
807     public static com.liferay.portal.model.PortletCategory getWARDisplay(
808         java.lang.String servletContextName, java.lang.String xml)
809         throws com.liferay.portal.SystemException {
810         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
811 
812         return portletLocalService.getWARDisplay(servletContextName, xml);
813     }
814 
815     public static java.util.List getFriendlyURLMappers() {
816         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
817 
818         return portletLocalService.getFriendlyURLMappers();
819     }
820 
821     public static com.liferay.portal.model.Portlet getPortletById(
822         long companyId, java.lang.String portletId)
823         throws com.liferay.portal.SystemException {
824         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
825 
826         return portletLocalService.getPortletById(companyId, portletId);
827     }
828 
829     public static com.liferay.portal.model.Portlet getPortletByStrutsPath(
830         long companyId, java.lang.String strutsPath)
831         throws com.liferay.portal.SystemException {
832         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
833 
834         return portletLocalService.getPortletByStrutsPath(companyId, strutsPath);
835     }
836 
837     public static java.util.List getPortlets() {
838         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
839 
840         return portletLocalService.getPortlets();
841     }
842 
843     public static java.util.List getPortlets(long companyId)
844         throws com.liferay.portal.SystemException {
845         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
846 
847         return portletLocalService.getPortlets(companyId);
848     }
849 
850     public static java.util.List getPortlets(long companyId,
851         boolean showSystem, boolean showPortal)
852         throws com.liferay.portal.SystemException {
853         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
854 
855         return portletLocalService.getPortlets(companyId, showSystem, showPortal);
856     }
857 
858     public static boolean hasPortlet(long companyId, java.lang.String portletId)
859         throws com.liferay.portal.SystemException {
860         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
861 
862         return portletLocalService.hasPortlet(companyId, portletId);
863     }
864 
865     public static void initEAR(java.lang.String[] xmls,
866         com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
867         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
868 
869         portletLocalService.initEAR(xmls, pluginPackage);
870     }
871 
872     public static java.util.List initWAR(java.lang.String servletContextName,
873         java.lang.String[] xmls,
874         com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
875         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
876 
877         return portletLocalService.initWAR(servletContextName, xmls,
878             pluginPackage);
879     }
880 
881     public static com.liferay.portal.model.Portlet updatePortlet(
882         long companyId, java.lang.String portletId, java.lang.String roles,
883         boolean active)
884         throws com.liferay.portal.PortalException, 
885             com.liferay.portal.SystemException {
886         PortletLocalService portletLocalService = PortletLocalServiceFactory.getService();
887 
888         return portletLocalService.updatePortlet(companyId, portletId, roles,
889             active);
890     }
891 }