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_MODULE = "/o/";
080
081 public static final String PATH_PORTAL_LAYOUT = "/portal/layout";
082
083 public static final String PORTAL_REALM = "PortalRealm";
084
085 public static final String PORTLET_XML_FILE_NAME_CUSTOM =
086 "portlet-custom.xml";
087
088 public static final String PORTLET_XML_FILE_NAME_STANDARD = "portlet.xml";
089
090 public static final String TEMP_OBFUSCATION_VALUE =
091 "TEMP_OBFUSCATION_VALUE";
092
093
100 public void addPageDescription(
101 String description, HttpServletRequest request);
102
103
110 public void addPageKeywords(String keywords, HttpServletRequest request);
111
112
118 public void addPageSubtitle(String subtitle, HttpServletRequest request);
119
120
126 public void addPageTitle(String title, HttpServletRequest request);
127
128
134 public void addPortalPortEventListener(
135 PortalPortEventListener portalPortEventListener);
136
137
144 public void addPortletBreadcrumbEntry(
145 HttpServletRequest request, String title, String url);
146
147
155 public void addPortletBreadcrumbEntry(
156 HttpServletRequest request, String title, String url,
157 Map<String, Object> data);
158
159
167 public void addPortletDefaultResource(
168 HttpServletRequest request, Portlet portlet)
169 throws PortalException, SystemException;
170
171 public void addPortletDefaultResource(
172 long companyId, Layout layout, Portlet portlet)
173 throws PortalException, SystemException;
174
175
192 public String addPreservedParameters(
193 ThemeDisplay themeDisplay, Layout layout, String url, boolean doAsUser);
194
195
203 public String addPreservedParameters(ThemeDisplay themeDisplay, String url);
204
205
211 public void clearRequestParameters(RenderRequest renderRequest);
212
213
220 public void copyRequestParameters(
221 ActionRequest actionRequest, ActionResponse actionResponse);
222
223
231 public String escapeRedirect(String url);
232
233
240 public String generateRandomKey(HttpServletRequest request, String input);
241
242 public String getActualURL(
243 long groupId, boolean privateLayout, String mainPath,
244 String friendlyURL, Map<String, String[]> params,
245 Map<String, Object> requestContext)
246 throws PortalException, SystemException;
247
248
257 public Locale[] getAlternateLocales(HttpServletRequest request)
258 throws PortalException, SystemException;
259
260
269 public String getAlternateURL(
270 String canonicalURL, ThemeDisplay themeDisplay, Locale locale);
271
272
279 public Set<String> getAuthTokenIgnoreActions();
280
281
288 public Set<String> getAuthTokenIgnorePortlets();
289
290
301 public BaseModel<?> getBaseModel(ResourcePermission resourcePermission)
302 throws PortalException, SystemException;
303
304
315 public BaseModel<?> getBaseModel(String modelName, String primKey)
316 throws PortalException, SystemException;
317
318
329 public long getBasicAuthUserId(HttpServletRequest request)
330 throws PortalException, SystemException;
331
332
344 public long getBasicAuthUserId(HttpServletRequest request, long companyId)
345 throws PortalException, SystemException;
346
347
360 public String getCanonicalURL(
361 String completeURL, ThemeDisplay themeDisplay, Layout layout)
362 throws PortalException, SystemException;
363
364
379 public String getCanonicalURL(
380 String completeURL, ThemeDisplay themeDisplay, Layout layout,
381 boolean forceLayoutFriendlyURL)
382 throws PortalException, SystemException;
383
384
387 public String getCDNHost();
388
389
396 public String getCDNHost(boolean secure);
397
398 public String getCDNHost(HttpServletRequest request)
399 throws PortalException, SystemException;
400
401
408 public String getCDNHostHttp(long companyId);
409
410
417 public String getCDNHostHttps(long companyId);
418
419
425 public String getClassName(long classNameId);
426
427
433 public long getClassNameId(Class<?> clazz);
434
435
441 public long getClassNameId(String value);
442
443
453 public String getClassNamePortletId(String className);
454
455 public Company getCompany(HttpServletRequest request)
456 throws PortalException, SystemException;
457
458 public Company getCompany(PortletRequest portletRequest)
459 throws PortalException, SystemException;
460
461 public long getCompanyId(HttpServletRequest requestuest);
462
463 public long getCompanyId(PortletRequest portletRequest);
464
465 public long[] getCompanyIds();
466
467 public String getComputerAddress();
468
469 public String getComputerName();
470
471 public String getControlPanelCategory(
472 String portletId, ThemeDisplay themeDisplay)
473 throws SystemException;
474
475 public String getControlPanelFullURL(
476 long scopeGroupId, String ppid, Map<String, String[]> params)
477 throws PortalException, SystemException;
478
479 public long getControlPanelPlid(long companyId)
480 throws PortalException, SystemException;
481
482 public long getControlPanelPlid(PortletRequest portletRequest)
483 throws PortalException, SystemException;
484
485 public Set<Portlet> getControlPanelPortlets(long companyId, String category)
486 throws SystemException;
487
488 public List<Portlet> getControlPanelPortlets(
489 String category, ThemeDisplay themeDisplay)
490 throws SystemException;
491
492 public String getCreateAccountURL(
493 HttpServletRequest request, ThemeDisplay themeDisplay)
494 throws Exception;
495
496 public String getCurrentCompleteURL(HttpServletRequest request);
497
498 public String getCurrentURL(HttpServletRequest request);
499
500 public String getCurrentURL(PortletRequest portletRequest);
501
502 public String getCustomSQLFunctionIsNotNull();
503
504 public String getCustomSQLFunctionIsNull();
505
506
514 public Date getDate(int month, int day, int year);
515
516
531 public Date getDate(
532 int month, int day, int year,
533 Class<? extends PortalException> clazz)
534 throws PortalException;
535
536
553 public Date getDate(
554 int month, int day, int year, int hour, int min,
555 Class<? extends PortalException> clazz)
556 throws PortalException;
557
558
576 public Date getDate(
577 int month, int day, int year, int hour, int min, TimeZone timeZone,
578 Class<? extends PortalException> clazz)
579 throws PortalException;
580
581
597 public Date getDate(
598 int month, int day, int year, TimeZone timeZone,
599 Class<? extends PortalException> clazz)
600 throws PortalException;
601
602 public long getDefaultCompanyId();
603
604 public long getDigestAuthUserId(HttpServletRequest request)
605 throws PortalException, SystemException;
606
607 public String getEmailFromAddress(
608 PortletPreferences preferences, long companyId, String defaultValue)
609 throws SystemException;
610
611 public String getEmailFromName(
612 PortletPreferences preferences, long companyId, String defaultValue)
613 throws SystemException;
614
615 public Map<String, Serializable> getExpandoBridgeAttributes(
616 ExpandoBridge expandoBridge, PortletRequest portletRequest)
617 throws PortalException, SystemException;
618
619 public Map<String, Serializable> getExpandoBridgeAttributes(
620 ExpandoBridge expandoBridge,
621 UploadPortletRequest uploadPortletRequest)
622 throws PortalException, SystemException;
623
624 public Serializable getExpandoValue(
625 PortletRequest portletRequest, String name, int type,
626 String displayType)
627 throws PortalException, SystemException;
628
629 public Serializable getExpandoValue(
630 UploadPortletRequest uploadPortletRequest, String name, int type,
631 String displayType)
632 throws PortalException, SystemException;
633
634 public String getFacebookURL(
635 Portlet portlet, String facebookCanvasPageURL,
636 ThemeDisplay themeDisplay)
637 throws PortalException, SystemException;
638
639 public String getFirstPageLayoutTypes(PageContext pageContext);
640
641 public String getFullName(
642 String firstName, String middleName, String lastName);
643
644 public String getGlobalLibDir();
645
646 public String getGoogleGadgetURL(Portlet portlet, ThemeDisplay themeDisplay)
647 throws PortalException, SystemException;
648
649 public String getGroupFriendlyURL(
650 Group group, boolean privateLayoutSet, ThemeDisplay themeDisplay)
651 throws PortalException, SystemException;
652
653 public String getGroupFriendlyURL(
654 Group group, boolean privateLayoutSet, ThemeDisplay themeDisplay,
655 Locale locale)
656 throws PortalException, SystemException;
657
658 public String[] getGroupPermissions(HttpServletRequest request);
659
660 public String[] getGroupPermissions(
661 HttpServletRequest request, String className);
662
663 public String[] getGroupPermissions(PortletRequest portletRequest);
664
665 public String[] getGroupPermissions(
666 PortletRequest portletRequest, String className);
667
668 public String[] getGuestPermissions(HttpServletRequest request);
669
670 public String[] getGuestPermissions(
671 HttpServletRequest request, String className);
672
673 public String[] getGuestPermissions(PortletRequest portletRequest);
674
675 public String[] getGuestPermissions(
676 PortletRequest portletRequest, String className);
677
678 public String getHomeURL(HttpServletRequest request)
679 throws PortalException, SystemException;
680
681 public String getHost(HttpServletRequest request);
682
683 public String getHost(PortletRequest portletRequest);
684
685 public HttpServletRequest getHttpServletRequest(
686 PortletRequest portletRequest);
687
688 public HttpServletResponse getHttpServletResponse(
689 PortletResponse portletResponse);
690
691 public String getJournalArticleActualURL(
692 long groupId, boolean privateLayout, String mainPath,
693 String friendlyURL, Map<String, String[]> params,
694 Map<String, Object> requestContext)
695 throws PortalException, SystemException;
696
697 public String getJsSafePortletId(String portletId);
698
699 public String getLayoutActualURL(Layout layout);
700
701 public String getLayoutActualURL(Layout layout, String mainPath);
702
703 public String getLayoutActualURL(
704 long groupId, boolean privateLayout, String mainPath,
705 String friendlyURL)
706 throws PortalException, SystemException;
707
708 public String getLayoutActualURL(
709 long groupId, boolean privateLayout, String mainPath,
710 String friendlyURL, Map<String, String[]> params,
711 Map<String, Object> requestContext)
712 throws PortalException, SystemException;
713
714 public String getLayoutEditPage(Layout layout);
715
716 public String getLayoutEditPage(String type);
717
718 public String getLayoutFriendlyURL(Layout layout, ThemeDisplay themeDisplay)
719 throws PortalException, SystemException;
720
721 public String getLayoutFriendlyURL(
722 Layout layout, ThemeDisplay themeDisplay, Locale locale)
723 throws PortalException, SystemException;
724
725 public String getLayoutFullURL(Layout layout, ThemeDisplay themeDisplay)
726 throws PortalException, SystemException;
727
728 public String getLayoutFullURL(
729 Layout layout, ThemeDisplay themeDisplay, boolean doAsUser)
730 throws PortalException, SystemException;
731
732 public String getLayoutFullURL(long groupId, String portletId)
733 throws PortalException, SystemException;
734
735 public String getLayoutFullURL(
736 long groupId, String portletId, boolean secure)
737 throws PortalException, SystemException;
738
739 public String getLayoutFullURL(ThemeDisplay themeDisplay)
740 throws PortalException, SystemException;
741
742 public String getLayoutSetFriendlyURL(
743 LayoutSet layoutSet, ThemeDisplay themeDisplay)
744 throws PortalException, SystemException;
745
746 public String getLayoutTarget(Layout layout);
747
748 public String getLayoutURL(Layout layout, ThemeDisplay themeDisplay)
749 throws PortalException, SystemException;
750
751 public String getLayoutURL(
752 Layout layout, ThemeDisplay themeDisplay, boolean doAsUser)
753 throws PortalException, SystemException;
754
755 public String getLayoutURL(ThemeDisplay themeDisplay)
756 throws PortalException, SystemException;
757
758 public String getLayoutViewPage(Layout layout);
759
760 public String getLayoutViewPage(String type);
761
762 public LiferayPortletRequest getLiferayPortletRequest(
763 PortletRequest portletRequest);
764
765 public LiferayPortletResponse getLiferayPortletResponse(
766 PortletResponse portletResponse);
767
768 public Locale getLocale(HttpServletRequest request);
769
770 public Locale getLocale(RenderRequest renderRequest);
771
772 public String getMailId(String mx, String popPortletPrefix, Object... ids);
773
774 public String getNetvibesURL(Portlet portlet, ThemeDisplay themeDisplay)
775 throws PortalException, SystemException;
776
777 public String getNewPortletTitle(
778 String portletTitle, String oldScopeName, String newScopeName);
779
780 public HttpServletRequest getOriginalServletRequest(
781 HttpServletRequest request);
782
783
786 public long getParentGroupId(long scopeGroupId)
787 throws PortalException, SystemException;
788
789 public String getPathContext();
790
791 public String getPathFriendlyURLPrivateGroup();
792
793 public String getPathFriendlyURLPrivateUser();
794
795 public String getPathFriendlyURLPublic();
796
797 public String getPathImage();
798
799 public String getPathMain();
800
801 public String getPathModule();
802
803 public String getPathProxy();
804
805 public long getPlidFromFriendlyURL(long companyId, String friendlyURL);
806
807 public long getPlidFromPortletId(
808 long groupId, boolean privateLayout, String portletId)
809 throws PortalException, SystemException;
810
811 public long getPlidFromPortletId(long groupId, String portletId)
812 throws PortalException, SystemException;
813
814 public String getPortalLibDir();
815
816
819 public int getPortalPort();
820
821 public int getPortalPort(boolean secure);
822
823 public Properties getPortalProperties();
824
825 public String getPortalURL(HttpServletRequest request);
826
827 public String getPortalURL(HttpServletRequest request, boolean secure);
828
829 public String getPortalURL(Layout layout, ThemeDisplay themeDisplay)
830 throws PortalException, SystemException;
831
832 public String getPortalURL(PortletRequest portletRequest);
833
834 public String getPortalURL(PortletRequest portletRequest, boolean secure);
835
836 public String getPortalURL(
837 String serverName, int serverPort, boolean secure);
838
839 public String getPortalURL(ThemeDisplay themeDisplay)
840 throws PortalException, SystemException;
841
842 public String getPortalWebDir();
843
844 public Set<String> getPortletAddDefaultResourceCheckWhitelist();
845
846 public Set<String> getPortletAddDefaultResourceCheckWhitelistActions();
847
848
851 public List<BreadcrumbEntry> getPortletBreadcrumbList(
852 HttpServletRequest request);
853
854 public List<BreadcrumbEntry> getPortletBreadcrumbs(
855 HttpServletRequest request);
856
857 public PortletConfig getPortletConfig(
858 long companyId, String portletId, ServletContext servletContext)
859 throws PortletException, SystemException;
860
861 public String getPortletDescription(
862 Portlet portlet, ServletContext servletContext, Locale locale);
863
864 public String getPortletDescription(Portlet portlet, User user);
865
866 public String getPortletDescription(String portletId, Locale locale);
867
868 public String getPortletDescription(String portletId, String languageId);
869
870 public String getPortletDescription(String portletId, User user);
871
872 public String getPortletId(HttpServletRequest request);
873
874 public String getPortletId(PortletRequest portletRequest);
875
876 public String getPortletLongTitle(Portlet portlet, Locale locale);
877
878 public String getPortletLongTitle(
879 Portlet portlet, ServletContext servletContext, Locale locale);
880
881 public String getPortletLongTitle(Portlet portlet, String languageId);
882
883 public String getPortletLongTitle(Portlet portlet, User user);
884
885 public String getPortletLongTitle(String portletId, Locale locale);
886
887 public String getPortletLongTitle(String portletId, String languageId);
888
889 public String getPortletLongTitle(String portletId, User user);
890
891 public String getPortletNamespace(String portletId);
892
893 public String getPortletTitle(Portlet portlet, Locale locale);
894
895 public String getPortletTitle(
896 Portlet portlet, ServletContext servletContext, Locale locale);
897
898 public String getPortletTitle(Portlet portlet, String languageId);
899
900 public String getPortletTitle(Portlet portlet, User user);
901
902 public String getPortletTitle(RenderRequest renderRequest);
903
904 public String getPortletTitle(RenderResponse renderResponse);
905
906 public String getPortletTitle(String portletId, Locale locale);
907
908 public String getPortletTitle(String portletId, String languageId);
909
910 public String getPortletTitle(String portletId, User user);
911
912 public String getPortletXmlFileName() throws SystemException;
913
914 public PortletPreferences getPreferences(HttpServletRequest request);
915
916 public PreferencesValidator getPreferencesValidator(Portlet portlet);
917
918 public String getRelativeHomeURL(HttpServletRequest request)
919 throws PortalException, SystemException;
920
921 public long getScopeGroupId(HttpServletRequest request)
922 throws PortalException, SystemException;
923
924 public long getScopeGroupId(HttpServletRequest request, String portletId)
925 throws PortalException, SystemException;
926
927 public long getScopeGroupId(
928 HttpServletRequest request, String portletId,
929 boolean checkStagingGroup)
930 throws PortalException, SystemException;
931
932 public long getScopeGroupId(Layout layout);
933
934 public long getScopeGroupId(Layout layout, String portletId);
935
936 public long getScopeGroupId(long plid);
937
938 public long getScopeGroupId(PortletRequest portletRequest)
939 throws PortalException, SystemException;
940
941 public User getSelectedUser(HttpServletRequest request)
942 throws PortalException, SystemException;
943
944 public User getSelectedUser(
945 HttpServletRequest request, boolean checkPermission)
946 throws PortalException, SystemException;
947
948 public User getSelectedUser(PortletRequest portletRequest)
949 throws PortalException, SystemException;
950
951 public User getSelectedUser(
952 PortletRequest portletRequest, boolean checkPermission)
953 throws PortalException, SystemException;
954
955 public long[] getSiteAndCompanyGroupIds(long groupId)
956 throws PortalException, SystemException;
957
958 public long[] getSiteAndCompanyGroupIds(ThemeDisplay themeDisplay)
959 throws PortalException, SystemException;
960
961 public long getSiteGroupId(long groupId)
962 throws PortalException, SystemException;
963
964
974 public String getSiteLoginURL(ThemeDisplay themeDisplay)
975 throws PortalException, SystemException;
976
977 public String getStaticResourceURL(HttpServletRequest request, String uri);
978
979 public String getStaticResourceURL(
980 HttpServletRequest request, String uri, long timestamp);
981
982 public String getStaticResourceURL(
983 HttpServletRequest request, String uri, String queryString);
984
985 public String getStaticResourceURL(
986 HttpServletRequest request, String uri, String queryString,
987 long timestamp);
988
989 public String getStrutsAction(HttpServletRequest request);
990
991 public String[] getSystemGroups();
992
993 public String[] getSystemOrganizationRoles();
994
995 public String[] getSystemRoles();
996
997 public String[] getSystemSiteRoles();
998
999 public String getUniqueElementId(
1000 HttpServletRequest request, String namespace, String id);
1001
1002 public String getUniqueElementId(
1003 PortletRequest request, String namespace, String id);
1004
1005 public UploadPortletRequest getUploadPortletRequest(
1006 PortletRequest portletRequest);
1007
1008 public UploadServletRequest getUploadServletRequest(
1009 HttpServletRequest request);
1010
1011 public Date getUptime();
1012
1013 public String getURLWithSessionId(String url, String sessionId);
1014
1015 public User getUser(HttpServletRequest request)
1016 throws PortalException, SystemException;
1017
1018 public User getUser(PortletRequest portletRequest)
1019 throws PortalException, SystemException;
1020
1021 public String getUserEmailAddress(long userId) throws SystemException;
1022
1023 public long getUserId(HttpServletRequest request);
1024
1025 public long getUserId(PortletRequest portletRequest);
1026
1027 public String getUserName(BaseModel<?> baseModel);
1028
1029 public String getUserName(long userId, String defaultUserName);
1030
1031 public String getUserName(
1032 long userId, String defaultUserName, HttpServletRequest request);
1033
1034 public String getUserName(
1035 long userId, String defaultUserName, String userAttribute);
1036
1037 public String getUserName(
1038 long userId, String defaultUserName, String userAttribute,
1039 HttpServletRequest request);
1040
1041 public String getUserPassword(HttpServletRequest request);
1042
1043 public String getUserPassword(HttpSession session);
1044
1045 public String getUserPassword(PortletRequest portletRequest);
1046
1047 public String getUserValue(long userId, String param, String defaultValue)
1048 throws SystemException;
1049
1050 public long getValidUserId(long companyId, long userId)
1051 throws PortalException, SystemException;
1052
1053 public String getVirtualLayoutActualURL(
1054 long groupId, boolean privateLayout, String mainPath,
1055 String friendlyURL, Map<String, String[]> params,
1056 Map<String, Object> requestContext)
1057 throws PortalException, SystemException;
1058
1059 public String getWidgetURL(Portlet portlet, ThemeDisplay themeDisplay)
1060 throws PortalException, SystemException;
1061
1062 public void initCustomSQL();
1063
1064 public void invokeTaglibDiscussion(
1065 PortletConfig portletConfig, ActionRequest actionRequest,
1066 ActionResponse actionResponse)
1067 throws Exception;
1068
1069 public boolean isAllowAddPortletDefaultResource(
1070 HttpServletRequest request, Portlet portlet)
1071 throws PortalException, SystemException;
1072
1073 public boolean isCDNDynamicResourcesEnabled(HttpServletRequest request)
1074 throws PortalException, SystemException;
1075
1076 public boolean isCDNDynamicResourcesEnabled(long companyId);
1077
1078
1081 public boolean isCommunityAdmin(User user, long groupId) throws Exception;
1082
1083
1086 public boolean isCommunityOwner(User user, long groupId) throws Exception;
1087
1088 public boolean isCompanyAdmin(User user) throws Exception;
1089
1090 public boolean isCompanyControlPanelPortlet(
1091 String portletId, String category, ThemeDisplay themeDisplay)
1092 throws PortalException, SystemException;
1093
1094 public boolean isCompanyControlPanelPortlet(
1095 String portletId, ThemeDisplay themeDisplay)
1096 throws PortalException, SystemException;
1097
1098 public boolean isCompanyControlPanelVisible(ThemeDisplay themeDisplay)
1099 throws PortalException, SystemException;
1100
1101 public boolean isControlPanelPortlet(
1102 String portletId, String category, ThemeDisplay themeDisplay)
1103 throws SystemException;
1104
1105 public boolean isControlPanelPortlet(
1106 String portletId, ThemeDisplay themeDisplay)
1107 throws SystemException;
1108
1109 public boolean isGroupAdmin(User user, long groupId) throws Exception;
1110
1111 public boolean isGroupFriendlyURL(
1112 String fullURL, String groupFriendlyURL, String layoutFriendlyURL);
1113
1114 public boolean isGroupOwner(User user, long groupId) throws Exception;
1115
1116 public boolean isLayoutDescendant(Layout layout, long layoutId)
1117 throws PortalException, SystemException;
1118
1119 public boolean isLayoutFirstPageable(Layout layout);
1120
1121 public boolean isLayoutFirstPageable(String type);
1122
1123 public boolean isLayoutFriendliable(Layout layout);
1124
1125 public boolean isLayoutFriendliable(String type);
1126
1127 public boolean isLayoutParentable(Layout layout);
1128
1129 public boolean isLayoutParentable(String type);
1130
1131 public boolean isLayoutSitemapable(Layout layout);
1132
1133 public boolean isMethodGet(PortletRequest portletRequest);
1134
1135 public boolean isMethodPost(PortletRequest portletRequest);
1136
1137 public boolean isMultipartRequest(HttpServletRequest request);
1138
1139 public boolean isOmniadmin(long userId);
1140
1141 public boolean isReservedParameter(String name);
1142
1143 public boolean isRSSFeedsEnabled();
1144
1145 public boolean isSecure(HttpServletRequest request);
1146
1147 public boolean isSystemGroup(String groupName);
1148
1149 public boolean isSystemRole(String roleName);
1150
1151 public boolean isUpdateAvailable() throws SystemException;
1152
1153 public boolean isValidResourceId(String resourceId);
1154
1155 public void removePortalPortEventListener(
1156 PortalPortEventListener portalPortEventListener);
1157
1158 public void resetCDNHosts();
1159
1160 public Set<String> resetPortletAddDefaultResourceCheckWhitelist();
1161
1162 public Set<String> resetPortletAddDefaultResourceCheckWhitelistActions();
1163
1164 public void sendError(
1165 Exception e, ActionRequest actionRequest,
1166 ActionResponse actionResponse)
1167 throws IOException;
1168
1169 public void sendError(
1170 Exception e, HttpServletRequest request,
1171 HttpServletResponse response)
1172 throws IOException, ServletException;
1173
1174 public void sendError(
1175 int status, Exception e, ActionRequest actionRequest,
1176 ActionResponse actionResponse)
1177 throws IOException;
1178
1179 public void sendError(
1180 int status, Exception e, HttpServletRequest request,
1181 HttpServletResponse response)
1182 throws IOException, ServletException;
1183
1184 public void sendRSSFeedsDisabledError(
1185 HttpServletRequest request, HttpServletResponse response)
1186 throws IOException, ServletException;
1187
1188 public void sendRSSFeedsDisabledError(
1189 PortletRequest portletRequest, PortletResponse portletResponse)
1190 throws IOException, ServletException;
1191
1192
1196 public void setPageDescription(
1197 String description, HttpServletRequest request);
1198
1199
1202 public void setPageKeywords(String keywords, HttpServletRequest request);
1203
1204
1207 public void setPageSubtitle(String subtitle, HttpServletRequest request);
1208
1209
1213 public void setPageTitle(String title, HttpServletRequest request);
1214
1215
1218 public void setPortalPort(HttpServletRequest request);
1219
1220 public void storePreferences(PortletPreferences portletPreferences)
1221 throws IOException, ValidatorException;
1222
1223 public String[] stripURLAnchor(String url, String separator);
1224
1225 public String transformCustomSQL(String sql);
1226
1227 public PortletMode updatePortletMode(
1228 String portletId, User user, Layout layout, PortletMode portletMode,
1229 HttpServletRequest request);
1230
1231 public String updateRedirect(
1232 String redirect, String oldPath, String newPath);
1233
1234 public WindowState updateWindowState(
1235 String portletId, User user, Layout layout, WindowState windowState,
1236 HttpServletRequest request);
1237
1238 }