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.PortletConfig;
049 import javax.portlet.PortletException;
050 import javax.portlet.PortletMode;
051 import javax.portlet.PortletPreferences;
052 import javax.portlet.PortletRequest;
053 import javax.portlet.PortletResponse;
054 import javax.portlet.PreferencesValidator;
055 import javax.portlet.RenderRequest;
056 import javax.portlet.RenderResponse;
057 import javax.portlet.ValidatorException;
058 import javax.portlet.WindowState;
059
060 import javax.servlet.ServletContext;
061 import javax.servlet.ServletException;
062 import javax.servlet.http.HttpServletRequest;
063 import javax.servlet.http.HttpServletResponse;
064 import javax.servlet.http.HttpSession;
065 import javax.servlet.jsp.PageContext;
066
067
071 public interface Portal {
072
073 public static final String FRIENDLY_URL_SEPARATOR = "/-/";
074
075 public static final String PATH_IMAGE = "/image";
076
077 public static final String PATH_MAIN = "/c";
078
079 public static final String PATH_PORTAL_LAYOUT = "/portal/layout";
080
081 public static final String PORTAL_REALM = "PortalRealm";
082
083 public static final String PORTLET_XML_FILE_NAME_CUSTOM =
084 "portlet-custom.xml";
085
086 public static final String PORTLET_XML_FILE_NAME_STANDARD = "portlet.xml";
087
088 public static final String TEMP_OBFUSCATION_VALUE =
089 "TEMP_OBFUSCATION_VALUE";
090
091
098 public void addPageDescription(
099 String description, HttpServletRequest request);
100
101
108 public void addPageKeywords(String keywords, HttpServletRequest request);
109
110
116 public void addPageSubtitle(String subtitle, HttpServletRequest request);
117
118
124 public void addPageTitle(String title, HttpServletRequest request);
125
126
132 public void addPortalPortEventListener(
133 PortalPortEventListener portalPortEventListener);
134
135
142 public void addPortletBreadcrumbEntry(
143 HttpServletRequest request, String title, String url);
144
145
153 public void addPortletBreadcrumbEntry(
154 HttpServletRequest request, String title, String url,
155 Map<String, Object> data);
156
157
165 public void addPortletDefaultResource(
166 HttpServletRequest request, Portlet portlet)
167 throws PortalException, SystemException;
168
169 public void addPortletDefaultResource(
170 long companyId, Layout layout, Portlet portlet)
171 throws PortalException, SystemException;
172
173
190 public String addPreservedParameters(
191 ThemeDisplay themeDisplay, Layout layout, String url, boolean doAsUser);
192
193
201 public String addPreservedParameters(ThemeDisplay themeDisplay, String url);
202
203
209 public void clearRequestParameters(RenderRequest renderRequest);
210
211
218 public void copyRequestParameters(
219 ActionRequest actionRequest, ActionResponse actionResponse);
220
221
229 public String escapeRedirect(String url);
230
231
238 public String generateRandomKey(HttpServletRequest request, String input);
239
240 public String getActualURL(
241 long groupId, boolean privateLayout, String mainPath,
242 String friendlyURL, Map<String, String[]> params,
243 Map<String, Object> requestContext)
244 throws PortalException, SystemException;
245
246
255 public Locale[] getAlternateLocales(HttpServletRequest request)
256 throws PortalException, SystemException;
257
258
267 public String getAlternateURL(
268 String canonicalURL, ThemeDisplay themeDisplay, Locale locale);
269
270
277 public Set<String> getAuthTokenIgnoreActions();
278
279
286 public Set<String> getAuthTokenIgnorePortlets();
287
288
299 public BaseModel<?> getBaseModel(ResourcePermission resourcePermission)
300 throws PortalException, SystemException;
301
302
313 public BaseModel<?> getBaseModel(String modelName, String primKey)
314 throws PortalException, SystemException;
315
316
327 public long getBasicAuthUserId(HttpServletRequest request)
328 throws PortalException, SystemException;
329
330
342 public long getBasicAuthUserId(HttpServletRequest request, long companyId)
343 throws PortalException, SystemException;
344
345
358 public String getCanonicalURL(
359 String completeURL, ThemeDisplay themeDisplay, Layout layout)
360 throws PortalException, SystemException;
361
362
377 public String getCanonicalURL(
378 String completeURL, ThemeDisplay themeDisplay, Layout layout,
379 boolean forceLayoutFriendlyURL)
380 throws PortalException, SystemException;
381
382
385 public String getCDNHost();
386
387
394 public String getCDNHost(boolean secure);
395
396 public String getCDNHost(HttpServletRequest request)
397 throws PortalException, SystemException;
398
399
406 public String getCDNHostHttp(long companyId);
407
408
415 public String getCDNHostHttps(long companyId);
416
417
423 public String getClassName(long classNameId);
424
425
431 public long getClassNameId(Class<?> clazz);
432
433
439 public long getClassNameId(String value);
440
441
451 public String getClassNamePortletId(String className);
452
453 public Company getCompany(HttpServletRequest request)
454 throws PortalException, SystemException;
455
456 public Company getCompany(PortletRequest portletRequest)
457 throws PortalException, SystemException;
458
459 public long getCompanyId(HttpServletRequest requestuest);
460
461 public long getCompanyId(PortletRequest portletRequest);
462
463 public long[] getCompanyIds();
464
465 public String getComputerAddress();
466
467 public String getComputerName();
468
469 public String getControlPanelCategory(
470 String portletId, ThemeDisplay themeDisplay)
471 throws SystemException;
472
473 public String getControlPanelFullURL(
474 long scopeGroupId, String ppid, Map<String, String[]> params)
475 throws PortalException, SystemException;
476
477 public long getControlPanelPlid(long companyId)
478 throws PortalException, SystemException;
479
480 public long getControlPanelPlid(PortletRequest portletRequest)
481 throws PortalException, SystemException;
482
483 public Set<Portlet> getControlPanelPortlets(long companyId, String category)
484 throws SystemException;
485
486 public List<Portlet> getControlPanelPortlets(
487 String category, ThemeDisplay themeDisplay)
488 throws SystemException;
489
490 public String getCreateAccountURL(
491 HttpServletRequest request, ThemeDisplay themeDisplay)
492 throws Exception;
493
494 public String getCurrentCompleteURL(HttpServletRequest request);
495
496 public String getCurrentURL(HttpServletRequest request);
497
498 public String getCurrentURL(PortletRequest portletRequest);
499
500 public String getCustomSQLFunctionIsNotNull();
501
502 public String getCustomSQLFunctionIsNull();
503
504
512 public Date getDate(int month, int day, int year);
513
514
529 public Date getDate(
530 int month, int day, int year,
531 Class<? extends PortalException> clazz)
532 throws PortalException;
533
534
551 public Date getDate(
552 int month, int day, int year, int hour, int min,
553 Class<? extends PortalException> clazz)
554 throws PortalException;
555
556
574 public Date getDate(
575 int month, int day, int year, int hour, int min, TimeZone timeZone,
576 Class<? extends PortalException> clazz)
577 throws PortalException;
578
579
595 public Date getDate(
596 int month, int day, int year, TimeZone timeZone,
597 Class<? extends PortalException> clazz)
598 throws PortalException;
599
600 public long getDefaultCompanyId();
601
602 public long getDigestAuthUserId(HttpServletRequest request)
603 throws PortalException, SystemException;
604
605 public String getEmailFromAddress(
606 PortletPreferences preferences, long companyId, String defaultValue)
607 throws SystemException;
608
609 public String getEmailFromName(
610 PortletPreferences preferences, long companyId, String defaultValue)
611 throws SystemException;
612
613 public Map<String, Serializable> getExpandoBridgeAttributes(
614 ExpandoBridge expandoBridge, PortletRequest portletRequest)
615 throws PortalException, SystemException;
616
617 public Map<String, Serializable> getExpandoBridgeAttributes(
618 ExpandoBridge expandoBridge,
619 UploadPortletRequest uploadPortletRequest)
620 throws PortalException, SystemException;
621
622 public Serializable getExpandoValue(
623 PortletRequest portletRequest, String name, int type,
624 String displayType)
625 throws PortalException, SystemException;
626
627 public Serializable getExpandoValue(
628 UploadPortletRequest uploadPortletRequest, String name, int type,
629 String displayType)
630 throws PortalException, SystemException;
631
632 public String getFacebookURL(
633 Portlet portlet, String facebookCanvasPageURL,
634 ThemeDisplay themeDisplay)
635 throws PortalException, SystemException;
636
637 public String getFirstPageLayoutTypes(PageContext pageContext);
638
639 public String getGlobalLibDir();
640
641 public String getGoogleGadgetURL(Portlet portlet, ThemeDisplay themeDisplay)
642 throws PortalException, SystemException;
643
644 public String getGroupFriendlyURL(
645 Group group, boolean privateLayoutSet, ThemeDisplay themeDisplay)
646 throws PortalException, SystemException;
647
648 public String getGroupFriendlyURL(
649 Group group, boolean privateLayoutSet, ThemeDisplay themeDisplay,
650 Locale locale)
651 throws PortalException, SystemException;
652
653 public String[] getGroupPermissions(HttpServletRequest request);
654
655 public String[] getGroupPermissions(
656 HttpServletRequest request, String className);
657
658 public String[] getGroupPermissions(PortletRequest portletRequest);
659
660 public String[] getGroupPermissions(
661 PortletRequest portletRequest, String className);
662
663 public String[] getGuestPermissions(HttpServletRequest request);
664
665 public String[] getGuestPermissions(
666 HttpServletRequest request, String className);
667
668 public String[] getGuestPermissions(PortletRequest portletRequest);
669
670 public String[] getGuestPermissions(
671 PortletRequest portletRequest, String className);
672
673 public String getHomeURL(HttpServletRequest request)
674 throws PortalException, SystemException;
675
676 public String getHost(HttpServletRequest request);
677
678 public String getHost(PortletRequest portletRequest);
679
680 public HttpServletRequest getHttpServletRequest(
681 PortletRequest portletRequest);
682
683 public HttpServletResponse getHttpServletResponse(
684 PortletResponse portletResponse);
685
686 public String getJournalArticleActualURL(
687 long groupId, String mainPath, String friendlyURL,
688 Map<String, String[]> params, Map<String, Object> requestContext)
689 throws PortalException, SystemException;
690
691 public String getJsSafePortletId(String portletId);
692
693 public String getLayoutActualURL(Layout layout);
694
695 public String getLayoutActualURL(Layout layout, String mainPath);
696
697 public String getLayoutActualURL(
698 long groupId, boolean privateLayout, String mainPath,
699 String friendlyURL)
700 throws PortalException, SystemException;
701
702 public String getLayoutActualURL(
703 long groupId, boolean privateLayout, String mainPath,
704 String friendlyURL, Map<String, String[]> params,
705 Map<String, Object> requestContext)
706 throws PortalException, SystemException;
707
708 public String getLayoutEditPage(Layout layout);
709
710 public String getLayoutEditPage(String type);
711
712 public String getLayoutFriendlyURL(Layout layout, ThemeDisplay themeDisplay)
713 throws PortalException, SystemException;
714
715 public String getLayoutFriendlyURL(
716 Layout layout, ThemeDisplay themeDisplay, Locale locale)
717 throws PortalException, SystemException;
718
719 public String getLayoutFullURL(Layout layout, ThemeDisplay themeDisplay)
720 throws PortalException, SystemException;
721
722 public String getLayoutFullURL(
723 Layout layout, ThemeDisplay themeDisplay, boolean doAsUser)
724 throws PortalException, SystemException;
725
726 public String getLayoutFullURL(long groupId, String portletId)
727 throws PortalException, SystemException;
728
729 public String getLayoutFullURL(
730 long groupId, String portletId, boolean secure)
731 throws PortalException, SystemException;
732
733 public String getLayoutFullURL(ThemeDisplay themeDisplay)
734 throws PortalException, SystemException;
735
736 public String getLayoutSetFriendlyURL(
737 LayoutSet layoutSet, ThemeDisplay themeDisplay)
738 throws PortalException, SystemException;
739
740 public String getLayoutTarget(Layout layout);
741
742 public String getLayoutURL(Layout layout, ThemeDisplay themeDisplay)
743 throws PortalException, SystemException;
744
745 public String getLayoutURL(
746 Layout layout, ThemeDisplay themeDisplay, boolean doAsUser)
747 throws PortalException, SystemException;
748
749 public String getLayoutURL(ThemeDisplay themeDisplay)
750 throws PortalException, SystemException;
751
752 public String getLayoutViewPage(Layout layout);
753
754 public String getLayoutViewPage(String type);
755
756 public LiferayPortletRequest getLiferayPortletRequest(
757 PortletRequest portletRequest);
758
759 public LiferayPortletResponse getLiferayPortletResponse(
760 PortletResponse portletResponse);
761
762 public Locale getLocale(HttpServletRequest request);
763
764 public Locale getLocale(RenderRequest renderRequest);
765
766 public String getMailId(String mx, String popPortletPrefix, Object... ids);
767
768 public String getNetvibesURL(Portlet portlet, ThemeDisplay themeDisplay)
769 throws PortalException, SystemException;
770
771 public String getNewPortletTitle(
772 String portletTitle, String oldScopeName, String newScopeName);
773
774 public HttpServletRequest getOriginalServletRequest(
775 HttpServletRequest request);
776
777 public long getParentGroupId(long scopeGroupId)
778 throws PortalException, SystemException;
779
780 public String getPathContext();
781
782 public String getPathFriendlyURLPrivateGroup();
783
784 public String getPathFriendlyURLPrivateUser();
785
786 public String getPathFriendlyURLPublic();
787
788 public String getPathImage();
789
790 public String getPathMain();
791
792 public String getPathProxy();
793
794 public long getPlidFromFriendlyURL(long companyId, String friendlyURL);
795
796 public long getPlidFromPortletId(
797 long groupId, boolean privateLayout, String portletId)
798 throws PortalException, SystemException;
799
800 public long getPlidFromPortletId(long groupId, String portletId)
801 throws PortalException, SystemException;
802
803 public String getPortalLibDir();
804
805
808 public int getPortalPort();
809
810 public int getPortalPort(boolean secure);
811
812 public Properties getPortalProperties();
813
814 public String getPortalURL(HttpServletRequest request);
815
816 public String getPortalURL(HttpServletRequest request, boolean secure);
817
818 public String getPortalURL(Layout layout, ThemeDisplay themeDisplay)
819 throws PortalException, SystemException;
820
821 public String getPortalURL(PortletRequest portletRequest);
822
823 public String getPortalURL(PortletRequest portletRequest, boolean secure);
824
825 public String getPortalURL(
826 String serverName, int serverPort, boolean secure);
827
828 public String getPortalURL(ThemeDisplay themeDisplay)
829 throws PortalException, SystemException;
830
831 public String getPortalWebDir();
832
833 public Set<String> getPortletAddDefaultResourceCheckWhitelist();
834
835 public Set<String> getPortletAddDefaultResourceCheckWhitelistActions();
836
837
840 public List<BreadcrumbEntry> getPortletBreadcrumbList(
841 HttpServletRequest request);
842
843 public List<BreadcrumbEntry> getPortletBreadcrumbs(
844 HttpServletRequest request);
845
846 public PortletConfig getPortletConfig(
847 long companyId, String portletId, ServletContext servletContext)
848 throws PortletException, SystemException;
849
850 public String getPortletDescription(
851 Portlet portlet, ServletContext servletContext, Locale locale);
852
853 public String getPortletDescription(Portlet portlet, User user);
854
855 public String getPortletDescription(String portletId, Locale locale);
856
857 public String getPortletDescription(String portletId, String languageId);
858
859 public String getPortletDescription(String portletId, User user);
860
861 public String getPortletId(HttpServletRequest request);
862
863 public String getPortletId(PortletRequest portletRequest);
864
865 public String getPortletLongTitle(Portlet portlet, Locale locale);
866
867 public String getPortletLongTitle(
868 Portlet portlet, ServletContext servletContext, Locale locale);
869
870 public String getPortletLongTitle(Portlet portlet, String languageId);
871
872 public String getPortletLongTitle(Portlet portlet, User user);
873
874 public String getPortletLongTitle(String portletId, Locale locale);
875
876 public String getPortletLongTitle(String portletId, String languageId);
877
878 public String getPortletLongTitle(String portletId, User user);
879
880 public String getPortletNamespace(String portletId);
881
882 public String getPortletTitle(Portlet portlet, Locale locale);
883
884 public String getPortletTitle(
885 Portlet portlet, ServletContext servletContext, Locale locale);
886
887 public String getPortletTitle(Portlet portlet, String languageId);
888
889 public String getPortletTitle(Portlet portlet, User user);
890
891 public String getPortletTitle(RenderRequest renderRequest);
892
893 public String getPortletTitle(RenderResponse renderResponse);
894
895 public String getPortletTitle(String portletId, Locale locale);
896
897 public String getPortletTitle(String portletId, String languageId);
898
899 public String getPortletTitle(String portletId, User user);
900
901 public String getPortletXmlFileName() throws SystemException;
902
903 public PortletPreferences getPreferences(HttpServletRequest request);
904
905 public PreferencesValidator getPreferencesValidator(Portlet portlet);
906
907 public String getRelativeHomeURL(HttpServletRequest request)
908 throws PortalException, SystemException;
909
910 public long getScopeGroupId(HttpServletRequest request)
911 throws PortalException, SystemException;
912
913 public long getScopeGroupId(HttpServletRequest request, String portletId)
914 throws PortalException, SystemException;
915
916 public long getScopeGroupId(
917 HttpServletRequest request, String portletId,
918 boolean checkStagingGroup)
919 throws PortalException, SystemException;
920
921 public long getScopeGroupId(Layout layout);
922
923 public long getScopeGroupId(Layout layout, String portletId);
924
925 public long getScopeGroupId(long plid);
926
927 public long getScopeGroupId(PortletRequest portletRequest)
928 throws PortalException, SystemException;
929
930 public User getSelectedUser(HttpServletRequest request)
931 throws PortalException, SystemException;
932
933 public User getSelectedUser(
934 HttpServletRequest request, boolean checkPermission)
935 throws PortalException, SystemException;
936
937 public User getSelectedUser(PortletRequest portletRequest)
938 throws PortalException, SystemException;
939
940 public User getSelectedUser(
941 PortletRequest portletRequest, boolean checkPermission)
942 throws PortalException, SystemException;
943
944 public long[] getSiteAndCompanyGroupIds(long groupId)
945 throws PortalException, SystemException;
946
947 public long[] getSiteAndCompanyGroupIds(ThemeDisplay themeDisplay)
948 throws PortalException, SystemException;
949
950
960 public String getSiteLoginURL(ThemeDisplay themeDisplay)
961 throws PortalException, SystemException;
962
963 public String getStaticResourceURL(HttpServletRequest request, String uri);
964
965 public String getStaticResourceURL(
966 HttpServletRequest request, String uri, long timestamp);
967
968 public String getStaticResourceURL(
969 HttpServletRequest request, String uri, String queryString);
970
971 public String getStaticResourceURL(
972 HttpServletRequest request, String uri, String queryString,
973 long timestamp);
974
975 public String getStrutsAction(HttpServletRequest request);
976
977 public String[] getSystemGroups();
978
979 public String[] getSystemOrganizationRoles();
980
981 public String[] getSystemRoles();
982
983 public String[] getSystemSiteRoles();
984
985 public String getUniqueElementId(
986 HttpServletRequest request, String namespace, String id);
987
988 public String getUniqueElementId(
989 PortletRequest request, String namespace, String id);
990
991 public UploadPortletRequest getUploadPortletRequest(
992 PortletRequest portletRequest);
993
994 public UploadServletRequest getUploadServletRequest(
995 HttpServletRequest request);
996
997 public Date getUptime();
998
999 public String getURLWithSessionId(String url, String sessionId);
1000
1001 public User getUser(HttpServletRequest request)
1002 throws PortalException, SystemException;
1003
1004 public User getUser(PortletRequest portletRequest)
1005 throws PortalException, SystemException;
1006
1007 public String getUserEmailAddress(long userId) throws SystemException;
1008
1009 public long getUserId(HttpServletRequest request);
1010
1011 public long getUserId(PortletRequest portletRequest);
1012
1013 public String getUserName(BaseModel<?> baseModel);
1014
1015 public String getUserName(long userId, String defaultUserName);
1016
1017 public String getUserName(
1018 long userId, String defaultUserName, HttpServletRequest request);
1019
1020 public String getUserName(
1021 long userId, String defaultUserName, String userAttribute);
1022
1023 public String getUserName(
1024 long userId, String defaultUserName, String userAttribute,
1025 HttpServletRequest request);
1026
1027 public String getUserPassword(HttpServletRequest request);
1028
1029 public String getUserPassword(HttpSession session);
1030
1031 public String getUserPassword(PortletRequest portletRequest);
1032
1033 public String getUserValue(long userId, String param, String defaultValue)
1034 throws SystemException;
1035
1036 public long getValidUserId(long companyId, long userId)
1037 throws PortalException, SystemException;
1038
1039 public String getVirtualLayoutActualURL(
1040 long groupId, boolean privateLayout, String mainPath,
1041 String friendlyURL, Map<String, String[]> params,
1042 Map<String, Object> requestContext)
1043 throws PortalException, SystemException;
1044
1045 public String getWidgetURL(Portlet portlet, ThemeDisplay themeDisplay)
1046 throws PortalException, SystemException;
1047
1048 public void initCustomSQL();
1049
1050 public void invokeTaglibDiscussion(
1051 PortletConfig portletConfig, ActionRequest actionRequest,
1052 ActionResponse actionResponse)
1053 throws Exception;
1054
1055 public boolean isAllowAddPortletDefaultResource(
1056 HttpServletRequest request, Portlet portlet)
1057 throws PortalException, SystemException;
1058
1059 public boolean isCDNDynamicResourcesEnabled(HttpServletRequest request)
1060 throws PortalException, SystemException;
1061
1062 public boolean isCDNDynamicResourcesEnabled(long companyId);
1063
1064
1067 public boolean isCommunityAdmin(User user, long groupId) throws Exception;
1068
1069
1072 public boolean isCommunityOwner(User user, long groupId) throws Exception;
1073
1074 public boolean isCompanyAdmin(User user) throws Exception;
1075
1076 public boolean isCompanyControlPanelPortlet(
1077 String portletId, String category, ThemeDisplay themeDisplay)
1078 throws PortalException, SystemException;
1079
1080 public boolean isCompanyControlPanelPortlet(
1081 String portletId, ThemeDisplay themeDisplay)
1082 throws PortalException, SystemException;
1083
1084 public boolean isCompanyControlPanelVisible(ThemeDisplay themeDisplay)
1085 throws PortalException, SystemException;
1086
1087 public boolean isControlPanelPortlet(
1088 String portletId, String category, ThemeDisplay themeDisplay)
1089 throws SystemException;
1090
1091 public boolean isControlPanelPortlet(
1092 String portletId, ThemeDisplay themeDisplay)
1093 throws SystemException;
1094
1095 public boolean isGroupAdmin(User user, long groupId) throws Exception;
1096
1097 public boolean isGroupFriendlyURL(
1098 String fullURL, String groupFriendlyURL, String layoutFriendlyURL);
1099
1100 public boolean isGroupOwner(User user, long groupId) throws Exception;
1101
1102 public boolean isLayoutDescendant(Layout layout, long layoutId)
1103 throws PortalException, SystemException;
1104
1105 public boolean isLayoutFirstPageable(Layout layout);
1106
1107 public boolean isLayoutFirstPageable(String type);
1108
1109 public boolean isLayoutFriendliable(Layout layout);
1110
1111 public boolean isLayoutFriendliable(String type);
1112
1113 public boolean isLayoutParentable(Layout layout);
1114
1115 public boolean isLayoutParentable(String type);
1116
1117 public boolean isLayoutSitemapable(Layout layout);
1118
1119 public boolean isMethodGet(PortletRequest portletRequest);
1120
1121 public boolean isMethodPost(PortletRequest portletRequest);
1122
1123 public boolean isMultipartRequest(HttpServletRequest request);
1124
1125 public boolean isOmniadmin(long userId);
1126
1127 public boolean isReservedParameter(String name);
1128
1129 public boolean isRSSFeedsEnabled();
1130
1131 public boolean isSecure(HttpServletRequest request);
1132
1133 public boolean isSystemGroup(String groupName);
1134
1135 public boolean isSystemRole(String roleName);
1136
1137 public boolean isUpdateAvailable() throws SystemException;
1138
1139 public boolean isValidResourceId(String resourceId);
1140
1141 public void removePortalPortEventListener(
1142 PortalPortEventListener portalPortEventListener);
1143
1144 public void resetCDNHosts();
1145
1146 public Set<String> resetPortletAddDefaultResourceCheckWhitelist();
1147
1148 public Set<String> resetPortletAddDefaultResourceCheckWhitelistActions();
1149
1150 public void sendError(
1151 Exception e, ActionRequest actionRequest,
1152 ActionResponse actionResponse)
1153 throws IOException;
1154
1155 public void sendError(
1156 Exception e, HttpServletRequest request,
1157 HttpServletResponse response)
1158 throws IOException, ServletException;
1159
1160 public void sendError(
1161 int status, Exception e, ActionRequest actionRequest,
1162 ActionResponse actionResponse)
1163 throws IOException;
1164
1165 public void sendError(
1166 int status, Exception e, HttpServletRequest request,
1167 HttpServletResponse response)
1168 throws IOException, ServletException;
1169
1170 public void sendRSSFeedsDisabledError(
1171 HttpServletRequest request, HttpServletResponse response)
1172 throws IOException, ServletException;
1173
1174 public void sendRSSFeedsDisabledError(
1175 PortletRequest portletRequest, PortletResponse portletResponse)
1176 throws IOException, ServletException;
1177
1178
1182 public void setPageDescription(
1183 String description, HttpServletRequest request);
1184
1185
1188 public void setPageKeywords(String keywords, HttpServletRequest request);
1189
1190
1193 public void setPageSubtitle(String subtitle, HttpServletRequest request);
1194
1195
1199 public void setPageTitle(String title, HttpServletRequest request);
1200
1201
1204 public void setPortalPort(HttpServletRequest request);
1205
1206 public void storePreferences(PortletPreferences portletPreferences)
1207 throws IOException, ValidatorException;
1208
1209 public String[] stripURLAnchor(String url, String separator);
1210
1211 public String transformCustomSQL(String sql);
1212
1213 public PortletMode updatePortletMode(
1214 String portletId, User user, Layout layout, PortletMode portletMode,
1215 HttpServletRequest request);
1216
1217 public String updateRedirect(
1218 String redirect, String oldPath, String newPath);
1219
1220 public WindowState updateWindowState(
1221 String portletId, User user, Layout layout, WindowState windowState,
1222 HttpServletRequest request);
1223
1224 }