001
014
015 package com.liferay.portal.util;
016
017 import com.liferay.portal.kernel.dao.db.DB;
018 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.portlet.LiferayPortletRequest;
022 import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
023 import com.liferay.portal.kernel.security.pacl.permission.PortalRuntimePermission;
024 import com.liferay.portal.kernel.servlet.taglib.ui.BreadcrumbEntry;
025 import com.liferay.portal.kernel.upload.UploadPortletRequest;
026 import com.liferay.portal.kernel.upload.UploadServletRequest;
027 import com.liferay.portal.model.BaseModel;
028 import com.liferay.portal.model.Company;
029 import com.liferay.portal.model.Group;
030 import com.liferay.portal.model.Layout;
031 import com.liferay.portal.model.LayoutFriendlyURLComposite;
032 import com.liferay.portal.model.LayoutQueryStringComposite;
033 import com.liferay.portal.model.LayoutSet;
034 import com.liferay.portal.model.Portlet;
035 import com.liferay.portal.model.ResourcePermission;
036 import com.liferay.portal.model.User;
037 import com.liferay.portal.service.PortletLocalServiceUtil;
038 import com.liferay.portal.theme.ThemeDisplay;
039 import com.liferay.portlet.InvokerPortlet;
040 import com.liferay.portlet.PortletInstanceFactoryUtil;
041 import com.liferay.portlet.expando.model.ExpandoBridge;
042
043 import java.io.IOException;
044 import java.io.Serializable;
045
046 import java.sql.SQLException;
047
048 import java.util.Date;
049 import java.util.List;
050 import java.util.Locale;
051 import java.util.Map;
052 import java.util.Properties;
053 import java.util.Set;
054 import java.util.TimeZone;
055
056 import javax.portlet.ActionRequest;
057 import javax.portlet.ActionResponse;
058 import javax.portlet.PortletConfig;
059 import javax.portlet.PortletException;
060 import javax.portlet.PortletMode;
061 import javax.portlet.PortletPreferences;
062 import javax.portlet.PortletRequest;
063 import javax.portlet.PortletResponse;
064 import javax.portlet.PortletURL;
065 import javax.portlet.PreferencesValidator;
066 import javax.portlet.RenderRequest;
067 import javax.portlet.RenderResponse;
068 import javax.portlet.ValidatorException;
069 import javax.portlet.WindowState;
070
071 import javax.servlet.ServletContext;
072 import javax.servlet.ServletException;
073 import javax.servlet.http.HttpServletRequest;
074 import javax.servlet.http.HttpServletResponse;
075 import javax.servlet.http.HttpSession;
076 import javax.servlet.jsp.PageContext;
077
078
083 public class PortalUtil {
084
085
089 public static void addPageDescription(
090 String description, HttpServletRequest request) {
091
092 getPortal().addPageDescription(description, request);
093 }
094
095
098 public static void addPageKeywords(
099 String keywords, HttpServletRequest request) {
100
101 getPortal().addPageKeywords(keywords, request);
102 }
103
104
107 public static void addPageSubtitle(
108 String subtitle, HttpServletRequest request) {
109
110 getPortal().addPageSubtitle(subtitle, request);
111 }
112
113
117 public static void addPageTitle(String title, HttpServletRequest request) {
118 getPortal().addPageTitle(title, request);
119 }
120
121 public static void addPortalPortEventListener(
122 PortalPortEventListener portalPortEventListener) {
123
124 getPortal().addPortalPortEventListener(portalPortEventListener);
125 }
126
127 public static void addPortletBreadcrumbEntry(
128 HttpServletRequest request, String title, String url) {
129
130 getPortal().addPortletBreadcrumbEntry(request, title, url);
131 }
132
133 public static void addPortletBreadcrumbEntry(
134 HttpServletRequest request, String title, String url,
135 Map<String, Object> data) {
136
137 getPortal().addPortletBreadcrumbEntry(request, title, url, data);
138 }
139
140 public static void addPortletDefaultResource(
141 HttpServletRequest request, Portlet portlet)
142 throws PortalException, SystemException {
143
144 getPortal().addPortletDefaultResource(request, portlet);
145 }
146
147 public static void addPortletDefaultResource(
148 long companyId, Layout layout, Portlet portlet)
149 throws PortalException, SystemException {
150
151 getPortal().addPortletDefaultResource(companyId, layout, portlet);
152 }
153
154
160 public static String addPreservedParameters(
161 ThemeDisplay themeDisplay, Layout layout, String url,
162 boolean doAsUser) {
163
164 return getPortal().addPreservedParameters(
165 themeDisplay, layout, url, doAsUser);
166 }
167
168
173 public static String addPreservedParameters(
174 ThemeDisplay themeDisplay, String url) {
175
176 return getPortal().addPreservedParameters(themeDisplay, url);
177 }
178
179 public static void addUserLocaleOptionsMessage(HttpServletRequest request) {
180 getPortal().addUserLocaleOptionsMessage(request);
181 }
182
183 public static void clearRequestParameters(RenderRequest renderRequest) {
184 getPortal().clearRequestParameters(renderRequest);
185 }
186
187 public static void copyRequestParameters(
188 ActionRequest actionRequest, ActionResponse actionResponse) {
189
190 getPortal().copyRequestParameters(actionRequest, actionResponse);
191 }
192
193 public static String escapeRedirect(String url) {
194 return getPortal().escapeRedirect(url);
195 }
196
197 public static String generateRandomKey(
198 HttpServletRequest request, String input) {
199
200 return getPortal().generateRandomKey(request, input);
201 }
202
203 public static String getAbsoluteURL(
204 HttpServletRequest request, String url) {
205
206 return getPortal().getAbsoluteURL(request, url);
207 }
208
209 public static LayoutQueryStringComposite
210 getActualLayoutQueryStringComposite(
211 long groupId, boolean privateLayout, String friendlyURL,
212 Map<String, String[]> params, Map<String, Object> requestContext)
213 throws PortalException, SystemException {
214
215 return getPortal().getActualLayoutQueryStringComposite(
216 groupId, privateLayout, friendlyURL, params, requestContext);
217 }
218
219 public static String getActualURL(
220 long groupId, boolean privateLayout, String mainPath,
221 String friendlyURL, Map<String, String[]> params,
222 Map<String, Object> requestContext)
223 throws PortalException, SystemException {
224
225 return getPortal().getActualURL(
226 groupId, privateLayout, mainPath, friendlyURL, params,
227 requestContext);
228 }
229
230
234 public static Locale[] getAlternateLocales(HttpServletRequest request)
235 throws PortalException, SystemException {
236
237 return getPortal().getAlternateLocales(request);
238 }
239
240 public static String getAlternateURL(
241 String canonicalURL, ThemeDisplay themeDisplay, Locale locale,
242 Layout layout)
243 throws PortalException, SystemException {
244
245 return getPortal().getAlternateURL(
246 canonicalURL, themeDisplay, locale, layout);
247 }
248
249
253 public static Set<String> getAuthTokenIgnoreActions() {
254 return getPortal().getAuthTokenIgnoreActions();
255 }
256
257
261 public static Set<String> getAuthTokenIgnorePortlets() {
262 return getPortal().getAuthTokenIgnorePortlets();
263 }
264
265 public static BaseModel<?> getBaseModel(
266 ResourcePermission resourcePermission)
267 throws PortalException, SystemException {
268
269 return getPortal().getBaseModel(resourcePermission);
270 }
271
272 public static BaseModel<?> getBaseModel(String modelName, String primKey)
273 throws PortalException, SystemException {
274
275 return getPortal().getBaseModel(modelName, primKey);
276 }
277
278 public static long getBasicAuthUserId(HttpServletRequest request)
279 throws PortalException, SystemException {
280
281 return getPortal().getBasicAuthUserId(request);
282 }
283
284 public static long getBasicAuthUserId(
285 HttpServletRequest request, long companyId)
286 throws PortalException, SystemException {
287
288 return getPortal().getBasicAuthUserId(request, companyId);
289 }
290
291 public static String getCanonicalURL(
292 String completeURL, ThemeDisplay themeDisplay, Layout layout)
293 throws PortalException, SystemException {
294
295 return getPortal().getCanonicalURL(completeURL, themeDisplay, layout);
296 }
297
298 public static String getCanonicalURL(
299 String completeURL, ThemeDisplay themeDisplay, Layout layout,
300 boolean forceLayoutFriendlyURL)
301 throws PortalException, SystemException {
302
303 return getPortal().getCanonicalURL(
304 completeURL, themeDisplay, layout, forceLayoutFriendlyURL);
305 }
306
307
310 public static String getCDNHost() {
311 return getPortal().getCDNHost();
312 }
313
314 public static String getCDNHost(boolean secure) {
315 return getPortal().getCDNHost(secure);
316 }
317
318 public static String getCDNHost(HttpServletRequest request)
319 throws PortalException, SystemException {
320
321 return getPortal().getCDNHost(request);
322 }
323
324 public static String getCDNHostHttp(long companyId) {
325 return getPortal().getCDNHostHttp(companyId);
326 }
327
328 public static String getCDNHostHttps(long companyId) {
329 return getPortal().getCDNHostHttps(companyId);
330 }
331
332 public static String getClassName(long classNameId) {
333 return getPortal().getClassName(classNameId);
334 }
335
336 public static long getClassNameId(Class<?> clazz) {
337 return getPortal().getClassNameId(clazz);
338 }
339
340 public static long getClassNameId(String value) {
341 return getPortal().getClassNameId(value);
342 }
343
344 public static String getClassNamePortletId(String className) {
345 return getPortal().getClassNamePortletId(className);
346 }
347
348 public static Company getCompany(HttpServletRequest request)
349 throws PortalException, SystemException {
350
351 return getPortal().getCompany(request);
352 }
353
354 public static Company getCompany(PortletRequest portletRequest)
355 throws PortalException, SystemException {
356
357 return getPortal().getCompany(portletRequest);
358 }
359
360 public static long getCompanyId(HttpServletRequest request) {
361 return getPortal().getCompanyId(request);
362 }
363
364 public static long getCompanyId(PortletRequest portletRequest) {
365 return getPortal().getCompanyId(portletRequest);
366 }
367
368 public static long[] getCompanyIds() {
369 return getPortal().getCompanyIds();
370 }
371
372 public static String getComputerAddress() {
373 return getPortal().getComputerAddress();
374 }
375
376 public static String getComputerName() {
377 return getPortal().getComputerName();
378 }
379
380 public static Map<String, List<Portlet>> getControlPanelCategoriesMap(
381 HttpServletRequest request)
382 throws SystemException {
383
384 return getPortal().getControlPanelCategoriesMap(request);
385 }
386
387 public static String getControlPanelCategory(
388 String portletId, ThemeDisplay themeDisplay)
389 throws SystemException {
390
391 return getPortal().getControlPanelCategory(portletId, themeDisplay);
392 }
393
394 public static String getControlPanelFullURL(
395 long scopeGroupId, String ppid, Map<String, String[]> params)
396 throws PortalException, SystemException {
397
398 return getPortal().getControlPanelFullURL(scopeGroupId, ppid, params);
399 }
400
401 public static long getControlPanelPlid(long companyId)
402 throws PortalException, SystemException {
403
404 return getPortal().getControlPanelPlid(companyId);
405 }
406
407 public static long getControlPanelPlid(PortletRequest portletRequest)
408 throws PortalException, SystemException {
409
410 return getPortal().getControlPanelPlid(portletRequest);
411 }
412
413 public static Set<Portlet> getControlPanelPortlets(
414 long companyId, String category)
415 throws SystemException {
416
417 return getPortal().getControlPanelPortlets(companyId, category);
418 }
419
420 public static List<Portlet> getControlPanelPortlets(
421 String category, ThemeDisplay themeDisplay)
422 throws SystemException {
423
424 return getPortal().getControlPanelPortlets(category, themeDisplay);
425 }
426
427 public static PortletURL getControlPanelPortletURL(
428 HttpServletRequest request, String portletId, long referrerPlid,
429 String lifecycle) {
430
431 return getPortal().getControlPanelPortletURL(
432 request, portletId, referrerPlid, lifecycle);
433 }
434
435 public static PortletURL getControlPanelPortletURL(
436 PortletRequest portletRequest, String portletId, long referrerPlid,
437 String lifecycle) {
438
439 return getPortal().getControlPanelPortletURL(
440 portletRequest, portletId, referrerPlid, lifecycle);
441 }
442
443 public static String getCreateAccountURL(
444 HttpServletRequest request, ThemeDisplay themeDisplay)
445 throws Exception {
446
447 return getPortal().getCreateAccountURL(request, themeDisplay);
448 }
449
450 public static String getCurrentCompleteURL(HttpServletRequest request) {
451 return getPortal().getCurrentCompleteURL(request);
452 }
453
454 public static String getCurrentURL(HttpServletRequest request) {
455 return getPortal().getCurrentURL(request);
456 }
457
458 public static String getCurrentURL(PortletRequest portletRequest) {
459 return getPortal().getCurrentURL(portletRequest);
460 }
461
462 public static String getCustomSQLFunctionIsNotNull() {
463 return getPortal().getCustomSQLFunctionIsNotNull();
464 }
465
466 public static String getCustomSQLFunctionIsNull() {
467 return getPortal().getCustomSQLFunctionIsNull();
468 }
469
470 public static Date getDate(int month, int day, int year) {
471 return getPortal().getDate(month, day, year);
472 }
473
474 public static Date getDate(
475 int month, int day, int year,
476 Class<? extends PortalException> clazz)
477 throws PortalException {
478
479 return getPortal().getDate(month, day, year, clazz);
480 }
481
482 public static Date getDate(
483 int month, int day, int year, int hour, int min,
484 Class<? extends PortalException> clazz)
485 throws PortalException {
486
487 return getPortal().getDate(month, day, year, hour, min, clazz);
488 }
489
490 public static Date getDate(
491 int month, int day, int year, int hour, int min, TimeZone timeZone,
492 Class<? extends PortalException> clazz)
493 throws PortalException {
494
495 return getPortal().getDate(
496 month, day, year, hour, min, timeZone, clazz);
497 }
498
499 public static Date getDate(
500 int month, int day, int year, TimeZone timeZone,
501 Class<? extends PortalException> clazz)
502 throws PortalException {
503
504 return getPortal().getDate(month, day, year, timeZone, clazz);
505 }
506
507
510 public static DB getDB() {
511 return DBFactoryUtil.getDB();
512 }
513
514 public static long getDefaultCompanyId() {
515 return getPortal().getDefaultCompanyId();
516 }
517
518 public static long getDigestAuthUserId(HttpServletRequest request)
519 throws PortalException, SystemException {
520
521 return getPortal().getDigestAuthUserId(request);
522 }
523
524 public static String getEmailFromAddress(
525 PortletPreferences preferences, long companyId, String defaultValue)
526 throws SystemException {
527
528 return getPortal().getEmailFromAddress(
529 preferences, companyId, defaultValue);
530 }
531
532 public static String getEmailFromName(
533 PortletPreferences preferences, long companyId, String defaultValue)
534 throws SystemException {
535
536 return getPortal().getEmailFromName(
537 preferences, companyId, defaultValue);
538 }
539
540 public static Map<String, Serializable> getExpandoBridgeAttributes(
541 ExpandoBridge expandoBridge, PortletRequest portletRequest)
542 throws PortalException, SystemException {
543
544 return getPortal().getExpandoBridgeAttributes(
545 expandoBridge, portletRequest);
546 }
547
548 public static Map<String, Serializable> getExpandoBridgeAttributes(
549 ExpandoBridge expandoBridge,
550 UploadPortletRequest uploadPortletRequest)
551 throws PortalException, SystemException {
552
553 return getPortal().getExpandoBridgeAttributes(
554 expandoBridge, uploadPortletRequest);
555 }
556
557 public static Serializable getExpandoValue(
558 PortletRequest portletRequest, String name, int type,
559 String displayType)
560 throws PortalException, SystemException {
561
562 return getPortal().getExpandoValue(
563 portletRequest, name, type, displayType);
564 }
565
566 public static Serializable getExpandoValue(
567 UploadPortletRequest uploadPortletRequest, String name, int type,
568 String displayType)
569 throws PortalException, SystemException {
570
571 return getPortal().getExpandoValue(
572 uploadPortletRequest, name, type, displayType);
573 }
574
575 public static String getFacebookURL(
576 Portlet portlet, String facebookCanvasPageURL,
577 ThemeDisplay themeDisplay)
578 throws PortalException, SystemException {
579
580 return getPortal().getFacebookURL(
581 portlet, facebookCanvasPageURL, themeDisplay);
582 }
583
584 public static Portlet getFirstMyAccountPortlet(ThemeDisplay themeDisplay)
585 throws SystemException {
586
587 return getPortal().getFirstMyAccountPortlet(themeDisplay);
588 }
589
590 public static String getFirstPageLayoutTypes(PageContext pageContext) {
591 return getPortal().getFirstPageLayoutTypes(pageContext);
592 }
593
594 public static Portlet getFirstSiteAdministrationPortlet(
595 ThemeDisplay themeDisplay)
596 throws SystemException {
597
598 return getPortal().getFirstSiteAdministrationPortlet(themeDisplay);
599 }
600
601 public static String getFullName(
602 String firstName, String middleName, String lastName) {
603
604 return getPortal().getFullName(firstName, middleName, lastName);
605 }
606
607 public static String getGlobalLibDir() {
608 return getPortal().getGlobalLibDir();
609 }
610
611 public static String getGoogleGadgetURL(
612 Portlet portlet, ThemeDisplay themeDisplay)
613 throws PortalException, SystemException {
614
615 return getPortal().getGoogleGadgetURL(portlet, themeDisplay);
616 }
617
618 public static String getGroupFriendlyURL(
619 Group group, boolean privateLayoutSet, ThemeDisplay themeDisplay)
620 throws PortalException, SystemException {
621
622 return getPortal().getGroupFriendlyURL(
623 group, privateLayoutSet, themeDisplay);
624 }
625
626 public static String getGroupFriendlyURL(
627 Group group, boolean privateLayoutSet, ThemeDisplay themeDisplay,
628 Locale locale)
629 throws PortalException, SystemException {
630
631 return getPortal().getGroupFriendlyURL(
632 group, privateLayoutSet, themeDisplay, locale);
633 }
634
635 public static int[] getGroupFriendlyURLIndex(String requestURI) {
636 return getPortal().getGroupFriendlyURLIndex(requestURI);
637 }
638
639 public static String[] getGroupPermissions(HttpServletRequest request) {
640 return getPortal().getGroupPermissions(request);
641 }
642
643 public static String[] getGroupPermissions(
644 HttpServletRequest request, String className) {
645
646 return getPortal().getGroupPermissions(request, className);
647 }
648
649 public static String[] getGroupPermissions(PortletRequest portletRequest) {
650 return getPortal().getGroupPermissions(portletRequest);
651 }
652
653 public static String[] getGroupPermissions(
654 PortletRequest portletRequest, String className) {
655
656 return getPortal().getGroupPermissions(portletRequest, className);
657 }
658
659 public static String[] getGuestPermissions(HttpServletRequest request) {
660 return getPortal().getGuestPermissions(request);
661 }
662
663 public static String[] getGuestPermissions(
664 HttpServletRequest request, String className) {
665
666 return getPortal().getGuestPermissions(request, className);
667 }
668
669 public static String[] getGuestPermissions(PortletRequest portletRequest) {
670 return getPortal().getGuestPermissions(portletRequest);
671 }
672
673 public static String[] getGuestPermissions(
674 PortletRequest portletRequest, String className) {
675
676 return getPortal().getGuestPermissions(portletRequest, className);
677 }
678
679 public static String getHomeURL(HttpServletRequest request)
680 throws PortalException, SystemException {
681
682 return getPortal().getHomeURL(request);
683 }
684
685 public static String getHost(HttpServletRequest request) {
686 return getPortal().getHost(request);
687 }
688
689 public static String getHost(PortletRequest portletRequest) {
690 return getPortal().getHost(portletRequest);
691 }
692
693 public static HttpServletRequest getHttpServletRequest(
694 PortletRequest portletRequest) {
695
696 return getPortal().getHttpServletRequest(portletRequest);
697 }
698
699 public static HttpServletResponse getHttpServletResponse(
700 PortletResponse portletResponse) {
701
702 return getPortal().getHttpServletResponse(portletResponse);
703 }
704
705 public static String getI18nPathLanguageId(
706 Locale locale, String defaultI18nPathLanguageId) {
707
708 return getPortal().getI18nPathLanguageId(
709 locale, defaultI18nPathLanguageId);
710 }
711
712 public static String getJournalArticleActualURL(
713 long groupId, boolean privateLayout, String mainPath,
714 String friendlyURL, Map<String, String[]> params,
715 Map<String, Object> requestContext)
716 throws PortalException, SystemException {
717
718 return getPortal().getJournalArticleActualURL(
719 groupId, privateLayout, mainPath, friendlyURL, params,
720 requestContext);
721 }
722
723 public static Layout getJournalArticleLayout(
724 long groupId, boolean privateLayout, String friendlyURL)
725 throws PortalException, SystemException {
726
727 return getPortal().getJournalArticleLayout(
728 groupId, privateLayout, friendlyURL);
729 }
730
731 public static String getJsSafePortletId(String portletId) {
732 return getPortal().getJsSafePortletId(portletId);
733 }
734
735 public static String getLayoutActualURL(Layout layout) {
736 return getPortal().getLayoutActualURL(layout);
737 }
738
739 public static String getLayoutActualURL(Layout layout, String mainPath) {
740 return getPortal().getLayoutActualURL(layout, mainPath);
741 }
742
743 public static String getLayoutActualURL(
744 long groupId, boolean privateLayout, String mainPath,
745 String friendlyURL)
746 throws PortalException, SystemException {
747
748 return getPortal().getLayoutActualURL(
749 groupId, privateLayout, mainPath, friendlyURL);
750 }
751
752 public static String getLayoutActualURL(
753 long groupId, boolean privateLayout, String mainPath,
754 String friendlyURL, Map<String, String[]> params,
755 Map<String, Object> requestContext)
756 throws PortalException, SystemException {
757
758 return getPortal().getLayoutActualURL(
759 groupId, privateLayout, mainPath, friendlyURL, params,
760 requestContext);
761 }
762
763 public static String getLayoutEditPage(Layout layout) {
764 return getPortal().getLayoutEditPage(layout);
765 }
766
767 public static String getLayoutEditPage(String type) {
768 return getPortal().getLayoutEditPage(type);
769 }
770
771 public static String getLayoutFriendlyURL(
772 Layout layout, ThemeDisplay themeDisplay)
773 throws PortalException, SystemException {
774
775 return getPortal().getLayoutFriendlyURL(layout, themeDisplay);
776 }
777
778 public static String getLayoutFriendlyURL(
779 Layout layout, ThemeDisplay themeDisplay, Locale locale)
780 throws PortalException, SystemException {
781
782 return getPortal().getLayoutFriendlyURL(layout, themeDisplay, locale);
783 }
784
785 public static LayoutFriendlyURLComposite getLayoutFriendlyURLComposite(
786 long groupId, boolean privateLayout, String friendlyURL,
787 Map<String, String[]> params, Map<String, Object> requestContext)
788 throws PortalException, SystemException {
789
790 return getPortal().getLayoutFriendlyURLComposite(
791 groupId, privateLayout, friendlyURL, params, requestContext);
792 }
793
794 public static String getLayoutFullURL(
795 Layout layout, ThemeDisplay themeDisplay)
796 throws PortalException, SystemException {
797
798 return getPortal().getLayoutFullURL(layout, themeDisplay);
799 }
800
801 public static String getLayoutFullURL(
802 Layout layout, ThemeDisplay themeDisplay, boolean doAsUser)
803 throws PortalException, SystemException {
804
805 return getPortal().getLayoutFullURL(layout, themeDisplay, doAsUser);
806 }
807
808 public static String getLayoutFullURL(long groupId, String portletId)
809 throws PortalException, SystemException {
810
811 return getPortal().getLayoutFullURL(groupId, portletId);
812 }
813
814 public static String getLayoutFullURL(
815 long groupId, String portletId, boolean secure)
816 throws PortalException, SystemException {
817
818 return getPortal().getLayoutFullURL(groupId, portletId, secure);
819 }
820
821 public static String getLayoutFullURL(ThemeDisplay themeDisplay)
822 throws PortalException, SystemException {
823
824 return getPortal().getLayoutFullURL(themeDisplay);
825 }
826
827 public static String getLayoutSetFriendlyURL(
828 LayoutSet layoutSet, ThemeDisplay themeDisplay)
829 throws PortalException, SystemException {
830
831 return getPortal().getLayoutSetFriendlyURL(layoutSet, themeDisplay);
832 }
833
834 public static String getLayoutTarget(Layout layout) {
835 return getPortal().getLayoutTarget(layout);
836 }
837
838 public static String getLayoutURL(Layout layout, ThemeDisplay themeDisplay)
839 throws PortalException, SystemException {
840
841 return getPortal().getLayoutURL(layout, themeDisplay);
842 }
843
844 public static String getLayoutURL(
845 Layout layout, ThemeDisplay themeDisplay, boolean doAsUser)
846 throws PortalException, SystemException {
847
848 return getPortal().getLayoutURL(layout, themeDisplay, doAsUser);
849 }
850
851 public static String getLayoutURL(ThemeDisplay themeDisplay)
852 throws PortalException, SystemException {
853
854 return getPortal().getLayoutURL(themeDisplay);
855 }
856
857 public static String getLayoutViewPage(Layout layout) {
858 return getPortal().getLayoutViewPage(layout);
859 }
860
861 public static String getLayoutViewPage(String type) {
862 return getPortal().getLayoutViewPage(type);
863 }
864
865 public static LiferayPortletRequest getLiferayPortletRequest(
866 PortletRequest portletRequest) {
867
868 return getPortal().getLiferayPortletRequest(portletRequest);
869 }
870
871 public static LiferayPortletResponse getLiferayPortletResponse(
872 PortletResponse portletResponse) {
873
874 return getPortal().getLiferayPortletResponse(portletResponse);
875 }
876
877 public static Locale getLocale(HttpServletRequest request) {
878 return getPortal().getLocale(request);
879 }
880
881 public static Locale getLocale(
882 HttpServletRequest request, HttpServletResponse response,
883 boolean initialize) {
884
885 return getPortal().getLocale(request, response, initialize);
886 }
887
888 public static Locale getLocale(PortletRequest portletRequest) {
889 return getPortal().getLocale(portletRequest);
890 }
891
892 public static String getLocalizedFriendlyURL(
893 HttpServletRequest request, Layout layout, Locale locale,
894 Locale originalLocale)
895 throws Exception {
896
897 return getPortal().getLocalizedFriendlyURL(
898 request, layout, locale, originalLocale);
899 }
900
901 public static String getMailId(
902 String mx, String popPortletPrefix, Object... ids) {
903
904 return getPortal().getMailId(mx, popPortletPrefix, ids);
905 }
906
907
911 public static BaseModel<?> getModel(ResourcePermission resourcePermission)
912 throws PortalException, SystemException {
913
914 return getPortal().getBaseModel(resourcePermission);
915 }
916
917
921 public static BaseModel<?> getModel(String modelName, String primKey)
922 throws PortalException, SystemException {
923
924 return getPortal().getBaseModel(modelName, primKey);
925 }
926
927 public static String getNetvibesURL(
928 Portlet portlet, ThemeDisplay themeDisplay)
929 throws PortalException, SystemException {
930
931 return getPortal().getNetvibesURL(portlet, themeDisplay);
932 }
933
934 public static String getNewPortletTitle(
935 String portletTitle, String oldScopeName, String newScopeName) {
936
937 return getPortal().getNewPortletTitle(
938 portletTitle, oldScopeName, newScopeName);
939 }
940
941 public static HttpServletRequest getOriginalServletRequest(
942 HttpServletRequest request) {
943
944 return getPortal().getOriginalServletRequest(request);
945 }
946
947
950 public static long getParentGroupId(long scopeGroupId)
951 throws PortalException, SystemException {
952
953 return getPortal().getParentGroupId(scopeGroupId);
954 }
955
956 public static String getPathContext() {
957 return getPortal().getPathContext();
958 }
959
960 public static String getPathContext(HttpServletRequest request) {
961 return getPortal().getPathContext(request);
962 }
963
964 public static String getPathContext(PortletRequest portletRequest) {
965 return getPortal().getPathContext(portletRequest);
966 }
967
968 public static String getPathContext(String contextPath) {
969 return getPortal().getPathContext(contextPath);
970 }
971
972 public static String getPathFriendlyURLPrivateGroup() {
973 return getPortal().getPathFriendlyURLPrivateGroup();
974 }
975
976 public static String getPathFriendlyURLPrivateUser() {
977 return getPortal().getPathFriendlyURLPrivateUser();
978 }
979
980 public static String getPathFriendlyURLPublic() {
981 return getPortal().getPathFriendlyURLPublic();
982 }
983
984 public static String getPathImage() {
985 return getPortal().getPathImage();
986 }
987
988 public static String getPathMain() {
989 return getPortal().getPathMain();
990 }
991
992 public static String getPathModule() {
993 return getPortal().getPathModule();
994 }
995
996 public static String getPathProxy() {
997 return getPortal().getPathProxy();
998 }
999
1000 public static long getPlidFromFriendlyURL(
1001 long companyId, String friendlyURL) {
1002
1003 return getPortal().getPlidFromFriendlyURL(companyId, friendlyURL);
1004 }
1005
1006 public static long getPlidFromPortletId(
1007 long groupId, boolean privateLayout, String portletId)
1008 throws PortalException, SystemException {
1009
1010 return getPortal().getPlidFromPortletId(
1011 groupId, privateLayout, portletId);
1012 }
1013
1014 public static long getPlidFromPortletId(long groupId, String portletId)
1015 throws PortalException, SystemException {
1016
1017 return getPortal().getPlidFromPortletId(groupId, portletId);
1018 }
1019
1020 public static Portal getPortal() {
1021 PortalRuntimePermission.checkGetBeanProperty(PortalUtil.class);
1022
1023 return _portal;
1024 }
1025
1026 public static String getPortalLibDir() {
1027 return getPortal().getPortalLibDir();
1028 }
1029
1030
1033 public static int getPortalPort() {
1034 return getPortal().getPortalPort();
1035 }
1036
1037 public static int getPortalPort(boolean secure) {
1038 return getPortal().getPortalPort(secure);
1039 }
1040
1041 public static Properties getPortalProperties() {
1042 return getPortal().getPortalProperties();
1043 }
1044
1045 public static String getPortalURL(HttpServletRequest request) {
1046 return getPortal().getPortalURL(request);
1047 }
1048
1049 public static String getPortalURL(
1050 HttpServletRequest request, boolean secure) {
1051
1052 return getPortal().getPortalURL(request, secure);
1053 }
1054
1055 public static String getPortalURL(Layout layout, ThemeDisplay themeDisplay)
1056 throws PortalException, SystemException {
1057
1058 return getPortal().getPortalURL(layout, themeDisplay);
1059 }
1060
1061 public static String getPortalURL(PortletRequest portletRequest) {
1062 return getPortal().getPortalURL(portletRequest);
1063 }
1064
1065 public static String getPortalURL(
1066 PortletRequest portletRequest, boolean secure) {
1067
1068 return getPortal().getPortalURL(portletRequest, secure);
1069 }
1070
1071 public static String getPortalURL(
1072 String serverName, int serverPort, boolean secure) {
1073
1074 return getPortal().getPortalURL(serverName, serverPort, secure);
1075 }
1076
1077 public static String getPortalURL(ThemeDisplay themeDisplay)
1078 throws PortalException, SystemException {
1079
1080 return getPortal().getPortalURL(themeDisplay);
1081 }
1082
1083 public static String getPortalWebDir() {
1084 return getPortal().getPortalWebDir();
1085 }
1086
1087
1091 public static Set<String> getPortletAddDefaultResourceCheckWhitelist() {
1092 return getPortal().getPortletAddDefaultResourceCheckWhitelist();
1093 }
1094
1095
1099 public static Set<String>
1100 getPortletAddDefaultResourceCheckWhitelistActions() {
1101
1102 return getPortal().getPortletAddDefaultResourceCheckWhitelistActions();
1103 }
1104
1105
1109 public static List<BreadcrumbEntry> getPortletBreadcrumbList(
1110 HttpServletRequest request) {
1111
1112 return getPortal().getPortletBreadcrumbList(request);
1113 }
1114
1115 public static List<BreadcrumbEntry> getPortletBreadcrumbs(
1116 HttpServletRequest request) {
1117
1118 return getPortal().getPortletBreadcrumbs(request);
1119 }
1120
1121 public static PortletConfig getPortletConfig(
1122 long companyId, String portletId, ServletContext servletContext)
1123 throws PortletException, SystemException {
1124
1125 Portlet portlet = PortletLocalServiceUtil.getPortletById(
1126 companyId, portletId);
1127
1128 InvokerPortlet invokerPortlet = PortletInstanceFactoryUtil.create(
1129 portlet, servletContext);
1130
1131 return invokerPortlet.getPortletConfig();
1132 }
1133
1134 public static String getPortletDescription(
1135 Portlet portlet, ServletContext servletContext, Locale locale) {
1136
1137 return getPortal().getPortletDescription(
1138 portlet, servletContext, locale);
1139 }
1140
1141 public static String getPortletDescription(Portlet portlet, User user) {
1142 return getPortal().getPortletDescription(portlet, user);
1143 }
1144
1145 public static String getPortletDescription(
1146 String portletId, Locale locale) {
1147
1148 return getPortal().getPortletDescription(portletId, locale);
1149 }
1150
1151 public static String getPortletDescription(
1152 String portletId, String languageId) {
1153
1154 return getPortal().getPortletDescription(portletId, languageId);
1155 }
1156
1157 public static String getPortletDescription(String portletId, User user) {
1158 return getPortal().getPortletDescription(portletId, user);
1159 }
1160
1161 public static String getPortletId(HttpServletRequest request) {
1162 return getPortal().getPortletId(request);
1163 }
1164
1165 public static String getPortletId(PortletRequest portletRequest) {
1166 return getPortal().getPortletId(portletRequest);
1167 }
1168
1169 public static String getPortletLongTitle(Portlet portlet, Locale locale) {
1170 return getPortal().getPortletLongTitle(portlet, locale);
1171 }
1172
1173 public static String getPortletLongTitle(
1174 Portlet portlet, ServletContext servletContext, Locale locale) {
1175
1176 return getPortal().getPortletLongTitle(portlet, servletContext, locale);
1177 }
1178
1179 public static String getPortletLongTitle(
1180 Portlet portlet, String languageId) {
1181
1182 return getPortal().getPortletLongTitle(portlet, languageId);
1183 }
1184
1185 public static String getPortletLongTitle(Portlet portlet, User user) {
1186 return getPortal().getPortletLongTitle(portlet, user);
1187 }
1188
1189 public static String getPortletLongTitle(String portletId, Locale locale) {
1190 return getPortal().getPortletLongTitle(portletId, locale);
1191 }
1192
1193 public static String getPortletLongTitle(
1194 String portletId, String languageId) {
1195
1196 return getPortal().getPortletLongTitle(portletId, languageId);
1197 }
1198
1199 public static String getPortletLongTitle(String portletId, User user) {
1200 return getPortal().getPortletLongTitle(portletId, user);
1201 }
1202
1203 public static String getPortletNamespace(String portletId) {
1204 return getPortal().getPortletNamespace(portletId);
1205 }
1206
1207 public static String getPortletTitle(Portlet portlet, Locale locale) {
1208 return getPortal().getPortletTitle(portlet, locale);
1209 }
1210
1211 public static String getPortletTitle(
1212 Portlet portlet, ServletContext servletContext, Locale locale) {
1213
1214 return getPortal().getPortletTitle(portlet, servletContext, locale);
1215 }
1216
1217 public static String getPortletTitle(Portlet portlet, String languageId) {
1218 return getPortal().getPortletTitle(portlet, languageId);
1219 }
1220
1221 public static String getPortletTitle(Portlet portlet, User user) {
1222 return getPortal().getPortletTitle(portlet, user);
1223 }
1224
1225 public static String getPortletTitle(RenderRequest renderRequest) {
1226 return getPortal().getPortletTitle(renderRequest);
1227 }
1228
1229 public static String getPortletTitle(RenderResponse renderResponse) {
1230 return getPortal().getPortletTitle(renderResponse);
1231 }
1232
1233 public static String getPortletTitle(String portletId, Locale locale) {
1234 return getPortal().getPortletTitle(portletId, locale);
1235 }
1236
1237 public static String getPortletTitle(String portletId, String languageId) {
1238 return getPortal().getPortletTitle(portletId, languageId);
1239 }
1240
1241 public static String getPortletTitle(String portletId, User user) {
1242 return getPortal().getPortletTitle(portletId, user);
1243 }
1244
1245 public static String getPortletXmlFileName() throws SystemException {
1246 return getPortal().getPortletXmlFileName();
1247 }
1248
1249 public static PortletPreferences getPreferences(
1250 HttpServletRequest request) {
1251
1252 return getPortal().getPreferences(request);
1253 }
1254
1255 public static PreferencesValidator getPreferencesValidator(
1256 Portlet portlet) {
1257
1258 return getPortal().getPreferencesValidator(portlet);
1259 }
1260
1261 public static String getRelativeHomeURL(HttpServletRequest request)
1262 throws PortalException, SystemException {
1263
1264 return getPortal().getRelativeHomeURL(request);
1265 }
1266
1267 public static long getScopeGroupId(HttpServletRequest request)
1268 throws PortalException, SystemException {
1269
1270 return getPortal().getScopeGroupId(request);
1271 }
1272
1273 public static long getScopeGroupId(
1274 HttpServletRequest request, String portletId)
1275 throws PortalException, SystemException {
1276
1277 return getPortal().getScopeGroupId(request, portletId);
1278 }
1279
1280 public static long getScopeGroupId(
1281 HttpServletRequest request, String portletId,
1282 boolean checkStagingGroup)
1283 throws PortalException, SystemException {
1284
1285 return getPortal().getScopeGroupId(
1286 request, portletId, checkStagingGroup);
1287 }
1288
1289 public static long getScopeGroupId(Layout layout) {
1290 return getPortal().getScopeGroupId(layout);
1291 }
1292
1293 public static long getScopeGroupId(Layout layout, String portletId) {
1294 return getPortal().getScopeGroupId(layout, portletId);
1295 }
1296
1297 public static long getScopeGroupId(long plid) {
1298 return getPortal().getScopeGroupId(plid);
1299 }
1300
1301 public static long getScopeGroupId(PortletRequest portletRequest)
1302 throws PortalException, SystemException {
1303
1304 return getPortal().getScopeGroupId(portletRequest);
1305 }
1306
1307 public static User getSelectedUser(HttpServletRequest request)
1308 throws PortalException, SystemException {
1309
1310 return getPortal().getSelectedUser(request);
1311 }
1312
1313 public static User getSelectedUser(
1314 HttpServletRequest request, boolean checkPermission)
1315 throws PortalException, SystemException {
1316
1317 return getPortal().getSelectedUser(request, checkPermission);
1318 }
1319
1320 public static User getSelectedUser(PortletRequest portletRequest)
1321 throws PortalException, SystemException {
1322
1323 return getPortal().getSelectedUser(portletRequest);
1324 }
1325
1326 public static User getSelectedUser(
1327 PortletRequest portletRequest, boolean checkPermission)
1328 throws PortalException, SystemException {
1329
1330 return getPortal().getSelectedUser(portletRequest, checkPermission);
1331 }
1332
1333 public static String getServletContextName() {
1334 return getPortal().getServletContextName();
1335 }
1336
1337 public static Map<String, List<Portlet>> getSiteAdministrationCategoriesMap(
1338 HttpServletRequest request)
1339 throws SystemException {
1340
1341 return getPortal().getSiteAdministrationCategoriesMap(request);
1342 }
1343
1344 public static PortletURL getSiteAdministrationURL(
1345 HttpServletRequest request, ThemeDisplay themeDisplay)
1346 throws SystemException {
1347
1348 return getPortal().getSiteAdministrationURL(request, themeDisplay);
1349 }
1350
1351 public static PortletURL getSiteAdministrationURL(
1352 HttpServletRequest request, ThemeDisplay themeDisplay,
1353 String portletName) {
1354
1355 return getPortal().getSiteAdministrationURL(
1356 request, themeDisplay, portletName);
1357 }
1358
1359 public static PortletURL getSiteAdministrationURL(
1360 PortletResponse portletResponse, ThemeDisplay themeDisplay)
1361 throws SystemException {
1362
1363 return getPortal().getSiteAdministrationURL(
1364 portletResponse, themeDisplay);
1365 }
1366
1367 public static PortletURL getSiteAdministrationURL(
1368 PortletResponse portletResponse, ThemeDisplay themeDisplay,
1369 String portletName) {
1370
1371 return getPortal().getSiteAdministrationURL(
1372 portletResponse, themeDisplay, portletName);
1373 }
1374
1375 public static long[] getSiteAndCompanyGroupIds(long groupId)
1376 throws PortalException, SystemException {
1377
1378 return getPortal().getSiteAndCompanyGroupIds(groupId);
1379 }
1380
1381 public static long[] getSiteAndCompanyGroupIds(ThemeDisplay themeDisplay)
1382 throws PortalException, SystemException {
1383
1384 return getPortal().getSiteAndCompanyGroupIds(themeDisplay);
1385 }
1386
1387 public static Locale getSiteDefaultLocale(long groupId)
1388 throws PortalException, SystemException {
1389
1390 return getPortal().getSiteDefaultLocale(groupId);
1391 }
1392
1393 public static long getSiteGroupId(long scopeGroupId)
1394 throws PortalException, SystemException {
1395
1396 return getPortal().getSiteGroupId(scopeGroupId);
1397 }
1398
1399 public static String getSiteLoginURL(ThemeDisplay themeDisplay)
1400 throws PortalException, SystemException {
1401
1402 return getPortal().getSiteLoginURL(themeDisplay);
1403 }
1404
1405 public static String getStaticResourceURL(
1406 HttpServletRequest request, String uri) {
1407
1408 return getPortal().getStaticResourceURL(request, uri);
1409 }
1410
1411 public static String getStaticResourceURL(
1412 HttpServletRequest request, String uri, long timestamp) {
1413
1414 return getPortal().getStaticResourceURL(request, uri, timestamp);
1415 }
1416
1417 public static String getStaticResourceURL(
1418 HttpServletRequest request, String uri, String queryString) {
1419
1420 return getPortal().getStaticResourceURL(request, uri, queryString);
1421 }
1422
1423 public static String getStaticResourceURL(
1424 HttpServletRequest request, String uri, String queryString,
1425 long timestamp) {
1426
1427 return getPortal().getStaticResourceURL(
1428 request, uri, queryString, timestamp);
1429 }
1430
1431 public static String getStrutsAction(HttpServletRequest request) {
1432 return getPortal().getStrutsAction(request);
1433 }
1434
1435 public static String[] getSystemGroups() {
1436 return getPortal().getSystemGroups();
1437 }
1438
1439 public static String[] getSystemOrganizationRoles() {
1440 return getPortal().getSystemOrganizationRoles();
1441 }
1442
1443 public static String[] getSystemRoles() {
1444 return getPortal().getSystemRoles();
1445 }
1446
1447 public static String[] getSystemSiteRoles() {
1448 return getPortal().getSystemSiteRoles();
1449 }
1450
1451 public static String getUniqueElementId(
1452 HttpServletRequest request, String namespace, String id) {
1453
1454 return getPortal().getUniqueElementId(request, namespace, id);
1455 }
1456
1457 public static String getUniqueElementId(
1458 PortletRequest request, String namespace, String id) {
1459
1460 return getPortal().getUniqueElementId(request, namespace, id);
1461 }
1462
1463 public static UploadPortletRequest getUploadPortletRequest(
1464 PortletRequest portletRequest) {
1465
1466 return getPortal().getUploadPortletRequest(portletRequest);
1467 }
1468
1469 public static UploadServletRequest getUploadServletRequest(
1470 HttpServletRequest request) {
1471
1472 return getPortal().getUploadServletRequest(request);
1473 }
1474
1475 public static Date getUptime() {
1476 return getPortal().getUptime();
1477 }
1478
1479 public static String getURLWithSessionId(String url, String sessionId) {
1480 return getPortal().getURLWithSessionId(url, sessionId);
1481 }
1482
1483 public static User getUser(HttpServletRequest request)
1484 throws PortalException, SystemException {
1485
1486 return getPortal().getUser(request);
1487 }
1488
1489 public static User getUser(PortletRequest portletRequest)
1490 throws PortalException, SystemException {
1491
1492 return getPortal().getUser(portletRequest);
1493 }
1494
1495 public static String getUserEmailAddress(long userId)
1496 throws SystemException {
1497
1498 return getPortal().getUserEmailAddress(userId);
1499 }
1500
1501 public static long getUserId(HttpServletRequest request) {
1502 return getPortal().getUserId(request);
1503 }
1504
1505 public static long getUserId(PortletRequest portletRequest) {
1506 return getPortal().getUserId(portletRequest);
1507 }
1508
1509 public static String getUserName(BaseModel<?> baseModel) {
1510 return getPortal().getUserName(baseModel);
1511 }
1512
1513 public static String getUserName(long userId, String defaultUserName) {
1514 return getPortal().getUserName(userId, defaultUserName);
1515 }
1516
1517 public static String getUserName(
1518 long userId, String defaultUserName, HttpServletRequest request) {
1519
1520 return getPortal().getUserName(userId, defaultUserName, request);
1521 }
1522
1523 public static String getUserName(
1524 long userId, String defaultUserName, String userAttribute) {
1525
1526 return getPortal().getUserName(userId, defaultUserName, userAttribute);
1527 }
1528
1529 public static String getUserName(
1530 long userId, String defaultUserName, String userAttribute,
1531 HttpServletRequest request) {
1532
1533 return getPortal().getUserName(
1534 userId, defaultUserName, userAttribute, request);
1535 }
1536
1537 public static String getUserPassword(HttpServletRequest request) {
1538 return getPortal().getUserPassword(request);
1539 }
1540
1541 public static String getUserPassword(HttpSession session) {
1542 return getPortal().getUserPassword(session);
1543 }
1544
1545 public static String getUserPassword(PortletRequest portletRequest) {
1546 return getPortal().getUserPassword(portletRequest);
1547 }
1548
1549 public static String getUserValue(
1550 long userId, String param, String defaultValue)
1551 throws SystemException {
1552
1553 return getPortal().getUserValue(userId, param, defaultValue);
1554 }
1555
1556 public static long getValidUserId(long companyId, long userId)
1557 throws PortalException, SystemException {
1558
1559 return getPortal().getValidUserId(companyId, userId);
1560 }
1561
1562 public static String getVirtualLayoutActualURL(
1563 long groupId, boolean privateLayout, String mainPath,
1564 String friendlyURL, Map<String, String[]> params,
1565 Map<String, Object> requestContext)
1566 throws PortalException, SystemException {
1567
1568 return getPortal().getVirtualLayoutActualURL(
1569 groupId, privateLayout, mainPath, friendlyURL, params,
1570 requestContext);
1571 }
1572
1573 public static LayoutFriendlyURLComposite
1574 getVirtualLayoutFriendlyURLComposite(
1575 boolean privateLayout, String friendlyURL,
1576 Map<String, String[]> params, Map<String, Object> requestContext)
1577 throws PortalException, SystemException {
1578
1579 return getPortal().getVirtualLayoutFriendlyURLComposite(
1580 privateLayout, friendlyURL, params, requestContext);
1581 }
1582
1583 public static String getWidgetURL(
1584 Portlet portlet, ThemeDisplay themeDisplay)
1585 throws PortalException, SystemException {
1586
1587 return getPortal().getWidgetURL(portlet, themeDisplay);
1588 }
1589
1590 public static void initCustomSQL() {
1591 getPortal().initCustomSQL();
1592 }
1593
1594 public static User initUser(HttpServletRequest request) throws Exception {
1595 return getPortal().initUser(request);
1596 }
1597
1598 public static void invokeTaglibDiscussion(
1599 PortletConfig portletConfig, ActionRequest actionRequest,
1600 ActionResponse actionResponse)
1601 throws Exception {
1602
1603 getPortal().invokeTaglibDiscussion(
1604 portletConfig, actionRequest, actionResponse);
1605 }
1606
1607
1610 public static boolean isAllowAddPortletDefaultResource(
1611 HttpServletRequest request, Portlet portlet)
1612 throws PortalException, SystemException {
1613
1614 return getPortal().isAllowAddPortletDefaultResource(request, portlet);
1615 }
1616
1617 public static boolean isCDNDynamicResourcesEnabled(
1618 HttpServletRequest request)
1619 throws PortalException, SystemException {
1620
1621 return getPortal().isCDNDynamicResourcesEnabled(request);
1622 }
1623
1624 public static boolean isCDNDynamicResourcesEnabled(long companyId) {
1625 return getPortal().isCDNDynamicResourcesEnabled(companyId);
1626 }
1627
1628
1631 public static boolean isCommunityAdmin(User user, long groupId)
1632 throws Exception {
1633
1634 return getPortal().isCommunityAdmin(user, groupId);
1635 }
1636
1637
1640 public static boolean isCommunityOwner(User user, long groupId)
1641 throws Exception {
1642
1643 return getPortal().isCommunityOwner(user, groupId);
1644 }
1645
1646 public static boolean isCompanyAdmin(User user) throws Exception {
1647 return getPortal().isCompanyAdmin(user);
1648 }
1649
1650 public static boolean isCompanyControlPanelPortlet(
1651 String portletId, String category, ThemeDisplay themeDisplay)
1652 throws PortalException, SystemException {
1653
1654 return getPortal().isCompanyControlPanelPortlet(
1655 portletId, category, themeDisplay);
1656 }
1657
1658 public static boolean isCompanyControlPanelPortlet(
1659 String portletId, ThemeDisplay themeDisplay)
1660 throws PortalException, SystemException {
1661
1662 return getPortal().isCompanyControlPanelPortlet(
1663 portletId, themeDisplay);
1664 }
1665
1666 public static boolean isCompanyControlPanelVisible(
1667 ThemeDisplay themeDisplay)
1668 throws PortalException, SystemException {
1669
1670 return getPortal().isCompanyControlPanelVisible(themeDisplay);
1671 }
1672
1673 public static boolean isControlPanelPortlet(
1674 String portletId, String category, ThemeDisplay themeDisplay)
1675 throws SystemException {
1676
1677 return getPortal().isControlPanelPortlet(
1678 portletId, category, themeDisplay);
1679 }
1680
1681 public static boolean isControlPanelPortlet(
1682 String portletId, ThemeDisplay themeDisplay)
1683 throws SystemException {
1684
1685 return getPortal().isControlPanelPortlet(portletId, themeDisplay);
1686 }
1687
1688 public static boolean isGroupAdmin(User user, long groupId)
1689 throws Exception {
1690
1691 return getPortal().isGroupAdmin(user, groupId);
1692 }
1693
1694 public static boolean isGroupFriendlyURL(
1695 String fullURL, String groupFriendlyURL, String layoutFriendlyURL) {
1696
1697 return getPortal().isGroupFriendlyURL(
1698 fullURL, groupFriendlyURL, layoutFriendlyURL);
1699 }
1700
1701 public static boolean isGroupOwner(User user, long groupId)
1702 throws Exception {
1703
1704 return getPortal().isGroupOwner(user, groupId);
1705 }
1706
1707 public static boolean isLayoutDescendant(Layout layout, long layoutId)
1708 throws PortalException, SystemException {
1709
1710 return getPortal().isLayoutDescendant(layout, layoutId);
1711 }
1712
1713 public static boolean isLayoutFirstPageable(Layout layout) {
1714 return getPortal().isLayoutFirstPageable(layout);
1715 }
1716
1717 public static boolean isLayoutFirstPageable(String type) {
1718 return getPortal().isLayoutFirstPageable(type);
1719 }
1720
1721 public static boolean isLayoutFriendliable(Layout layout) {
1722 return getPortal().isLayoutFriendliable(layout);
1723 }
1724
1725 public static boolean isLayoutFriendliable(String type) {
1726 return getPortal().isLayoutFriendliable(type);
1727 }
1728
1729 public static boolean isLayoutParentable(Layout layout) {
1730 return getPortal().isLayoutParentable(layout);
1731 }
1732
1733 public static boolean isLayoutParentable(String type) {
1734 return getPortal().isLayoutParentable(type);
1735 }
1736
1737 public static boolean isLayoutSitemapable(Layout layout) {
1738 return getPortal().isLayoutSitemapable(layout);
1739 }
1740
1741 public static boolean isLoginRedirectRequired(HttpServletRequest request)
1742 throws SystemException {
1743
1744 return getPortal().isLoginRedirectRequired(request);
1745 }
1746
1747 public static boolean isMethodGet(PortletRequest portletRequest) {
1748 return getPortal().isMethodGet(portletRequest);
1749 }
1750
1751 public static boolean isMethodPost(PortletRequest portletRequest) {
1752 return getPortal().isMethodPost(portletRequest);
1753 }
1754
1755 public static boolean isMultipartRequest(HttpServletRequest request) {
1756 return getPortal().isMultipartRequest(request);
1757 }
1758
1759 public static boolean isOmniadmin(long userId) {
1760 return getPortal().isOmniadmin(userId);
1761 }
1762
1763 public static boolean isReservedParameter(String name) {
1764 return getPortal().isReservedParameter(name);
1765 }
1766
1767 public static boolean isRSSFeedsEnabled() {
1768 return getPortal().isRSSFeedsEnabled();
1769 }
1770
1771 public static boolean isSecure(HttpServletRequest request) {
1772 return getPortal().isSecure(request);
1773 }
1774
1775 public static boolean isSystemGroup(String groupName) {
1776 return getPortal().isSystemGroup(groupName);
1777 }
1778
1779 public static boolean isSystemRole(String roleName) {
1780 return getPortal().isSystemRole(roleName);
1781 }
1782
1783 public static boolean isUpdateAvailable() throws SystemException {
1784 return getPortal().isUpdateAvailable();
1785 }
1786
1787 public static boolean isValidResourceId(String resourceId) {
1788 return getPortal().isValidResourceId(resourceId);
1789 }
1790
1791 public static void resetCDNHosts() {
1792 getPortal().resetCDNHosts();
1793 }
1794
1795
1799 public static Set<String> resetPortletAddDefaultResourceCheckWhitelist() {
1800 return getPortal().resetPortletAddDefaultResourceCheckWhitelist();
1801 }
1802
1803
1807 public static Set<String>
1808 resetPortletAddDefaultResourceCheckWhitelistActions() {
1809
1810 return getPortal().
1811 resetPortletAddDefaultResourceCheckWhitelistActions();
1812 }
1813
1814
1817 public static void runSQL(String sql) throws IOException, SQLException {
1818 DBFactoryUtil.getDB().runSQL(sql);
1819 }
1820
1821 public static void sendError(
1822 Exception e, ActionRequest actionRequest,
1823 ActionResponse actionResponse)
1824 throws IOException {
1825
1826 getPortal().sendError(e, actionRequest, actionResponse);
1827 }
1828
1829 public static void sendError(
1830 Exception e, HttpServletRequest request,
1831 HttpServletResponse response)
1832 throws IOException, ServletException {
1833
1834 getPortal().sendError(e, request, response);
1835 }
1836
1837 public static void sendError(
1838 int status, Exception e, ActionRequest actionRequest,
1839 ActionResponse actionResponse)
1840 throws IOException {
1841
1842 getPortal().sendError(status, e, actionRequest, actionResponse);
1843 }
1844
1845 public static void sendError(
1846 int status, Exception e, HttpServletRequest request,
1847 HttpServletResponse response)
1848 throws IOException, ServletException {
1849
1850 getPortal().sendError(status, e, request, response);
1851 }
1852
1853 public static void sendRSSFeedsDisabledError(
1854 HttpServletRequest request, HttpServletResponse response)
1855 throws IOException, ServletException {
1856
1857 getPortal().sendRSSFeedsDisabledError(request, response);
1858 }
1859
1860 public static void sendRSSFeedsDisabledError(
1861 PortletRequest portletRequest, PortletResponse portletResponse)
1862 throws IOException, ServletException {
1863
1864 getPortal().sendRSSFeedsDisabledError(portletRequest, portletResponse);
1865 }
1866
1867
1871 public static void setPageDescription(
1872 String description, HttpServletRequest request) {
1873
1874 getPortal().setPageDescription(description, request);
1875 }
1876
1877
1880 public static void setPageKeywords(
1881 String keywords, HttpServletRequest request) {
1882
1883 getPortal().setPageKeywords(keywords, request);
1884 }
1885
1886
1889 public static void setPageSubtitle(
1890 String subtitle, HttpServletRequest request) {
1891
1892 getPortal().setPageSubtitle(subtitle, request);
1893 }
1894
1895
1899 public static void setPageTitle(String title, HttpServletRequest request) {
1900 getPortal().setPageTitle(title, request);
1901 }
1902
1903
1906 public static void setPortalPort(HttpServletRequest request) {
1907 getPortal().setPortalPort(request);
1908 }
1909
1910 public static void storePreferences(PortletPreferences portletPreferences)
1911 throws IOException, ValidatorException {
1912
1913 getPortal().storePreferences(portletPreferences);
1914 }
1915
1916 public static String[] stripURLAnchor(String url, String separator) {
1917 return getPortal().stripURLAnchor(url, separator);
1918 }
1919
1920 public static String transformCustomSQL(String sql) {
1921 return getPortal().transformCustomSQL(sql);
1922 }
1923
1924 public static String transformSQL(String sql) {
1925 return getPortal().transformSQL(sql);
1926 }
1927
1928 public static PortletMode updatePortletMode(
1929 String portletId, User user, Layout layout, PortletMode portletMode,
1930 HttpServletRequest request) {
1931
1932 return getPortal().updatePortletMode(
1933 portletId, user, layout, portletMode, request);
1934 }
1935
1936 public static String updateRedirect(
1937 String redirect, String oldPath, String newPath) {
1938
1939 return getPortal().updateRedirect(redirect, oldPath, newPath);
1940 }
1941
1942 public static WindowState updateWindowState(
1943 String portletId, User user, Layout layout, WindowState windowState,
1944 HttpServletRequest request) {
1945
1946 return getPortal().updateWindowState(
1947 portletId, user, layout, windowState, request);
1948 }
1949
1950 public void removePortalPortEventListener(
1951 PortalPortEventListener portalPortEventListener) {
1952
1953 getPortal().removePortalPortEventListener(portalPortEventListener);
1954 }
1955
1956 public void setPortal(Portal portal) {
1957 PortalRuntimePermission.checkSetBeanProperty(getClass());
1958
1959 _portal = portal;
1960 }
1961
1962 private static Portal _portal;
1963
1964 }