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