001
014
015 package com.liferay.portal.util;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.portlet.LiferayPortletRequest;
020 import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
021 import com.liferay.portal.kernel.servlet.taglib.ui.BreadcrumbEntry;
022 import com.liferay.portal.kernel.upload.UploadPortletRequest;
023 import com.liferay.portal.kernel.upload.UploadServletRequest;
024 import com.liferay.portal.model.BaseModel;
025 import com.liferay.portal.model.Company;
026 import com.liferay.portal.model.Group;
027 import com.liferay.portal.model.Layout;
028 import com.liferay.portal.model.LayoutSet;
029 import com.liferay.portal.model.Portlet;
030 import com.liferay.portal.model.ResourcePermission;
031 import com.liferay.portal.model.User;
032 import com.liferay.portal.theme.ThemeDisplay;
033 import com.liferay.portlet.expando.model.ExpandoBridge;
034
035 import java.io.IOException;
036 import java.io.Serializable;
037
038 import java.util.Date;
039 import java.util.List;
040 import java.util.Locale;
041 import java.util.Map;
042 import java.util.Properties;
043 import java.util.Set;
044 import java.util.TimeZone;
045
046 import javax.portlet.ActionRequest;
047 import javax.portlet.ActionResponse;
048 import javax.portlet.PortletMode;
049 import javax.portlet.PortletPreferences;
050 import javax.portlet.PortletRequest;
051 import javax.portlet.PortletResponse;
052 import javax.portlet.PreferencesValidator;
053 import javax.portlet.RenderRequest;
054 import javax.portlet.RenderResponse;
055 import javax.portlet.ValidatorException;
056 import javax.portlet.WindowState;
057
058 import javax.servlet.ServletContext;
059 import javax.servlet.ServletException;
060 import javax.servlet.http.HttpServletRequest;
061 import javax.servlet.http.HttpServletResponse;
062 import javax.servlet.http.HttpSession;
063 import javax.servlet.jsp.PageContext;
064
065
069 public interface Portal {
070
071 public static final String FRIENDLY_URL_SEPARATOR = "/-/";
072
073 public static final String PATH_IMAGE = "/image";
074
075 public static final String PATH_MAIN = "/c";
076
077 public static final String PATH_PORTAL_LAYOUT = "/portal/layout";
078
079 public static final String PORTAL_REALM = "PortalRealm";
080
081 public static final String PORTLET_XML_FILE_NAME_CUSTOM =
082 "portlet-custom.xml";
083
084 public static final String PORTLET_XML_FILE_NAME_STANDARD = "portlet.xml";
085
086 public static final String TEMP_OBFUSCATION_VALUE =
087 "TEMP_OBFUSCATION_VALUE";
088
089
096 public void addPageDescription(
097 String description, HttpServletRequest request);
098
099
106 public void addPageKeywords(String keywords, HttpServletRequest request);
107
108
114 public void addPageSubtitle(String subtitle, HttpServletRequest request);
115
116
122 public void addPageTitle(String title, HttpServletRequest request);
123
124
130 public void addPortalPortEventListener(
131 PortalPortEventListener portalPortEventListener);
132
133
140 public void addPortletBreadcrumbEntry(
141 HttpServletRequest request, String title, String url);
142
143
151 public void addPortletBreadcrumbEntry(
152 HttpServletRequest request, String title, String url,
153 Map<String, Object> data);
154
155
163 public void addPortletDefaultResource(
164 HttpServletRequest request, Portlet portlet)
165 throws PortalException, SystemException;
166
167 public void addPortletDefaultResource(
168 long companyId, Layout layout, Portlet portlet)
169 throws PortalException, SystemException;
170
171
188 public String addPreservedParameters(
189 ThemeDisplay themeDisplay, Layout layout, String url, boolean doAsUser);
190
191
199 public String addPreservedParameters(ThemeDisplay themeDisplay, String url);
200
201
207 public void clearRequestParameters(RenderRequest renderRequest);
208
209
216 public void copyRequestParameters(
217 ActionRequest actionRequest, ActionResponse actionResponse);
218
219
227 public String escapeRedirect(String url);
228
229
236 public String generateRandomKey(HttpServletRequest request, String input);
237
238 public String getActualURL(
239 long groupId, boolean privateLayout, String mainPath,
240 String friendlyURL, Map<String, String[]> params,
241 Map<String, Object> requestContext)
242 throws PortalException, SystemException;
243
244
253 public Locale[] getAlternateLocales(HttpServletRequest request)
254 throws PortalException, SystemException;
255
256
265 public String getAlternateURL(
266 String canonicalURL, ThemeDisplay themeDisplay, Locale locale);
267
268
275 public Set<String> getAuthTokenIgnoreActions();
276
277
284 public Set<String> getAuthTokenIgnorePortlets();
285
286
297 public BaseModel<?> getBaseModel(ResourcePermission resourcePermission)
298 throws PortalException, SystemException;
299
300
311 public BaseModel<?> getBaseModel(String modelName, String primKey)
312 throws PortalException, SystemException;
313
314
325 public long getBasicAuthUserId(HttpServletRequest request)
326 throws PortalException, SystemException;
327
328
340 public long getBasicAuthUserId(HttpServletRequest request, long companyId)
341 throws PortalException, SystemException;
342
343
356 public String getCanonicalURL(
357 String completeURL, ThemeDisplay themeDisplay, Layout layout)
358 throws PortalException, SystemException;
359
360
375 public String getCanonicalURL(
376 String completeURL, ThemeDisplay themeDisplay, Layout layout,
377 boolean forceLayoutFriendlyURL)
378 throws PortalException, SystemException;
379
380
383 public String getCDNHost();
384
385
392 public String getCDNHost(boolean secure);
393
394 public String getCDNHost(HttpServletRequest request)
395 throws PortalException, SystemException;
396
397
404 public String getCDNHostHttp(long companyId);
405
406
413 public String getCDNHostHttps(long companyId);
414
415
421 public String getClassName(long classNameId);
422
423
429 public long getClassNameId(Class<?> clazz);
430
431
437 public long getClassNameId(String value);
438
439
449 public String getClassNamePortletId(String className);
450
451 public Company getCompany(HttpServletRequest request)
452 throws PortalException, SystemException;
453
454 public Company getCompany(PortletRequest portletRequest)
455 throws PortalException, SystemException;
456
457 public long getCompanyId(HttpServletRequest requestuest);
458
459 public long getCompanyId(PortletRequest portletRequest);
460
461 public long[] getCompanyIds();
462
463 public String getComputerAddress();
464
465 public String getComputerName();
466
467 public String getControlPanelCategory(
468 String portletId, ThemeDisplay themeDisplay)
469 throws SystemException;
470
471 public String getControlPanelFullURL(
472 long scopeGroupId, String ppid, Map<String, String[]> params)
473 throws PortalException, SystemException;
474
475 public long getControlPanelPlid(long companyId)
476 throws PortalException, SystemException;
477
478 public long getControlPanelPlid(PortletRequest portletRequest)
479 throws PortalException, SystemException;
480
481 public Set<Portlet> getControlPanelPortlets(long companyId, String category)
482 throws SystemException;
483
484 public List<Portlet> getControlPanelPortlets(
485 String category, ThemeDisplay themeDisplay)
486 throws SystemException;
487
488 public String getCreateAccountURL(
489 HttpServletRequest request, ThemeDisplay themeDisplay)
490 throws Exception;
491
492 public String getCurrentCompleteURL(HttpServletRequest request);
493
494 public String getCurrentURL(HttpServletRequest request);
495
496 public String getCurrentURL(PortletRequest portletRequest);
497
498 public String getCustomSQLFunctionIsNotNull();
499
500 public String getCustomSQLFunctionIsNull();
501
502
510 public Date getDate(int month, int day, int year);
511
512
527 public Date getDate(
528 int month, int day, int year,
529 Class<? extends PortalException> clazz)
530 throws PortalException;
531
532
549 public Date getDate(
550 int month, int day, int year, int hour, int min,
551 Class<? extends PortalException> clazz)
552 throws PortalException;
553
554
572 public Date getDate(
573 int month, int day, int year, int hour, int min, TimeZone timeZone,
574 Class<? extends PortalException> clazz)
575 throws PortalException;
576
577
593 public Date getDate(
594 int month, int day, int year, TimeZone timeZone,
595 Class<? extends PortalException> clazz)
596 throws PortalException;
597
598 public long getDefaultCompanyId();
599
600 public long getDigestAuthUserId(HttpServletRequest request)
601 throws PortalException, SystemException;
602
603 public String getEmailFromAddress(
604 PortletPreferences preferences, long companyId, String defaultValue)
605 throws SystemException;
606
607 public String getEmailFromName(
608 PortletPreferences preferences, long companyId, String defaultValue)
609 throws SystemException;
610
611 public Map<String, Serializable> getExpandoBridgeAttributes(
612 ExpandoBridge expandoBridge, PortletRequest portletRequest)
613 throws PortalException, SystemException;
614
615 public Map<String, Serializable> getExpandoBridgeAttributes(
616 ExpandoBridge expandoBridge,
617 UploadPortletRequest uploadPortletRequest)
618 throws PortalException, SystemException;
619
620 public Serializable getExpandoValue(
621 PortletRequest portletRequest, String name, int type,
622 String displayType)
623 throws PortalException, SystemException;
624
625 public Serializable getExpandoValue(
626 UploadPortletRequest uploadPortletRequest, String name, int type,
627 String displayType)
628 throws PortalException, SystemException;
629
630 public String getFacebookURL(
631 Portlet portlet, String facebookCanvasPageURL,
632 ThemeDisplay themeDisplay)
633 throws PortalException, SystemException;
634
635 public String getFirstPageLayoutTypes(PageContext pageContext);
636
637 public String getGlobalLibDir();
638
639 public String getGoogleGadgetURL(Portlet portlet, ThemeDisplay themeDisplay)
640 throws PortalException, SystemException;
641
642 public String getGroupFriendlyURL(
643 Group group, boolean privateLayoutSet, ThemeDisplay themeDisplay)
644 throws PortalException, SystemException;
645
646 public String[] getGroupPermissions(HttpServletRequest request);
647
648 public String[] getGroupPermissions(PortletRequest portletRequest);
649
650 public String[] getGuestPermissions(HttpServletRequest request);
651
652 public String[] getGuestPermissions(PortletRequest portletRequest);
653
654 public String getHomeURL(HttpServletRequest request)
655 throws PortalException, SystemException;
656
657 public String getHost(HttpServletRequest request);
658
659 public String getHost(PortletRequest portletRequest);
660
661 public HttpServletRequest getHttpServletRequest(
662 PortletRequest portletRequest);
663
664 public HttpServletResponse getHttpServletResponse(
665 PortletResponse portletResponse);
666
667 public String getJournalArticleActualURL(
668 long groupId, String mainPath, String friendlyURL,
669 Map<String, String[]> params, Map<String, Object> requestContext)
670 throws PortalException, SystemException;
671
672 public String getJsSafePortletId(String portletId);
673
674 public String getLayoutActualURL(Layout layout);
675
676 public String getLayoutActualURL(Layout layout, String mainPath);
677
678 public String getLayoutActualURL(
679 long groupId, boolean privateLayout, String mainPath,
680 String friendlyURL)
681 throws PortalException, SystemException;
682
683 public String getLayoutActualURL(
684 long groupId, boolean privateLayout, String mainPath,
685 String friendlyURL, Map<String, String[]> params,
686 Map<String, Object> requestContext)
687 throws PortalException, SystemException;
688
689 public String getLayoutEditPage(Layout layout);
690
691 public String getLayoutEditPage(String type);
692
693 public String getLayoutFriendlyURL(Layout layout, ThemeDisplay themeDisplay)
694 throws PortalException, SystemException;
695
696 public String getLayoutFriendlyURL(
697 Layout layout, ThemeDisplay themeDisplay, Locale locale)
698 throws PortalException, SystemException;
699
700 public String getLayoutFullURL(Layout layout, ThemeDisplay themeDisplay)
701 throws PortalException, SystemException;
702
703 public String getLayoutFullURL(
704 Layout layout, ThemeDisplay themeDisplay, boolean doAsUser)
705 throws PortalException, SystemException;
706
707 public String getLayoutFullURL(long groupId, String portletId)
708 throws PortalException, SystemException;
709
710 public String getLayoutFullURL(
711 long groupId, String portletId, boolean secure)
712 throws PortalException, SystemException;
713
714 public String getLayoutFullURL(ThemeDisplay themeDisplay)
715 throws PortalException, SystemException;
716
717 public String getLayoutSetFriendlyURL(
718 LayoutSet layoutSet, ThemeDisplay themeDisplay)
719 throws PortalException, SystemException;
720
721 public String getLayoutTarget(Layout layout);
722
723 public String getLayoutURL(Layout layout, ThemeDisplay themeDisplay)
724 throws PortalException, SystemException;
725
726 public String getLayoutURL(
727 Layout layout, ThemeDisplay themeDisplay, boolean doAsUser)
728 throws PortalException, SystemException;
729
730 public String getLayoutURL(ThemeDisplay themeDisplay)
731 throws PortalException, SystemException;
732
733 public String getLayoutViewPage(Layout layout);
734
735 public String getLayoutViewPage(String type);
736
737 public LiferayPortletRequest getLiferayPortletRequest(
738 PortletRequest portletRequest);
739
740 public LiferayPortletResponse getLiferayPortletResponse(
741 PortletResponse portletResponse);
742
743 public Locale getLocale(HttpServletRequest request);
744
745 public Locale getLocale(RenderRequest renderRequest);
746
747 public String getMailId(String mx, String popPortletPrefix, Object... ids);
748
749 public String getNetvibesURL(Portlet portlet, ThemeDisplay themeDisplay)
750 throws PortalException, SystemException;
751
752 public String getNewPortletTitle(
753 String portletTitle, String oldScopeName, String newScopeName);
754
755 public HttpServletRequest getOriginalServletRequest(
756 HttpServletRequest request);
757
758 public long getParentGroupId(long scopeGroupId)
759 throws PortalException, SystemException;
760
761 public String getPathContext();
762
763 public String getPathFriendlyURLPrivateGroup();
764
765 public String getPathFriendlyURLPrivateUser();
766
767 public String getPathFriendlyURLPublic();
768
769 public String getPathImage();
770
771 public String getPathMain();
772
773 public String getPathProxy();
774
775 public long getPlidFromFriendlyURL(long companyId, String friendlyURL);
776
777 public long getPlidFromPortletId(
778 long groupId, boolean privateLayout, String portletId)
779 throws PortalException, SystemException;
780
781 public long getPlidFromPortletId(long groupId, String portletId)
782 throws PortalException, SystemException;
783
784 public String getPortalLibDir();
785
786
789 public int getPortalPort();
790
791 public int getPortalPort(boolean secure);
792
793 public Properties getPortalProperties();
794
795 public String getPortalURL(HttpServletRequest request);
796
797 public String getPortalURL(HttpServletRequest request, boolean secure);
798
799 public String getPortalURL(Layout layout, ThemeDisplay themeDisplay)
800 throws PortalException, SystemException;
801
802 public String getPortalURL(PortletRequest portletRequest);
803
804 public String getPortalURL(PortletRequest portletRequest, boolean secure);
805
806 public String getPortalURL(
807 String serverName, int serverPort, boolean secure);
808
809 public String getPortalURL(ThemeDisplay themeDisplay)
810 throws PortalException, SystemException;
811
812 public String getPortalWebDir();
813
814 public Set<String> getPortletAddDefaultResourceCheckWhitelist();
815
816 public Set<String> getPortletAddDefaultResourceCheckWhitelistActions();
817
818
821 public List<BreadcrumbEntry> getPortletBreadcrumbList(
822 HttpServletRequest request);
823
824 public List<BreadcrumbEntry> getPortletBreadcrumbs(
825 HttpServletRequest request);
826
827 public String getPortletDescription(
828 Portlet portlet, ServletContext servletContext, Locale locale);
829
830 public String getPortletDescription(Portlet portlet, User user);
831
832 public String getPortletDescription(String portletId, Locale locale);
833
834 public String getPortletDescription(String portletId, String languageId);
835
836 public String getPortletDescription(String portletId, User user);
837
838 public String getPortletId(HttpServletRequest request);
839
840 public String getPortletId(PortletRequest portletRequest);
841
842 public String getPortletLongTitle(Portlet portlet, Locale locale);
843
844 public String getPortletLongTitle(
845 Portlet portlet, ServletContext servletContext, Locale locale);
846
847 public String getPortletLongTitle(Portlet portlet, String languageId);
848
849 public String getPortletLongTitle(Portlet portlet, User user);
850
851 public String getPortletLongTitle(String portletId, Locale locale);
852
853 public String getPortletLongTitle(String portletId, String languageId);
854
855 public String getPortletLongTitle(String portletId, User user);
856
857 public String getPortletNamespace(String portletId);
858
859 public String getPortletTitle(Portlet portlet, Locale locale);
860
861 public String getPortletTitle(
862 Portlet portlet, ServletContext servletContext, Locale locale);
863
864 public String getPortletTitle(Portlet portlet, String languageId);
865
866 public String getPortletTitle(Portlet portlet, User user);
867
868 public String getPortletTitle(RenderRequest renderRequest);
869
870 public String getPortletTitle(RenderResponse renderResponse);
871
872 public String getPortletTitle(String portletId, Locale locale);
873
874 public String getPortletTitle(String portletId, String languageId);
875
876 public String getPortletTitle(String portletId, User user);
877
878 public String getPortletXmlFileName() throws SystemException;
879
880 public PortletPreferences getPreferences(HttpServletRequest request);
881
882 public PreferencesValidator getPreferencesValidator(Portlet portlet);
883
884 public String getRelativeHomeURL(HttpServletRequest request)
885 throws PortalException, SystemException;
886
887 public long getScopeGroupId(HttpServletRequest request)
888 throws PortalException, SystemException;
889
890 public long getScopeGroupId(HttpServletRequest request, String portletId)
891 throws PortalException, SystemException;
892
893 public long getScopeGroupId(
894 HttpServletRequest request, String portletId,
895 boolean checkStagingGroup)
896 throws PortalException, SystemException;
897
898 public long getScopeGroupId(Layout layout);
899
900 public long getScopeGroupId(Layout layout, String portletId);
901
902 public long getScopeGroupId(long plid);
903
904 public long getScopeGroupId(PortletRequest portletRequest)
905 throws PortalException, SystemException;
906
907 public User getSelectedUser(HttpServletRequest request)
908 throws PortalException, SystemException;
909
910 public User getSelectedUser(
911 HttpServletRequest request, boolean checkPermission)
912 throws PortalException, SystemException;
913
914 public User getSelectedUser(PortletRequest portletRequest)
915 throws PortalException, SystemException;
916
917 public User getSelectedUser(
918 PortletRequest portletRequest, boolean checkPermission)
919 throws PortalException, SystemException;
920
921 public long[] getSiteAndCompanyGroupIds(long groupId)
922 throws PortalException, SystemException;
923
924 public long[] getSiteAndCompanyGroupIds(ThemeDisplay themeDisplay)
925 throws PortalException, SystemException;
926
927
937 public String getSiteLoginURL(ThemeDisplay themeDisplay)
938 throws PortalException, SystemException;
939
940 public String getStaticResourceURL(HttpServletRequest request, String uri);
941
942 public String getStaticResourceURL(
943 HttpServletRequest request, String uri, long timestamp);
944
945 public String getStaticResourceURL(
946 HttpServletRequest request, String uri, String queryString);
947
948 public String getStaticResourceURL(
949 HttpServletRequest request, String uri, String queryString,
950 long timestamp);
951
952 public String getStrutsAction(HttpServletRequest request);
953
954 public String[] getSystemGroups();
955
956 public String[] getSystemOrganizationRoles();
957
958 public String[] getSystemRoles();
959
960 public String[] getSystemSiteRoles();
961
962 public String getUniqueElementId(
963 HttpServletRequest request, String namespace, String id);
964
965 public String getUniqueElementId(
966 PortletRequest request, String namespace, String id);
967
968 public UploadPortletRequest getUploadPortletRequest(
969 PortletRequest portletRequest);
970
971 public UploadServletRequest getUploadServletRequest(
972 HttpServletRequest request);
973
974 public Date getUptime();
975
976 public String getURLWithSessionId(String url, String sessionId);
977
978 public User getUser(HttpServletRequest request)
979 throws PortalException, SystemException;
980
981 public User getUser(PortletRequest portletRequest)
982 throws PortalException, SystemException;
983
984 public String getUserEmailAddress(long userId) throws SystemException;
985
986 public long getUserId(HttpServletRequest request);
987
988 public long getUserId(PortletRequest portletRequest);
989
990 public String getUserName(BaseModel<?> baseModel);
991
992 public String getUserName(long userId, String defaultUserName);
993
994 public String getUserName(
995 long userId, String defaultUserName, HttpServletRequest request);
996
997 public String getUserName(
998 long userId, String defaultUserName, String userAttribute);
999
1000 public String getUserName(
1001 long userId, String defaultUserName, String userAttribute,
1002 HttpServletRequest request);
1003
1004 public String getUserPassword(HttpServletRequest request);
1005
1006 public String getUserPassword(HttpSession session);
1007
1008 public String getUserPassword(PortletRequest portletRequest);
1009
1010 public String getUserValue(long userId, String param, String defaultValue)
1011 throws SystemException;
1012
1013 public long getValidUserId(long companyId, long userId)
1014 throws PortalException, SystemException;
1015
1016 public String getVirtualLayoutActualURL(
1017 long groupId, boolean privateLayout, String mainPath,
1018 String friendlyURL, Map<String, String[]> params,
1019 Map<String, Object> requestContext)
1020 throws PortalException, SystemException;
1021
1022 public String getWidgetURL(Portlet portlet, ThemeDisplay themeDisplay)
1023 throws PortalException, SystemException;
1024
1025 public void initCustomSQL();
1026
1027 public boolean isAllowAddPortletDefaultResource(
1028 HttpServletRequest request, Portlet portlet)
1029 throws PortalException, SystemException;
1030
1031 public boolean isCDNDynamicResourcesEnabled(HttpServletRequest request)
1032 throws PortalException, SystemException;
1033
1034 public boolean isCDNDynamicResourcesEnabled(long companyId);
1035
1036
1039 public boolean isCommunityAdmin(User user, long groupId) throws Exception;
1040
1041
1044 public boolean isCommunityOwner(User user, long groupId) throws Exception;
1045
1046 public boolean isCompanyAdmin(User user) throws Exception;
1047
1048 public boolean isCompanyControlPanelPortlet(
1049 String portletId, String category, ThemeDisplay themeDisplay)
1050 throws PortalException, SystemException;
1051
1052 public boolean isCompanyControlPanelPortlet(
1053 String portletId, ThemeDisplay themeDisplay)
1054 throws PortalException, SystemException;
1055
1056 public boolean isCompanyControlPanelVisible(ThemeDisplay themeDisplay)
1057 throws PortalException, SystemException;
1058
1059 public boolean isControlPanelPortlet(
1060 String portletId, String category, ThemeDisplay themeDisplay)
1061 throws SystemException;
1062
1063 public boolean isControlPanelPortlet(
1064 String portletId, ThemeDisplay themeDisplay)
1065 throws SystemException;
1066
1067 public boolean isGroupAdmin(User user, long groupId) throws Exception;
1068
1069 public boolean isGroupOwner(User user, long groupId) throws Exception;
1070
1071 public boolean isLayoutDescendant(Layout layout, long layoutId)
1072 throws PortalException, SystemException;
1073
1074 public boolean isLayoutFirstPageable(Layout layout);
1075
1076 public boolean isLayoutFirstPageable(String type);
1077
1078 public boolean isLayoutFriendliable(Layout layout);
1079
1080 public boolean isLayoutFriendliable(String type);
1081
1082 public boolean isLayoutParentable(Layout layout);
1083
1084 public boolean isLayoutParentable(String type);
1085
1086 public boolean isLayoutSitemapable(Layout layout);
1087
1088 public boolean isMethodGet(PortletRequest portletRequest);
1089
1090 public boolean isMethodPost(PortletRequest portletRequest);
1091
1092 public boolean isMultipartRequest(HttpServletRequest request);
1093
1094 public boolean isOmniadmin(long userId);
1095
1096 public boolean isReservedParameter(String name);
1097
1098 public boolean isRSSFeedsEnabled();
1099
1100 public boolean isSecure(HttpServletRequest request);
1101
1102 public boolean isSystemGroup(String groupName);
1103
1104 public boolean isSystemRole(String roleName);
1105
1106 public boolean isUpdateAvailable() throws SystemException;
1107
1108 public boolean isValidResourceId(String resourceId);
1109
1110 public void removePortalPortEventListener(
1111 PortalPortEventListener portalPortEventListener);
1112
1113 public void resetCDNHosts();
1114
1115 public Set<String> resetPortletAddDefaultResourceCheckWhitelist();
1116
1117 public Set<String> resetPortletAddDefaultResourceCheckWhitelistActions();
1118
1119 public void sendError(
1120 Exception e, ActionRequest actionRequest,
1121 ActionResponse actionResponse)
1122 throws IOException;
1123
1124 public void sendError(
1125 Exception e, HttpServletRequest request,
1126 HttpServletResponse response)
1127 throws IOException, ServletException;
1128
1129 public void sendError(
1130 int status, Exception e, ActionRequest actionRequest,
1131 ActionResponse actionResponse)
1132 throws IOException;
1133
1134 public void sendError(
1135 int status, Exception e, HttpServletRequest request,
1136 HttpServletResponse response)
1137 throws IOException, ServletException;
1138
1139 public void sendRSSFeedsDisabledError(
1140 HttpServletRequest request, HttpServletResponse response)
1141 throws IOException, ServletException;
1142
1143 public void sendRSSFeedsDisabledError(
1144 PortletRequest portletRequest, PortletResponse portletResponse)
1145 throws IOException, ServletException;
1146
1147
1151 public void setPageDescription(
1152 String description, HttpServletRequest request);
1153
1154
1157 public void setPageKeywords(String keywords, HttpServletRequest request);
1158
1159
1162 public void setPageSubtitle(String subtitle, HttpServletRequest request);
1163
1164
1168 public void setPageTitle(String title, HttpServletRequest request);
1169
1170
1173 public void setPortalPort(HttpServletRequest request);
1174
1175 public void storePreferences(PortletPreferences portletPreferences)
1176 throws IOException, ValidatorException;
1177
1178 public String[] stripURLAnchor(String url, String separator);
1179
1180 public String transformCustomSQL(String sql);
1181
1182 public PortletMode updatePortletMode(
1183 String portletId, User user, Layout layout, PortletMode portletMode,
1184 HttpServletRequest request);
1185
1186 public String updateRedirect(
1187 String redirect, String oldPath, String newPath);
1188
1189 public WindowState updateWindowState(
1190 String portletId, User user, Layout layout, WindowState windowState,
1191 HttpServletRequest request);
1192
1193 }