1
22
23 package com.liferay.portal.model.impl;
24
25 import com.liferay.portal.kernel.job.Scheduler;
26 import com.liferay.portal.kernel.log.Log;
27 import com.liferay.portal.kernel.log.LogFactoryUtil;
28 import com.liferay.portal.kernel.plugin.PluginPackage;
29 import com.liferay.portal.kernel.poller.PollerProcessor;
30 import com.liferay.portal.kernel.pop.MessageListener;
31 import com.liferay.portal.kernel.portlet.ConfigurationAction;
32 import com.liferay.portal.kernel.portlet.FriendlyURLMapper;
33 import com.liferay.portal.kernel.portlet.PortletBag;
34 import com.liferay.portal.kernel.portlet.PortletBagPool;
35 import com.liferay.portal.kernel.portlet.PortletLayoutListener;
36 import com.liferay.portal.kernel.search.Indexer;
37 import com.liferay.portal.kernel.search.OpenSearch;
38 import com.liferay.portal.kernel.servlet.URLEncoder;
39 import com.liferay.portal.kernel.util.ContentTypes;
40 import com.liferay.portal.kernel.util.InstancePool;
41 import com.liferay.portal.kernel.util.StringPool;
42 import com.liferay.portal.kernel.util.StringUtil;
43 import com.liferay.portal.kernel.util.Validator;
44 import com.liferay.portal.lar.PortletDataHandler;
45 import com.liferay.portal.model.Plugin;
46 import com.liferay.portal.model.PluginSetting;
47 import com.liferay.portal.model.Portlet;
48 import com.liferay.portal.model.PortletApp;
49 import com.liferay.portal.model.PortletConstants;
50 import com.liferay.portal.model.PortletFilter;
51 import com.liferay.portal.model.PortletInfo;
52 import com.liferay.portal.model.PublicRenderParameter;
53 import com.liferay.portal.model.RoleConstants;
54 import com.liferay.portal.model.User;
55 import com.liferay.portal.service.RoleLocalServiceUtil;
56 import com.liferay.portal.service.UserLocalServiceUtil;
57 import com.liferay.portal.util.PortalUtil;
58 import com.liferay.portal.util.PropsValues;
59 import com.liferay.portal.util.QNameUtil;
60 import com.liferay.portlet.PortletBagImpl;
61 import com.liferay.portlet.social.model.SocialActivityInterpreter;
62 import com.liferay.portlet.social.model.SocialRequestInterpreter;
63
64 import java.util.ArrayList;
65 import java.util.Arrays;
66 import java.util.HashMap;
67 import java.util.HashSet;
68 import java.util.Hashtable;
69 import java.util.Iterator;
70 import java.util.LinkedHashMap;
71 import java.util.List;
72 import java.util.Map;
73 import java.util.Set;
74 import java.util.TreeSet;
75
76 import javax.portlet.PortletMode;
77 import javax.portlet.WindowState;
78
79 import javax.xml.namespace.QName;
80
81
87 public class PortletImpl extends PortletModelImpl implements Portlet {
88
89
92 public PortletImpl() {
93 }
94
95
98 public PortletImpl(long companyId, String portletId) {
99 setCompanyId(companyId);
100 setPortletId(portletId);
101 setStrutsPath(portletId);
102 setActive(true);
103 _headerPortalCss = new ArrayList<String>();
104 _headerPortletCss = new ArrayList<String>();
105 _headerPortalJavaScript = new ArrayList<String>();
106 _headerPortletJavaScript = new ArrayList<String>();
107 _footerPortalCss = new ArrayList<String>();
108 _footerPortletCss = new ArrayList<String>();
109 _footerPortalJavaScript = new ArrayList<String>();
110 _footerPortletJavaScript = new ArrayList<String>();
111 _unlinkedRoles = new HashSet<String>();
112 _roleMappers = new LinkedHashMap<String, String>();
113 _initParams = new HashMap<String, String>();
114 _portletModes = new HashMap<String, Set<String>>();
115 _windowStates = new HashMap<String, Set<String>>();
116 _supportedLocales = new HashSet<String>();
117 _portletFilters = new LinkedHashMap<String, PortletFilter>();
118 _processingEvents = new HashSet<QName>();
119 _publishingEvents = new HashSet<QName>();
120 _publicRenderParameters = new HashSet<PublicRenderParameter>();
121 }
122
123
126 public PortletImpl(
127 String portletId, PluginPackage pluginPackage,
128 PluginSetting pluginSetting, long companyId, long timestamp,
129 String icon, String virtualPath, String strutsPath, String portletName,
130 String displayName, String portletClass,
131 String configurationActionClass, String indexerClass,
132 String openSearchClass, String schedulerClass, String portletURLClass,
133 String friendlyURLMapperClass, String urlEncoderClass,
134 String portletDataHandlerClass, String portletLayoutListenerClass,
135 String pollerProcessorClass, String popMessageListenerClass,
136 String socialActivityInterpreterClass,
137 String socialRequestInterpreterClass, String defaultPreferences,
138 String prefsValidator, boolean prefsCompanyWide,
139 boolean prefsUniquePerLayout, boolean prefsOwnedByGroup,
140 boolean useDefaultTemplate, boolean showPortletAccessDenied,
141 boolean showPortletInactive, boolean actionURLRedirect,
142 boolean restoreCurrentView, boolean maximizeEdit, boolean maximizeHelp,
143 boolean popUpPrint, boolean layoutCacheable, boolean instanceable,
144 String userPrincipalStrategy, boolean privateRequestAttributes,
145 boolean privateSessionAttributes, int renderWeight, boolean ajaxable,
146 List<String> headerPortalCss, List<String> headerPortletCss,
147 List<String> headerPortalJavaScript,
148 List<String> headerPortletJavaScript, List<String> footerPortalCss,
149 List<String> footerPortletCss, List<String> footerPortalJavaScript,
150 List<String> footerPortletJavaScript,
151 String cssClassWrapper, String facebookIntegration,
152 boolean addDefaultResource, String roles, Set<String> unlinkedRoles,
153 Map<String, String> roleMappers, boolean system, boolean active,
154 boolean include, Map<String, String> initParams, Integer expCache,
155 Map<String, Set<String>> portletModes,
156 Map<String, Set<String>> windowStates, Set<String> supportedLocales,
157 String resourceBundle, PortletInfo portletInfo,
158 Map<String, PortletFilter> portletFilters, Set<QName> processingEvents,
159 Set<QName> publishingEvents,
160 Set<PublicRenderParameter> publicRenderParameters,
161 PortletApp portletApp) {
162
163 setPortletId(portletId);
164 _pluginPackage = pluginPackage;
165 _defaultPluginSetting = pluginSetting;
166 setCompanyId(companyId);
167 _timestamp = timestamp;
168 _icon = icon;
169 _virtualPath = virtualPath;
170 _strutsPath = strutsPath;
171 _portletName = portletName;
172 _displayName = displayName;
173 _portletClass = portletClass;
174 _configurationActionClass = configurationActionClass;
175 _indexerClass = indexerClass;
176 _openSearchClass = openSearchClass;
177 _schedulerClass = schedulerClass;
178 _portletURLClass = portletURLClass;
179 _friendlyURLMapperClass = friendlyURLMapperClass;
180 _urlEncoderClass = urlEncoderClass;
181 _portletDataHandlerClass = portletDataHandlerClass;
182 _portletLayoutListenerClass = portletLayoutListenerClass;
183 _pollerProcessorClass = pollerProcessorClass;
184 _popMessageListenerClass = popMessageListenerClass;
185 _socialActivityInterpreterClass = socialActivityInterpreterClass;
186 _socialRequestInterpreterClass = socialRequestInterpreterClass;
187 _defaultPreferences = defaultPreferences;
188 _prefsValidator = prefsValidator;
189 _prefsCompanyWide = prefsCompanyWide;
190 _prefsUniquePerLayout = prefsUniquePerLayout;
191 _prefsOwnedByGroup = prefsOwnedByGroup;
192 _useDefaultTemplate = useDefaultTemplate;
193 _showPortletAccessDenied = showPortletAccessDenied;
194 _showPortletInactive = showPortletInactive;
195 _actionURLRedirect = actionURLRedirect;
196 _restoreCurrentView = restoreCurrentView;
197 _maximizeEdit = maximizeEdit;
198 _maximizeHelp = maximizeHelp;
199 _popUpPrint = popUpPrint;
200 _layoutCacheable = layoutCacheable;
201 _instanceable = instanceable;
202 _userPrincipalStrategy = userPrincipalStrategy;
203 _privateRequestAttributes = privateRequestAttributes;
204 _privateSessionAttributes = privateSessionAttributes;
205 _renderWeight = renderWeight;
206 _ajaxable = ajaxable;
207 _headerPortalCss = headerPortalCss;
208 _headerPortletCss = headerPortletCss;
209 _headerPortalJavaScript = headerPortalJavaScript;
210 _headerPortletJavaScript = headerPortletJavaScript;
211 _footerPortalCss = footerPortalCss;
212 _footerPortletCss = footerPortletCss;
213 _footerPortalJavaScript = footerPortalJavaScript;
214 _footerPortletJavaScript = footerPortletJavaScript;
215 _cssClassWrapper = cssClassWrapper;
216 _facebookIntegration = facebookIntegration;
217 _addDefaultResource = addDefaultResource;
218 setRoles(roles);
219 _unlinkedRoles = unlinkedRoles;
220 _roleMappers = roleMappers;
221 _system = system;
222 setActive(active);
223 _include = include;
224 _initParams = initParams;
225 _expCache = expCache;
226 _portletModes = portletModes;
227 _windowStates = windowStates;
228 _supportedLocales = supportedLocales;
229 _resourceBundle = resourceBundle;
230 _portletInfo = portletInfo;
231 _portletFilters = portletFilters;
232 setProcessingEvents(processingEvents);
233 setPublishingEvents(publishingEvents);
234 setPublicRenderParameters(publicRenderParameters);
235 _portletApp = portletApp;
236
237 if (_instanceable) {
238 _clonedInstances = new Hashtable<String, Portlet>();
239 }
240 }
241
242
247 public String getRootPortletId() {
248 return PortletConstants.getRootPortletId(getPortletId());
249 }
250
251
256 public String getInstanceId() {
257 return PortletConstants.getInstanceId(getPortletId());
258 }
259
260
265 public String getPluginId() {
266 return getRootPortletId();
267 }
268
269
274 public String getPluginType() {
275 return Plugin.TYPE_PORTLET;
276 }
277
278
283 public PluginPackage getPluginPackage() {
284 return _pluginPackage;
285 }
286
287
292 public void setPluginPackage(PluginPackage pluginPackage) {
293 _pluginPackage = pluginPackage;
294 }
295
296
301 public PluginSetting getDefaultPluginSetting() {
302 return _defaultPluginSetting;
303 }
304
305
310 public void setDefaultPluginSetting(PluginSetting pluginSetting) {
311 _defaultPluginSetting = pluginSetting;
312 }
313
314
319 public long getTimestamp() {
320 return _timestamp;
321 }
322
323
328 public void setTimestamp(long timestamp) {
329 _timestamp = timestamp;
330 }
331
332
337 public String getIcon() {
338 return _icon;
339 }
340
341
346 public void setIcon(String icon) {
347 _icon = icon;
348 }
349
350
355 public String getVirtualPath() {
356 return _virtualPath;
357 }
358
359
364 public void setVirtualPath(String virtualPath) {
365 if (_portletApp.isWARFile() && Validator.isNull(virtualPath)) {
366 virtualPath = PropsValues.PORTLET_VIRTUAL_PATH;
367 }
368
369 _virtualPath = virtualPath;
370 }
371
372
377 public String getStrutsPath() {
378 return _strutsPath;
379 }
380
381
386 public void setStrutsPath(String strutsPath) {
387 _strutsPath = strutsPath;
388 }
389
390
395 public String getPortletName() {
396 return _portletName;
397 }
398
399
404 public void setPortletName(String portletName) {
405 _portletName = portletName;
406 }
407
408
413 public String getDisplayName() {
414 return _displayName;
415 }
416
417
422 public void setDisplayName(String displayName) {
423 _displayName = displayName;
424 }
425
426
431 public String getPortletClass() {
432 return _portletClass;
433 }
434
435
440 public void setPortletClass(String portletClass) {
441 _portletClass = portletClass;
442 }
443
444
449 public String getConfigurationActionClass() {
450 return _configurationActionClass;
451 }
452
453
459 public void setConfigurationActionClass(String configurationActionClass) {
460 _configurationActionClass = configurationActionClass;
461 }
462
463
468 public ConfigurationAction getConfigurationActionInstance() {
469 if (Validator.isNotNull(getConfigurationActionClass())) {
470 if (_portletApp.isWARFile()) {
471 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
472
473 return portletBag.getConfigurationActionInstance();
474 }
475 else {
476 return (ConfigurationAction)InstancePool.get(
477 getConfigurationActionClass());
478 }
479 }
480
481 return null;
482 }
483
484
489 public String getIndexerClass() {
490 return _indexerClass;
491 }
492
493
498 public void setIndexerClass(String indexerClass) {
499 _indexerClass = indexerClass;
500 }
501
502
507 public Indexer getIndexerInstance() {
508 if (Validator.isNotNull(getIndexerClass())) {
509 if (_portletApp.isWARFile()) {
510 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
511
512 return portletBag.getIndexerInstance();
513 }
514 else {
515 return (Indexer)InstancePool.get(getIndexerClass());
516 }
517 }
518
519 return null;
520 }
521
522
527 public String getOpenSearchClass() {
528 return _openSearchClass;
529 }
530
531
537 public void setOpenSearchClass(String openSearchClass) {
538 _openSearchClass = openSearchClass;
539 }
540
541
546 public OpenSearch getOpenSearchInstance() {
547 if (Validator.isNull(getOpenSearchClass())) {
548 return null;
549 }
550
551 if (_portletApp.isWARFile()) {
552 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
553
554 return portletBag.getOpenSearchInstance();
555 }
556
557 return (OpenSearch)InstancePool.get(getOpenSearchClass());
558 }
559
560
565 public String getSchedulerClass() {
566 return _schedulerClass;
567 }
568
569
575 public void setSchedulerClass(String schedulerClass) {
576 _schedulerClass = schedulerClass;
577 }
578
579
584 public Scheduler getSchedulerInstance() {
585 if (Validator.isNotNull(getSchedulerClass())) {
586 if (_portletApp.isWARFile()) {
587 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
588
589 return portletBag.getSchedulerInstance();
590 }
591 else {
592 return (Scheduler)InstancePool.get(getSchedulerClass());
593 }
594 }
595
596 return null;
597 }
598
599
604 public String getPortletURLClass() {
605 return _portletURLClass;
606 }
607
608
614 public void setPortletURLClass(String portletURLClass) {
615 _portletURLClass = portletURLClass;
616 }
617
618
623 public String getFriendlyURLMapperClass() {
624 return _friendlyURLMapperClass;
625 }
626
627
633 public void setFriendlyURLMapperClass(String friendlyURLMapperClass) {
634 _friendlyURLMapperClass = friendlyURLMapperClass;
635 }
636
637
642 public FriendlyURLMapper getFriendlyURLMapperInstance() {
643 if (Validator.isNotNull(getFriendlyURLMapperClass())) {
644 if (_portletApp.isWARFile()) {
645 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
646
647 return portletBag.getFriendlyURLMapperInstance();
648 }
649 else {
650 return (FriendlyURLMapper)InstancePool.get(
651 getFriendlyURLMapperClass());
652 }
653 }
654
655 return null;
656 }
657
658
663 public String getURLEncoderClass() {
664 return _urlEncoderClass;
665 }
666
667
673 public void setURLEncoderClass(String urlEncoderClass) {
674 _urlEncoderClass = urlEncoderClass;
675 }
676
677
682 public URLEncoder getURLEncoderInstance() {
683 if (Validator.isNotNull(getURLEncoderClass())) {
684 if (_portletApp.isWARFile()) {
685 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
686
687 return portletBag.getURLEncoderInstance();
688 }
689 else {
690 return (URLEncoder)InstancePool.get(getURLEncoderClass());
691 }
692 }
693
694 return null;
695 }
696
697
702 public String getPortletDataHandlerClass() {
703 return _portletDataHandlerClass;
704 }
705
706
712 public void setPortletDataHandlerClass(String portletDataHandlerClass) {
713 _portletDataHandlerClass = portletDataHandlerClass;
714 }
715
716
721 public PortletDataHandler getPortletDataHandlerInstance() {
722 if (Validator.isNotNull(getPortletDataHandlerClass())) {
723 if (_portletApp.isWARFile()) {
724 PortletBagImpl portletBagImpl =
725 (PortletBagImpl)PortletBagPool.get(getRootPortletId());
726
727 return portletBagImpl.getPortletDataHandlerInstance();
728 }
729 else {
730 return (PortletDataHandler)InstancePool.get(
731 getPortletDataHandlerClass());
732 }
733 }
734
735 return null;
736 }
737
738
743 public PortletLayoutListener getPortletLayoutListener() {
744 if (Validator.isNull(getPortletLayoutListenerClass())) {
745 return null;
746 }
747
748 return (PortletLayoutListener)InstancePool.get(
749 getPortletLayoutListenerClass());
750 }
751
752
757 public String getPortletLayoutListenerClass() {
758 return _portletLayoutListenerClass;
759 }
760
761
767 public void setPortletLayoutListenerClass(
768 String portletLayoutListenerClass) {
769
770 _portletLayoutListenerClass = portletLayoutListenerClass;
771 }
772
773
778 public PortletLayoutListener getPortletLayoutListenerInstance() {
779 if (Validator.isNull(getPortletLayoutListenerClass())) {
780 return null;
781 }
782
783 if (_portletApp.isWARFile()) {
784 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
785
786 return portletBag.getPortletLayoutListenerInstance();
787 }
788
789 return (PortletLayoutListener)InstancePool.get(
790 getPortletLayoutListenerClass());
791 }
792
793
798 public String getPollerProcessorClass() {
799 return _pollerProcessorClass;
800 }
801
802
808 public void setPollerProcessorClass(String pollerProcessorClass) {
809 _pollerProcessorClass = pollerProcessorClass;
810 }
811
812
817 public PollerProcessor getPollerProcessorInstance() {
818 if (Validator.isNull(getPollerProcessorClass())) {
819 return null;
820 }
821
822 if (_portletApp.isWARFile()) {
823 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
824
825 return portletBag.getPollerProcessorInstance();
826 }
827
828 return (PollerProcessor)InstancePool.get(getPollerProcessorClass());
829 }
830
831
836 public String getPopMessageListenerClass() {
837 return _popMessageListenerClass;
838 }
839
840
846 public void setPopMessageListenerClass(String popMessageListenerClass) {
847 _popMessageListenerClass = popMessageListenerClass;
848 }
849
850
855 public MessageListener getPopMessageListenerInstance() {
856 if (Validator.isNotNull(getPopMessageListenerClass())) {
857 if (_portletApp.isWARFile()) {
858 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
859
860 return portletBag.getPopMessageListenerInstance();
861 }
862 else {
863 return (MessageListener)InstancePool.get(
864 getPopMessageListenerClass());
865 }
866 }
867
868 return null;
869 }
870
871
877 public String getSocialActivityInterpreterClass() {
878 return _socialActivityInterpreterClass;
879 }
880
881
887 public void setSocialActivityInterpreterClass(
888 String socialActivityInterpreterClass) {
889
890 _socialActivityInterpreterClass = socialActivityInterpreterClass;
891 }
892
893
899 public SocialActivityInterpreter getSocialActivityInterpreterInstance() {
900 if (Validator.isNotNull(getSocialActivityInterpreterClass())) {
901 if (_portletApp.isWARFile()) {
902 PortletBagImpl portletBagImpl =
903 (PortletBagImpl)PortletBagPool.get(getRootPortletId());
904
905 return portletBagImpl.getSocialActivityInterpreterInstance();
906 }
907 else {
908 return (SocialActivityInterpreter)InstancePool.get(
909 getSocialActivityInterpreterClass());
910 }
911 }
912
913 return null;
914 }
915
916
922 public String getSocialRequestInterpreterClass() {
923 return _socialRequestInterpreterClass;
924 }
925
926
932 public void setSocialRequestInterpreterClass(
933 String socialRequestInterpreterClass) {
934
935 _socialRequestInterpreterClass = socialRequestInterpreterClass;
936 }
937
938
944 public SocialRequestInterpreter getSocialRequestInterpreterInstance() {
945 if (Validator.isNotNull(getSocialRequestInterpreterClass())) {
946 if (_portletApp.isWARFile()) {
947 PortletBagImpl portletBag =
948 (PortletBagImpl)PortletBagPool.get(getRootPortletId());
949
950 return portletBag.getSocialRequestInterpreterInstance();
951 }
952 else {
953 return (SocialRequestInterpreter)InstancePool.get(
954 getSocialRequestInterpreterClass());
955 }
956 }
957
958 return null;
959 }
960
961
966 public String getDefaultPreferences() {
967 if (Validator.isNull(_defaultPreferences)) {
968 return PortletConstants.DEFAULT_PREFERENCES;
969 }
970 else {
971 return _defaultPreferences;
972 }
973 }
974
975
980 public void setDefaultPreferences(String defaultPreferences) {
981 _defaultPreferences = defaultPreferences;
982 }
983
984
989 public String getPreferencesValidator() {
990 return _prefsValidator;
991 }
992
993
999 public void setPreferencesValidator(String prefsValidator) {
1000 if (prefsValidator != null) {
1001
1002
1005 _prefsValidator = prefsValidator.trim();
1006 }
1007 else {
1008 _prefsValidator = null;
1009 }
1010 }
1011
1012
1017 public boolean getPreferencesCompanyWide() {
1018 return _prefsCompanyWide;
1019 }
1020
1021
1026 public boolean isPreferencesCompanyWide() {
1027 return _prefsCompanyWide;
1028 }
1029
1030
1036 public void setPreferencesCompanyWide(boolean prefsCompanyWide) {
1037 _prefsCompanyWide = prefsCompanyWide;
1038 }
1039
1040
1045 public boolean getPreferencesUniquePerLayout() {
1046 return _prefsUniquePerLayout;
1047 }
1048
1049
1054 public boolean isPreferencesUniquePerLayout() {
1055 return _prefsUniquePerLayout;
1056 }
1057
1058
1064 public void setPreferencesUniquePerLayout(boolean prefsUniquePerLayout) {
1065 _prefsUniquePerLayout = prefsUniquePerLayout;
1066 }
1067
1068
1077 public boolean getPreferencesOwnedByGroup() {
1078 return _prefsOwnedByGroup;
1079 }
1080
1081
1090 public boolean isPreferencesOwnedByGroup() {
1091 return _prefsOwnedByGroup;
1092 }
1093
1094
1103 public void setPreferencesOwnedByGroup(boolean prefsOwnedByGroup) {
1104 _prefsOwnedByGroup = prefsOwnedByGroup;
1105 }
1106
1107
1112 public boolean getUseDefaultTemplate() {
1113 return _useDefaultTemplate;
1114 }
1115
1116
1121 public boolean isUseDefaultTemplate() {
1122 return _useDefaultTemplate;
1123 }
1124
1125
1131 public void setUseDefaultTemplate(boolean useDefaultTemplate) {
1132 _useDefaultTemplate = useDefaultTemplate;
1133 }
1134
1135
1142 public boolean getShowPortletAccessDenied() {
1143 return _showPortletAccessDenied;
1144 }
1145
1146
1153 public boolean isShowPortletAccessDenied() {
1154 return _showPortletAccessDenied;
1155 }
1156
1157
1164 public void setShowPortletAccessDenied(boolean showPortletAccessDenied) {
1165 _showPortletAccessDenied = showPortletAccessDenied;
1166 }
1167
1168
1173 public boolean getShowPortletInactive() {
1174 return _showPortletInactive;
1175 }
1176
1177
1182 public boolean isShowPortletInactive() {
1183 return _showPortletInactive;
1184 }
1185
1186
1192 public void setShowPortletInactive(boolean showPortletInactive) {
1193 _showPortletInactive = showPortletInactive;
1194 }
1195
1196
1203 public boolean getActionURLRedirect() {
1204 return _actionURLRedirect;
1205 }
1206
1207
1214 public boolean isActionURLRedirect() {
1215 return _actionURLRedirect;
1216 }
1217
1218
1225 public void setActionURLRedirect(boolean actionURLRedirect) {
1226 _actionURLRedirect = actionURLRedirect;
1227 }
1228
1229
1236 public boolean getRestoreCurrentView() {
1237 return _restoreCurrentView;
1238 }
1239
1240
1247 public boolean isRestoreCurrentView() {
1248 return _restoreCurrentView;
1249 }
1250
1251
1258 public void setRestoreCurrentView(boolean restoreCurrentView) {
1259 _restoreCurrentView = restoreCurrentView;
1260 }
1261
1262
1269 public boolean getMaximizeEdit() {
1270 return _maximizeEdit;
1271 }
1272
1273
1280 public boolean isMaximizeEdit() {
1281 return _maximizeEdit;
1282 }
1283
1284
1291 public void setMaximizeEdit(boolean maximizeEdit) {
1292 _maximizeEdit = maximizeEdit;
1293 }
1294
1295
1302 public boolean getMaximizeHelp() {
1303 return _maximizeHelp;
1304 }
1305
1306
1313 public boolean isMaximizeHelp() {
1314 return _maximizeHelp;
1315 }
1316
1317
1324 public void setMaximizeHelp(boolean maximizeHelp) {
1325 _maximizeHelp = maximizeHelp;
1326 }
1327
1328
1335 public boolean getPopUpPrint() {
1336 return _popUpPrint;
1337 }
1338
1339
1346 public boolean isPopUpPrint() {
1347 return _popUpPrint;
1348 }
1349
1350
1357 public void setPopUpPrint(boolean popUpPrint) {
1358 _popUpPrint = popUpPrint;
1359 }
1360
1361
1366 public boolean getLayoutCacheable() {
1367 return _layoutCacheable;
1368 }
1369
1370
1375 public boolean isLayoutCacheable() {
1376 return _layoutCacheable;
1377 }
1378
1379
1385 public void setLayoutCacheable(boolean layoutCacheable) {
1386 _layoutCacheable = layoutCacheable;
1387 }
1388
1389
1394 public boolean getInstanceable() {
1395 return _instanceable;
1396 }
1397
1398
1403 public boolean isInstanceable() {
1404 return _instanceable;
1405 }
1406
1407
1413 public void setInstanceable(boolean instanceable) {
1414 _instanceable = instanceable;
1415 }
1416
1417
1422 public String getUserPrincipalStrategy() {
1423 return _userPrincipalStrategy;
1424 }
1425
1426
1432 public void setUserPrincipalStrategy(String userPrincipalStrategy) {
1433 if (Validator.isNotNull(userPrincipalStrategy)) {
1434 _userPrincipalStrategy = userPrincipalStrategy;
1435 }
1436 }
1437
1438
1445 public boolean getPrivateRequestAttributes() {
1446 return _privateRequestAttributes;
1447 }
1448
1449
1456 public boolean isPrivateRequestAttributes() {
1457 return _privateRequestAttributes;
1458 }
1459
1460
1468 public void setPrivateRequestAttributes(boolean privateRequestAttributes) {
1469 _privateRequestAttributes = privateRequestAttributes;
1470 }
1471
1472
1479 public boolean getPrivateSessionAttributes() {
1480 return _privateSessionAttributes;
1481 }
1482
1483
1490 public boolean isPrivateSessionAttributes() {
1491 return _privateSessionAttributes;
1492 }
1493
1494
1501 public void setPrivateSessionAttributes(boolean privateSessionAttributes) {
1502 _privateSessionAttributes = privateSessionAttributes;
1503 }
1504
1505
1510 public int getRenderWeight() {
1511 return _renderWeight;
1512 }
1513
1514
1519 public void setRenderWeight(int renderWeight) {
1520 _renderWeight = renderWeight;
1521 }
1522
1523
1528 public boolean getAjaxable() {
1529 return _ajaxable;
1530 }
1531
1532
1537 public boolean isAjaxable() {
1538 return _ajaxable;
1539 }
1540
1541
1547 public void setAjaxable(boolean ajaxable) {
1548 _ajaxable = ajaxable;
1549 }
1550
1551
1558 public List<String> getHeaderPortalCss() {
1559 return _headerPortalCss;
1560 }
1561
1562
1569 public void setHeaderPortalCss(List<String> headerPortalCss) {
1570 _headerPortalCss = headerPortalCss;
1571 }
1572
1573
1580 public List<String> getHeaderPortletCss() {
1581 return _headerPortletCss;
1582 }
1583
1584
1592 public void setHeaderPortletCss(List<String> headerPortletCss) {
1593 _headerPortletCss = headerPortletCss;
1594 }
1595
1596
1603 public List<String> getHeaderPortalJavaScript() {
1604 return _headerPortalJavaScript;
1605 }
1606
1607
1615 public void setHeaderPortalJavaScript(List<String> headerPortalJavaScript) {
1616 _headerPortalJavaScript = headerPortalJavaScript;
1617 }
1618
1619
1626 public List<String> getHeaderPortletJavaScript() {
1627 return _headerPortletJavaScript;
1628 }
1629
1630
1638 public void setHeaderPortletJavaScript(
1639 List<String> headerPortletJavaScript) {
1640
1641 _headerPortletJavaScript = headerPortletJavaScript;
1642 }
1643
1644
1651 public List<String> getFooterPortalCss() {
1652 return _footerPortalCss;
1653 }
1654
1655
1662 public void setFooterPortalCss(List<String> footerPortalCss) {
1663 _footerPortalCss = footerPortalCss;
1664 }
1665
1666
1673 public List<String> getFooterPortletCss() {
1674 return _footerPortletCss;
1675 }
1676
1677
1685 public void setFooterPortletCss(List<String> footerPortletCss) {
1686 _footerPortletCss = footerPortletCss;
1687 }
1688
1689
1696 public List<String> getFooterPortalJavaScript() {
1697 return _footerPortalJavaScript;
1698 }
1699
1700
1708 public void setFooterPortalJavaScript(List<String> footerPortalJavaScript) {
1709 _footerPortalJavaScript = footerPortalJavaScript;
1710 }
1711
1712
1719 public List<String> getFooterPortletJavaScript() {
1720 return _footerPortletJavaScript;
1721 }
1722
1723
1731 public void setFooterPortletJavaScript(
1732 List<String> footerPortletJavaScript) {
1733
1734 _footerPortletJavaScript = footerPortletJavaScript;
1735 }
1736
1737
1744 public String getCssClassWrapper() {
1745 return _cssClassWrapper;
1746 }
1747
1748
1755 public void setCssClassWrapper(String cssClassWrapper) {
1756 _cssClassWrapper = cssClassWrapper;
1757 }
1758
1759
1764 public String getFacebookIntegration() {
1765 return _facebookIntegration;
1766 }
1767
1768
1774 public void setFacebookIntegration(String facebookIntegration) {
1775 if (Validator.isNotNull(facebookIntegration)) {
1776 _facebookIntegration = facebookIntegration;
1777 }
1778 }
1779
1780
1786 public boolean getAddDefaultResource() {
1787 return _addDefaultResource;
1788 }
1789
1790
1796 public boolean isAddDefaultResource() {
1797 return _addDefaultResource;
1798 }
1799
1800
1806 public void setAddDefaultResource(boolean addDefaultResource) {
1807 _addDefaultResource = addDefaultResource;
1808 }
1809
1810
1815 public void setRoles(String roles) {
1816 _rolesArray = StringUtil.split(roles);
1817
1818 super.setRoles(roles);
1819 }
1820
1821
1826 public String[] getRolesArray() {
1827 return _rolesArray;
1828 }
1829
1830
1835 public void setRolesArray(String[] rolesArray) {
1836 _rolesArray = rolesArray;
1837
1838 super.setRoles(StringUtil.merge(rolesArray));
1839 }
1840
1841
1846 public Set<String> getUnlinkedRoles() {
1847 return _unlinkedRoles;
1848 }
1849
1850
1855 public void setUnlinkedRoles(Set<String> unlinkedRoles) {
1856 _unlinkedRoles = unlinkedRoles;
1857 }
1858
1859
1864 public Map<String, String> getRoleMappers() {
1865 return _roleMappers;
1866 }
1867
1868
1873 public void setRoleMappers(Map<String, String> roleMappers) {
1874 _roleMappers = roleMappers;
1875 }
1876
1877
1881 public void linkRoles() {
1882 List<String> linkedRoles = new ArrayList<String>();
1883
1884 Iterator<String> itr = _unlinkedRoles.iterator();
1885
1886 while (itr.hasNext()) {
1887 String unlinkedRole = itr.next();
1888
1889 String roleLink = _roleMappers.get(unlinkedRole);
1890
1891 if (Validator.isNotNull(roleLink)) {
1892 if (_log.isDebugEnabled()) {
1893 _log.debug(
1894 "Linking role for portlet [" + getPortletId() +
1895 "] with role-name [" + unlinkedRole +
1896 "] to role-link [" + roleLink + "]");
1897 }
1898
1899 linkedRoles.add(roleLink);
1900 }
1901 else {
1902 _log.error(
1903 "Unable to link role for portlet [" + getPortletId() +
1904 "] with role-name [" + unlinkedRole +
1905 "] because role-link is null");
1906 }
1907 }
1908
1909 String[] array = linkedRoles.toArray(new String[linkedRoles.size()]);
1910
1911 Arrays.sort(array);
1912
1913 setRolesArray(array);
1914 }
1915
1916
1921 public boolean hasRoleWithName(String roleName) {
1922 if ((_rolesArray == null) || (_rolesArray.length == 0)) {
1923 return false;
1924 }
1925
1926 for (int i = 0; i < _rolesArray.length; i++) {
1927 if (_rolesArray[i].equalsIgnoreCase(roleName)) {
1928 return true;
1929 }
1930 }
1931
1932 return false;
1933 }
1934
1935
1942 public boolean hasAddPortletPermission(long userId) {
1943 try {
1944 if ((_rolesArray == null) || (_rolesArray.length == 0)) {
1945 return true;
1946 }
1947 else if (RoleLocalServiceUtil.hasUserRoles(
1948 userId, getCompanyId(), _rolesArray, true)) {
1949
1950 return true;
1951 }
1952 else if (RoleLocalServiceUtil.hasUserRole(
1953 userId, getCompanyId(), RoleConstants.ADMINISTRATOR,
1954 true)) {
1955
1956 return true;
1957 }
1958 else {
1959 User user = UserLocalServiceUtil.getUserById(userId);
1960
1961 if (user.isDefaultUser() &&
1962 hasRoleWithName(RoleConstants.GUEST)) {
1963
1964 return true;
1965 }
1966 }
1967 }
1968 catch (Exception e) {
1969 _log.error(e);
1970 }
1971
1972 return false;
1973 }
1974
1975
1982 public boolean getSystem() {
1983 return _system;
1984 }
1985
1986
1993 public boolean isSystem() {
1994 return _system;
1995 }
1996
1997
2004 public void setSystem(boolean system) {
2005 _system = system;
2006 }
2007
2008
2015 public boolean getInclude() {
2016 return _include;
2017 }
2018
2019
2026 public boolean isInclude() {
2027 return _include;
2028 }
2029
2030
2037 public void setInclude(boolean include) {
2038 _include = include;
2039 }
2040
2041
2046 public Map<String, String> getInitParams() {
2047 return _initParams;
2048 }
2049
2050
2055 public void setInitParams(Map<String, String> initParams) {
2056 _initParams = initParams;
2057 }
2058
2059
2064 public Integer getExpCache() {
2065 return _expCache;
2066 }
2067
2068
2073 public void setExpCache(Integer expCache) {
2074 _expCache = expCache;
2075 }
2076
2077
2082 public Map<String, Set<String>> getPortletModes() {
2083 return _portletModes;
2084 }
2085
2086
2091 public void setPortletModes(Map<String, Set<String>> portletModes) {
2092 _portletModes = portletModes;
2093 }
2094
2095
2102 public boolean hasPortletMode(String mimeType, PortletMode portletMode) {
2103 if (mimeType == null) {
2104 mimeType = ContentTypes.TEXT_HTML;
2105 }
2106
2107 Set<String> mimeTypePortletModes = _portletModes.get(mimeType);
2108
2109 if (mimeTypePortletModes == null) {
2110 return false;
2111 }
2112
2113 if (mimeTypePortletModes.contains(portletMode.toString())) {
2114 return true;
2115 }
2116 else {
2117 return false;
2118 }
2119 }
2120
2121
2126 public Set<String> getAllPortletModes() {
2127 Set<String> allPortletModes = new TreeSet<String>();
2128
2129 Iterator<Map.Entry <String, Set<String>>> itr1 =
2130 _portletModes.entrySet().iterator();
2131
2132 while (itr1.hasNext()) {
2133 Map.Entry<String, Set<String>> entry = itr1.next();
2134
2135 Set<String> mimeTypePortletModes = entry.getValue();
2136
2137 Iterator<String> itr2 = mimeTypePortletModes.iterator();
2138
2139 while (itr2.hasNext()) {
2140 String portletMode = itr2.next();
2141
2142 allPortletModes.add(portletMode);
2143 }
2144 }
2145
2146 return allPortletModes;
2147 }
2148
2149
2154 public boolean hasMultipleMimeTypes() {
2155 if (_portletModes.size() > 1) {
2156 return true;
2157 }
2158 else {
2159 return false;
2160 }
2161 }
2162
2163
2168 public Map<String, Set<String>> getWindowStates() {
2169 return _windowStates;
2170 }
2171
2172
2177 public void setWindowStates(Map<String, Set<String>> windowStates) {
2178 _windowStates = windowStates;
2179 }
2180
2181
2188 public boolean hasWindowState(String mimeType, WindowState windowState) {
2189 if (mimeType == null) {
2190 mimeType = ContentTypes.TEXT_HTML;
2191 }
2192
2193 Set<String> mimeTypeWindowStates = _windowStates.get(mimeType);
2194
2195 if (mimeTypeWindowStates == null) {
2196 return false;
2197 }
2198
2199 if (mimeTypeWindowStates.contains(windowState.toString())) {
2200 return true;
2201 }
2202 else {
2203 return false;
2204 }
2205 }
2206
2207
2212 public Set<String> getAllWindowStates() {
2213 Set<String> allWindowStates = new TreeSet<String>();
2214
2215 Iterator<Map.Entry <String, Set<String>>> itr1 =
2216 _windowStates.entrySet().iterator();
2217
2218 while (itr1.hasNext()) {
2219 Map.Entry<String, Set<String>> entry = itr1.next();
2220
2221 Set<String> mimeTypeWindowStates = entry.getValue();
2222
2223 Iterator<String> itr2 = mimeTypeWindowStates.iterator();
2224
2225 while (itr2.hasNext()) {
2226 String windowState = itr2.next();
2227
2228 allWindowStates.add(windowState);
2229 }
2230 }
2231
2232 return allWindowStates;
2233 }
2234
2235
2240 public Set<String> getSupportedLocales() {
2241 return _supportedLocales;
2242 }
2243
2244
2249 public void setSupportedLocales(Set<String> supportedLocales) {
2250 _supportedLocales = supportedLocales;
2251 }
2252
2253
2258 public String getResourceBundle() {
2259 return _resourceBundle;
2260 }
2261
2262
2267 public void setResourceBundle(String resourceBundle) {
2268 _resourceBundle = resourceBundle;
2269 }
2270
2271
2276 public PortletInfo getPortletInfo() {
2277 return _portletInfo;
2278 }
2279
2280
2285 public void setPortletInfo(PortletInfo portletInfo) {
2286 _portletInfo = portletInfo;
2287 }
2288
2289
2294 public Map<String, PortletFilter> getPortletFilters() {
2295 return _portletFilters;
2296 }
2297
2298
2303 public void setPortletFilters(Map<String, PortletFilter> portletFilters) {
2304 _portletFilters = portletFilters;
2305 }
2306
2307
2312 public void addProcessingEvent(QName processingEvent) {
2313 _processingEvents.add(processingEvent);
2314 _processingEventsByQName.put(
2315 QNameUtil.getKey(processingEvent), processingEvent);
2316 }
2317
2318
2325 public QName getProcessingEvent(String uri, String localPart) {
2326 return _processingEventsByQName.get(
2327 QNameUtil.getKey(uri, localPart));
2328 }
2329
2330
2335 public Set<QName> getProcessingEvents() {
2336 return _processingEvents;
2337 }
2338
2339
2345 public void setProcessingEvents(Set<QName> processingEvents) {
2346 for (QName processingEvent : processingEvents) {
2347 addProcessingEvent(processingEvent);
2348 }
2349 }
2350
2351
2356 public void addPublishingEvent(QName publishingEvent) {
2357 _publishingEvents.add(publishingEvent);
2358 }
2359
2360
2365 public Set<QName> getPublishingEvents() {
2366 return _publishingEvents;
2367 }
2368
2369
2375 public void setPublishingEvents(Set<QName> publishingEvents) {
2376 for (QName publishingEvent : publishingEvents) {
2377 addPublishingEvent(publishingEvent);
2378 }
2379 }
2380
2381
2386 public void addPublicRenderParameter(
2387 PublicRenderParameter publicRenderParameter) {
2388
2389 _publicRenderParameters.add(publicRenderParameter);
2390 _publicRenderParametersByIdentifier.put(
2391 publicRenderParameter.getIdentifier(), publicRenderParameter);
2392 _publicRenderParametersByQName.put(
2393 QNameUtil.getKey(publicRenderParameter.getQName()),
2394 publicRenderParameter);
2395 }
2396
2397
2402 public PublicRenderParameter getPublicRenderParameter(String identifier) {
2403 return _publicRenderParametersByIdentifier.get(identifier);
2404 }
2405
2406
2413 public PublicRenderParameter getPublicRenderParameter(
2414 String uri, String localPart) {
2415
2416 return _publicRenderParametersByQName.get(
2417 QNameUtil.getKey(uri, localPart));
2418 }
2419
2420
2425 public Set<PublicRenderParameter> getPublicRenderParameters() {
2426 return _publicRenderParameters;
2427 }
2428
2429
2435 public void setPublicRenderParameters(
2436 Set<PublicRenderParameter> publicRenderParameters) {
2437
2438 for (PublicRenderParameter publicRenderParameter :
2439 publicRenderParameters) {
2440
2441 addPublicRenderParameter(publicRenderParameter);
2442 }
2443 }
2444
2445
2450 public String getContextPath() {
2451 String virtualPath = getVirtualPath();
2452
2453 if (Validator.isNotNull(virtualPath)) {
2454 return virtualPath;
2455 }
2456
2457 if (_portletApp.isWARFile()) {
2458 StringBuilder sb = new StringBuilder();
2459
2460 sb.append(StringPool.SLASH);
2461 sb.append(_portletApp.getServletContextName());
2462
2463 return sb.toString();
2464 }
2465 else {
2466 return PortalUtil.getPathContext();
2467 }
2468 }
2469
2470
2475 public PortletApp getPortletApp() {
2476 return _portletApp;
2477 }
2478
2479
2484 public void setPortletApp(PortletApp portletApp) {
2485 _portletApp = portletApp;
2486 }
2487
2488
2494 public Portlet getClonedInstance(String portletId) {
2495 if (_clonedInstances == null) {
2496
2497
2499 return null;
2500 }
2501
2502 Portlet clonedInstance = _clonedInstances.get(portletId);
2503
2504 if (clonedInstance == null) {
2505 clonedInstance = (Portlet)clone();
2506
2507 clonedInstance.setPortletId(portletId);
2508
2509
2516 }
2518
2519 return clonedInstance;
2520 }
2521
2522
2528 public boolean getStatic() {
2529 return _staticPortlet;
2530 }
2531
2532
2538 public boolean isStatic() {
2539 return _staticPortlet;
2540 }
2541
2542
2548 public void setStatic(boolean staticPortlet) {
2549 _staticPortlet = staticPortlet;
2550 }
2551
2552
2559 public boolean getStaticStart() {
2560 return _staticPortletStart;
2561 }
2562
2563
2570 public boolean isStaticStart() {
2571 return _staticPortletStart;
2572 }
2573
2574
2581 public void setStaticStart(boolean staticPortletStart) {
2582 _staticPortletStart = staticPortletStart;
2583 }
2584
2585
2592 public boolean getStaticEnd() {
2593 return !_staticPortletStart;
2594 }
2595
2596
2603 public boolean isStaticEnd() {
2604 return !_staticPortletStart;
2605 }
2606
2607
2612 public Object clone() {
2613 Portlet portlet = new PortletImpl(
2614 getPortletId(), getPluginPackage(), getDefaultPluginSetting(),
2615 getCompanyId(), getTimestamp(), getIcon(), getVirtualPath(),
2616 getStrutsPath(), getPortletName(), getDisplayName(),
2617 getPortletClass(), getConfigurationActionClass(), getIndexerClass(),
2618 getOpenSearchClass(), getSchedulerClass(), getPortletURLClass(),
2619 getFriendlyURLMapperClass(), getURLEncoderClass(),
2620 getPortletDataHandlerClass(), getPortletLayoutListenerClass(),
2621 getPollerProcessorClass(), getPopMessageListenerClass(),
2622 getSocialActivityInterpreterClass(),
2623 getSocialRequestInterpreterClass(), getDefaultPreferences(),
2624 getPreferencesValidator(), isPreferencesCompanyWide(),
2625 isPreferencesUniquePerLayout(), isPreferencesOwnedByGroup(),
2626 isUseDefaultTemplate(), isShowPortletAccessDenied(),
2627 isShowPortletInactive(), isActionURLRedirect(),
2628 isRestoreCurrentView(), isMaximizeEdit(), isMaximizeHelp(),
2629 isPopUpPrint(), isLayoutCacheable(), isInstanceable(),
2630 getUserPrincipalStrategy(), isPrivateRequestAttributes(),
2631 isPrivateSessionAttributes(), getRenderWeight(), isAjaxable(),
2632 getHeaderPortalCss(), getHeaderPortletCss(),
2633 getHeaderPortalJavaScript(), getHeaderPortletJavaScript(),
2634 getFooterPortalCss(), getFooterPortletCss(),
2635 getFooterPortalJavaScript(), getFooterPortletJavaScript(),
2636 getCssClassWrapper(), getFacebookIntegration(),
2637 isAddDefaultResource(), getRoles(), getUnlinkedRoles(),
2638 getRoleMappers(), isSystem(), isActive(), isInclude(),
2639 getInitParams(), getExpCache(), getPortletModes(),
2640 getWindowStates(), getSupportedLocales(), getResourceBundle(),
2641 getPortletInfo(), getPortletFilters(), getProcessingEvents(),
2642 getPublishingEvents(), getPublicRenderParameters(),
2643 getPortletApp());
2644
2645 portlet.setId(getId());
2646
2647 return portlet;
2648 }
2649
2650
2659 public int compareTo(Portlet portlet) {
2660 return getPortletId().compareTo(portlet.getPortletId());
2661 }
2662
2663
2669 public boolean equals(Object obj) {
2670 Portlet portlet = (Portlet)obj;
2671
2672 return getPortletId().equals(portlet.getPortletId());
2673 }
2674
2675
2678 private static Log _log = LogFactoryUtil.getLog(PortletImpl.class);
2679
2680
2683 private PluginPackage _pluginPackage;
2684
2685
2688 private PluginSetting _defaultPluginSetting;
2689
2690
2693 private long _timestamp;
2694
2695
2698 private String _icon;
2699
2700
2703 private String _virtualPath;
2704
2705
2708 private String _strutsPath;
2709
2710
2713 private String _portletName;
2714
2715
2718 private String _displayName;
2719
2720
2723 private String _portletClass;
2724
2725
2728 private String _configurationActionClass;
2729
2730
2733 private String _indexerClass;
2734
2735
2738 private String _openSearchClass;
2739
2740
2743 private String _schedulerClass;
2744
2745
2748 private String _portletURLClass;
2749
2750
2753 private String _friendlyURLMapperClass;
2754
2755
2758 private String _urlEncoderClass;
2759
2760
2763 private String _portletDataHandlerClass;
2764
2765
2768 private String _portletLayoutListenerClass;
2769
2770
2773 private String _pollerProcessorClass;
2774
2775
2778 private String _popMessageListenerClass;
2779
2780
2783 private String _socialActivityInterpreterClass;
2784
2785
2788 private String _socialRequestInterpreterClass;
2789
2790
2793 private String _defaultPreferences;
2794
2795
2798 private String _prefsValidator;
2799
2800
2803 private boolean _prefsCompanyWide;
2804
2805
2808 private boolean _prefsUniquePerLayout = true;
2809
2810
2814 private boolean _prefsOwnedByGroup = true;
2815
2816
2819 private boolean _useDefaultTemplate = true;
2820
2821
2824 private boolean _showPortletAccessDenied =
2825 PropsValues.LAYOUT_SHOW_PORTLET_ACCESS_DENIED;
2826
2827
2830 private boolean _showPortletInactive =
2831 PropsValues.LAYOUT_SHOW_PORTLET_INACTIVE;
2832
2833
2836 private boolean _actionURLRedirect;
2837
2838
2842 private boolean _restoreCurrentView = true;
2843
2844
2848 private boolean _maximizeEdit;
2849
2850
2854 private boolean _maximizeHelp;
2855
2856
2860 private boolean _popUpPrint = true;
2861
2862
2865 private boolean _layoutCacheable;
2866
2867
2870 private boolean _instanceable;
2871
2872
2875 private String _userPrincipalStrategy =
2876 PortletConstants.USER_PRINCIPAL_STRATEGY_USER_ID;
2877
2878
2882 private boolean _privateRequestAttributes = true;
2883
2884
2887 private boolean _privateSessionAttributes = true;
2888
2889
2892 private int _renderWeight = 1;
2893
2894
2897 private boolean _ajaxable = true;
2898
2899
2903 private List<String> _headerPortalCss;
2904
2905
2909 private List<String> _headerPortletCss;
2910
2911
2915 private List<String> _headerPortalJavaScript;
2916
2917
2921 private List<String> _headerPortletJavaScript;
2922
2923
2927 private List<String> _footerPortalCss;
2928
2929
2933 private List<String> _footerPortletCss;
2934
2935
2939 private List<String> _footerPortalJavaScript;
2940
2941
2945 private List<String> _footerPortletJavaScript;
2946
2947
2951 private String _cssClassWrapper = StringPool.BLANK;
2952
2953
2956 private String _facebookIntegration =
2957 PortletConstants.FACEBOOK_INTEGRATION_IFRAME;
2958
2959
2962 private boolean _addDefaultResource;
2963
2964
2967 private String[] _rolesArray;
2968
2969
2972 private Set<String> _unlinkedRoles;
2973
2974
2977 private Map<String, String> _roleMappers;
2978
2979
2983 private boolean _system;
2984
2985
2988 private boolean _include = true;
2989
2990
2993 private Map<String, String> _initParams;
2994
2995
2998 private Integer _expCache;
2999
3000
3003 private Map<String, Set<String>> _portletModes;
3004
3005
3008 private Map<String, Set<String>> _windowStates;
3009
3010
3013 private Set<String> _supportedLocales;
3014
3015
3018 private String _resourceBundle;
3019
3020
3023 private PortletInfo _portletInfo;
3024
3025
3028 private Map<String, PortletFilter> _portletFilters;
3029
3030
3033 private Set<QName> _processingEvents = new HashSet<QName>();
3034
3035
3038 private Map<String, QName> _processingEventsByQName =
3039 new HashMap<String, QName>();
3040
3041
3044 private Set<QName> _publishingEvents = new HashSet<QName>();
3045
3046
3049 private Set<PublicRenderParameter> _publicRenderParameters =
3050 new HashSet<PublicRenderParameter>();
3051
3052
3056 private Map<String, PublicRenderParameter>
3057 _publicRenderParametersByIdentifier =
3058 new HashMap<String, PublicRenderParameter>();
3059
3060
3064 private Map<String, PublicRenderParameter>
3065 _publicRenderParametersByQName =
3066 new HashMap<String, PublicRenderParameter>();
3067
3068
3071 private PortletApp _portletApp;
3072
3073
3076 private Map<String, Portlet> _clonedInstances;
3077
3078
3081 private boolean _staticPortlet;
3082
3083
3087 private boolean _staticPortletStart;
3088
3089}