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