1
14
15 package com.liferay.portal.model.impl;
16
17 import com.liferay.portal.kernel.job.Scheduler;
18 import com.liferay.portal.kernel.log.Log;
19 import com.liferay.portal.kernel.log.LogFactoryUtil;
20 import com.liferay.portal.kernel.plugin.PluginPackage;
21 import com.liferay.portal.kernel.poller.PollerProcessor;
22 import com.liferay.portal.kernel.pop.MessageListener;
23 import com.liferay.portal.kernel.portlet.ConfigurationAction;
24 import com.liferay.portal.kernel.portlet.FriendlyURLMapper;
25 import com.liferay.portal.kernel.portlet.PortletBag;
26 import com.liferay.portal.kernel.portlet.PortletBagPool;
27 import com.liferay.portal.kernel.portlet.PortletLayoutListener;
28 import com.liferay.portal.kernel.search.Indexer;
29 import com.liferay.portal.kernel.search.OpenSearch;
30 import com.liferay.portal.kernel.servlet.URLEncoder;
31 import com.liferay.portal.kernel.util.ContentTypes;
32 import com.liferay.portal.kernel.util.InstancePool;
33 import com.liferay.portal.kernel.util.StringPool;
34 import com.liferay.portal.kernel.util.StringUtil;
35 import com.liferay.portal.kernel.util.Validator;
36 import com.liferay.portal.lar.PortletDataHandler;
37 import com.liferay.portal.model.Plugin;
38 import com.liferay.portal.model.PluginSetting;
39 import com.liferay.portal.model.Portlet;
40 import com.liferay.portal.model.PortletApp;
41 import com.liferay.portal.model.PortletConstants;
42 import com.liferay.portal.model.PortletFilter;
43 import com.liferay.portal.model.PortletInfo;
44 import com.liferay.portal.model.PublicRenderParameter;
45 import com.liferay.portal.model.RoleConstants;
46 import com.liferay.portal.model.User;
47 import com.liferay.portal.service.RoleLocalServiceUtil;
48 import com.liferay.portal.service.UserLocalServiceUtil;
49 import com.liferay.portal.util.PortalUtil;
50 import com.liferay.portal.util.PropsValues;
51 import com.liferay.portal.util.QNameUtil;
52 import com.liferay.portlet.PortletBagImpl;
53 import com.liferay.portlet.social.model.SocialActivityInterpreter;
54 import com.liferay.portlet.social.model.SocialRequestInterpreter;
55
56 import java.util.ArrayList;
57 import java.util.Arrays;
58 import java.util.HashMap;
59 import java.util.HashSet;
60 import java.util.Hashtable;
61 import java.util.Iterator;
62 import java.util.LinkedHashMap;
63 import java.util.List;
64 import java.util.Map;
65 import java.util.Set;
66 import java.util.TreeSet;
67
68 import javax.portlet.PortletMode;
69 import javax.portlet.WindowState;
70
71 import javax.xml.namespace.QName;
72
73
78 public class PortletImpl extends PortletModelImpl implements Portlet {
79
80
83 public PortletImpl() {
84 }
85
86
89 public PortletImpl(long companyId, String portletId) {
90 setCompanyId(companyId);
91 setPortletId(portletId);
92 setStrutsPath(portletId);
93 setActive(true);
94 _headerPortalCss = new ArrayList<String>();
95 _headerPortletCss = new ArrayList<String>();
96 _headerPortalJavaScript = new ArrayList<String>();
97 _headerPortletJavaScript = new ArrayList<String>();
98 _footerPortalCss = new ArrayList<String>();
99 _footerPortletCss = new ArrayList<String>();
100 _footerPortalJavaScript = new ArrayList<String>();
101 _footerPortletJavaScript = new ArrayList<String>();
102 _unlinkedRoles = new HashSet<String>();
103 _roleMappers = new LinkedHashMap<String, String>();
104 _initParams = new HashMap<String, String>();
105 _portletModes = new HashMap<String, Set<String>>();
106 _windowStates = new HashMap<String, Set<String>>();
107 _supportedLocales = new HashSet<String>();
108 _portletFilters = new LinkedHashMap<String, PortletFilter>();
109 _processingEvents = new HashSet<QName>();
110 _publishingEvents = new HashSet<QName>();
111 _publicRenderParameters = new HashSet<PublicRenderParameter>();
112 }
113
114
117 public PortletImpl(
118 String portletId, PluginPackage pluginPackage,
119 PluginSetting pluginSetting, long companyId, long timestamp,
120 String icon, String virtualPath, String strutsPath, String portletName,
121 String displayName, String portletClass,
122 String configurationActionClass, String indexerClass,
123 String openSearchClass, String schedulerClass, String portletURLClass,
124 String friendlyURLMapperClass, String urlEncoderClass,
125 String portletDataHandlerClass, String portletLayoutListenerClass,
126 String pollerProcessorClass, String popMessageListenerClass,
127 String socialActivityInterpreterClass,
128 String socialRequestInterpreterClass, String defaultPreferences,
129 String prefsValidator, boolean prefsCompanyWide,
130 boolean prefsUniquePerLayout, boolean prefsOwnedByGroup,
131 boolean useDefaultTemplate, boolean showPortletAccessDenied,
132 boolean showPortletInactive, boolean actionURLRedirect,
133 boolean restoreCurrentView, boolean maximizeEdit, boolean maximizeHelp,
134 boolean popUpPrint, boolean layoutCacheable, boolean instanceable,
135 String userPrincipalStrategy, boolean privateRequestAttributes,
136 boolean privateSessionAttributes, int renderWeight, boolean ajaxable,
137 List<String> headerPortalCss, List<String> headerPortletCss,
138 List<String> headerPortalJavaScript,
139 List<String> headerPortletJavaScript, List<String> footerPortalCss,
140 List<String> footerPortletCss, List<String> footerPortalJavaScript,
141 List<String> footerPortletJavaScript,
142 String cssClassWrapper, String facebookIntegration,
143 boolean addDefaultResource, String roles, Set<String> unlinkedRoles,
144 Map<String, String> roleMappers, boolean system, boolean active,
145 boolean include, Map<String, String> initParams, Integer expCache,
146 Map<String, Set<String>> portletModes,
147 Map<String, Set<String>> windowStates, Set<String> supportedLocales,
148 String resourceBundle, PortletInfo portletInfo,
149 Map<String, PortletFilter> portletFilters, Set<QName> processingEvents,
150 Set<QName> publishingEvents,
151 Set<PublicRenderParameter> publicRenderParameters,
152 PortletApp portletApp) {
153
154 setPortletId(portletId);
155 _pluginPackage = pluginPackage;
156 _defaultPluginSetting = pluginSetting;
157 setCompanyId(companyId);
158 _timestamp = timestamp;
159 _icon = icon;
160 _virtualPath = virtualPath;
161 _strutsPath = strutsPath;
162 _portletName = portletName;
163 _displayName = displayName;
164 _portletClass = portletClass;
165 _configurationActionClass = configurationActionClass;
166 _indexerClass = indexerClass;
167 _openSearchClass = openSearchClass;
168 _schedulerClass = schedulerClass;
169 _portletURLClass = portletURLClass;
170 _friendlyURLMapperClass = friendlyURLMapperClass;
171 _urlEncoderClass = urlEncoderClass;
172 _portletDataHandlerClass = portletDataHandlerClass;
173 _portletLayoutListenerClass = portletLayoutListenerClass;
174 _pollerProcessorClass = pollerProcessorClass;
175 _popMessageListenerClass = popMessageListenerClass;
176 _socialActivityInterpreterClass = socialActivityInterpreterClass;
177 _socialRequestInterpreterClass = socialRequestInterpreterClass;
178 _defaultPreferences = defaultPreferences;
179 _prefsValidator = prefsValidator;
180 _prefsCompanyWide = prefsCompanyWide;
181 _prefsUniquePerLayout = prefsUniquePerLayout;
182 _prefsOwnedByGroup = prefsOwnedByGroup;
183 _useDefaultTemplate = useDefaultTemplate;
184 _showPortletAccessDenied = showPortletAccessDenied;
185 _showPortletInactive = showPortletInactive;
186 _actionURLRedirect = actionURLRedirect;
187 _restoreCurrentView = restoreCurrentView;
188 _maximizeEdit = maximizeEdit;
189 _maximizeHelp = maximizeHelp;
190 _popUpPrint = popUpPrint;
191 _layoutCacheable = layoutCacheable;
192 _instanceable = instanceable;
193 _userPrincipalStrategy = userPrincipalStrategy;
194 _privateRequestAttributes = privateRequestAttributes;
195 _privateSessionAttributes = privateSessionAttributes;
196 _renderWeight = renderWeight;
197 _ajaxable = ajaxable;
198 _headerPortalCss = headerPortalCss;
199 _headerPortletCss = headerPortletCss;
200 _headerPortalJavaScript = headerPortalJavaScript;
201 _headerPortletJavaScript = headerPortletJavaScript;
202 _footerPortalCss = footerPortalCss;
203 _footerPortletCss = footerPortletCss;
204 _footerPortalJavaScript = footerPortalJavaScript;
205 _footerPortletJavaScript = footerPortletJavaScript;
206 _cssClassWrapper = cssClassWrapper;
207 _facebookIntegration = facebookIntegration;
208 _addDefaultResource = addDefaultResource;
209 setRoles(roles);
210 _unlinkedRoles = unlinkedRoles;
211 _roleMappers = roleMappers;
212 _system = system;
213 setActive(active);
214 _include = include;
215 _initParams = initParams;
216 _expCache = expCache;
217 _portletModes = portletModes;
218 _windowStates = windowStates;
219 _supportedLocales = supportedLocales;
220 _resourceBundle = resourceBundle;
221 _portletInfo = portletInfo;
222 _portletFilters = portletFilters;
223 setProcessingEvents(processingEvents);
224 setPublishingEvents(publishingEvents);
225 setPublicRenderParameters(publicRenderParameters);
226 _portletApp = portletApp;
227
228 if (_instanceable) {
229 _clonedInstances = new Hashtable<String, Portlet>();
230 }
231 }
232
233
238 public String getRootPortletId() {
239 return PortletConstants.getRootPortletId(getPortletId());
240 }
241
242
247 public String getInstanceId() {
248 return PortletConstants.getInstanceId(getPortletId());
249 }
250
251
256 public String getPluginId() {
257 return getRootPortletId();
258 }
259
260
265 public String getPluginType() {
266 return Plugin.TYPE_PORTLET;
267 }
268
269
274 public PluginPackage getPluginPackage() {
275 return _pluginPackage;
276 }
277
278
283 public void setPluginPackage(PluginPackage pluginPackage) {
284 _pluginPackage = pluginPackage;
285 }
286
287
292 public PluginSetting getDefaultPluginSetting() {
293 return _defaultPluginSetting;
294 }
295
296
301 public void setDefaultPluginSetting(PluginSetting pluginSetting) {
302 _defaultPluginSetting = pluginSetting;
303 }
304
305
310 public long getTimestamp() {
311 return _timestamp;
312 }
313
314
319 public void setTimestamp(long timestamp) {
320 _timestamp = timestamp;
321 }
322
323
328 public String getIcon() {
329 return _icon;
330 }
331
332
337 public void setIcon(String icon) {
338 _icon = icon;
339 }
340
341
346 public String getVirtualPath() {
347 return _virtualPath;
348 }
349
350
355 public void setVirtualPath(String virtualPath) {
356 if (_portletApp.isWARFile() && Validator.isNull(virtualPath)) {
357 virtualPath = PropsValues.PORTLET_VIRTUAL_PATH;
358 }
359
360 _virtualPath = virtualPath;
361 }
362
363
368 public String getStrutsPath() {
369 return _strutsPath;
370 }
371
372
377 public void setStrutsPath(String strutsPath) {
378 _strutsPath = strutsPath;
379 }
380
381
386 public String getPortletName() {
387 return _portletName;
388 }
389
390
395 public void setPortletName(String portletName) {
396 _portletName = portletName;
397 }
398
399
404 public String getDisplayName() {
405 return _displayName;
406 }
407
408
413 public void setDisplayName(String displayName) {
414 _displayName = displayName;
415 }
416
417
422 public String getPortletClass() {
423 return _portletClass;
424 }
425
426
431 public void setPortletClass(String portletClass) {
432 _portletClass = portletClass;
433 }
434
435
440 public String getConfigurationActionClass() {
441 return _configurationActionClass;
442 }
443
444
450 public void setConfigurationActionClass(String configurationActionClass) {
451 _configurationActionClass = configurationActionClass;
452 }
453
454
459 public ConfigurationAction getConfigurationActionInstance() {
460 if (Validator.isNotNull(getConfigurationActionClass())) {
461 if (_portletApp.isWARFile()) {
462 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
463
464 return portletBag.getConfigurationActionInstance();
465 }
466 else {
467 return (ConfigurationAction)InstancePool.get(
468 getConfigurationActionClass());
469 }
470 }
471
472 return null;
473 }
474
475
480 public String getIndexerClass() {
481 return _indexerClass;
482 }
483
484
489 public void setIndexerClass(String indexerClass) {
490 _indexerClass = indexerClass;
491 }
492
493
498 public Indexer getIndexerInstance() {
499 if (Validator.isNotNull(getIndexerClass())) {
500 if (_portletApp.isWARFile()) {
501 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
502
503 return portletBag.getIndexerInstance();
504 }
505 else {
506 return (Indexer)InstancePool.get(getIndexerClass());
507 }
508 }
509
510 return null;
511 }
512
513
518 public String getOpenSearchClass() {
519 return _openSearchClass;
520 }
521
522
527 public void setOpenSearchClass(String openSearchClass) {
528 _openSearchClass = openSearchClass;
529 }
530
531
536 public OpenSearch getOpenSearchInstance() {
537 if (Validator.isNull(getOpenSearchClass())) {
538 return null;
539 }
540
541 if (_portletApp.isWARFile()) {
542 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
543
544 return portletBag.getOpenSearchInstance();
545 }
546
547 return (OpenSearch)InstancePool.get(getOpenSearchClass());
548 }
549
550
555 public String getSchedulerClass() {
556 return _schedulerClass;
557 }
558
559
564 public void setSchedulerClass(String schedulerClass) {
565 _schedulerClass = schedulerClass;
566 }
567
568
573 public Scheduler getSchedulerInstance() {
574 if (Validator.isNotNull(getSchedulerClass())) {
575 if (_portletApp.isWARFile()) {
576 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
577
578 return portletBag.getSchedulerInstance();
579 }
580 else {
581 return (Scheduler)InstancePool.get(getSchedulerClass());
582 }
583 }
584
585 return null;
586 }
587
588
593 public String getPortletURLClass() {
594 return _portletURLClass;
595 }
596
597
602 public void setPortletURLClass(String portletURLClass) {
603 _portletURLClass = portletURLClass;
604 }
605
606
611 public String getFriendlyURLMapperClass() {
612 return _friendlyURLMapperClass;
613 }
614
615
621 public void setFriendlyURLMapperClass(String friendlyURLMapperClass) {
622 _friendlyURLMapperClass = friendlyURLMapperClass;
623 }
624
625
630 public FriendlyURLMapper getFriendlyURLMapperInstance() {
631 if (Validator.isNotNull(getFriendlyURLMapperClass())) {
632 if (_portletApp.isWARFile()) {
633 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
634
635 return portletBag.getFriendlyURLMapperInstance();
636 }
637 else {
638 return (FriendlyURLMapper)InstancePool.get(
639 getFriendlyURLMapperClass());
640 }
641 }
642
643 return null;
644 }
645
646
651 public String getURLEncoderClass() {
652 return _urlEncoderClass;
653 }
654
655
660 public void setURLEncoderClass(String urlEncoderClass) {
661 _urlEncoderClass = urlEncoderClass;
662 }
663
664
669 public URLEncoder getURLEncoderInstance() {
670 if (Validator.isNotNull(getURLEncoderClass())) {
671 if (_portletApp.isWARFile()) {
672 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
673
674 return portletBag.getURLEncoderInstance();
675 }
676 else {
677 return (URLEncoder)InstancePool.get(getURLEncoderClass());
678 }
679 }
680
681 return null;
682 }
683
684
689 public String getPortletDataHandlerClass() {
690 return _portletDataHandlerClass;
691 }
692
693
699 public void setPortletDataHandlerClass(String portletDataHandlerClass) {
700 _portletDataHandlerClass = portletDataHandlerClass;
701 }
702
703
708 public PortletDataHandler getPortletDataHandlerInstance() {
709 if (Validator.isNotNull(getPortletDataHandlerClass())) {
710 if (_portletApp.isWARFile()) {
711 PortletBagImpl portletBagImpl =
712 (PortletBagImpl)PortletBagPool.get(getRootPortletId());
713
714 return portletBagImpl.getPortletDataHandlerInstance();
715 }
716 else {
717 return (PortletDataHandler)InstancePool.get(
718 getPortletDataHandlerClass());
719 }
720 }
721
722 return null;
723 }
724
725
730 public PortletLayoutListener getPortletLayoutListener() {
731 if (Validator.isNull(getPortletLayoutListenerClass())) {
732 return null;
733 }
734
735 return (PortletLayoutListener)InstancePool.get(
736 getPortletLayoutListenerClass());
737 }
738
739
744 public String getPortletLayoutListenerClass() {
745 return _portletLayoutListenerClass;
746 }
747
748
754 public void setPortletLayoutListenerClass(
755 String portletLayoutListenerClass) {
756
757 _portletLayoutListenerClass = portletLayoutListenerClass;
758 }
759
760
765 public PortletLayoutListener getPortletLayoutListenerInstance() {
766 if (Validator.isNull(getPortletLayoutListenerClass())) {
767 return null;
768 }
769
770 if (_portletApp.isWARFile()) {
771 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
772
773 return portletBag.getPortletLayoutListenerInstance();
774 }
775
776 return (PortletLayoutListener)InstancePool.get(
777 getPortletLayoutListenerClass());
778 }
779
780
785 public String getPollerProcessorClass() {
786 return _pollerProcessorClass;
787 }
788
789
795 public void setPollerProcessorClass(String pollerProcessorClass) {
796 _pollerProcessorClass = pollerProcessorClass;
797 }
798
799
804 public PollerProcessor getPollerProcessorInstance() {
805 if (Validator.isNull(getPollerProcessorClass())) {
806 return null;
807 }
808
809 if (_portletApp.isWARFile()) {
810 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
811
812 return portletBag.getPollerProcessorInstance();
813 }
814
815 return (PollerProcessor)InstancePool.get(getPollerProcessorClass());
816 }
817
818
823 public String getPopMessageListenerClass() {
824 return _popMessageListenerClass;
825 }
826
827
833 public void setPopMessageListenerClass(String popMessageListenerClass) {
834 _popMessageListenerClass = popMessageListenerClass;
835 }
836
837
842 public MessageListener getPopMessageListenerInstance() {
843 if (Validator.isNotNull(getPopMessageListenerClass())) {
844 if (_portletApp.isWARFile()) {
845 PortletBag portletBag = PortletBagPool.get(getRootPortletId());
846
847 return portletBag.getPopMessageListenerInstance();
848 }
849 else {
850 return (MessageListener)InstancePool.get(
851 getPopMessageListenerClass());
852 }
853 }
854
855 return null;
856 }
857
858
864 public String getSocialActivityInterpreterClass() {
865 return _socialActivityInterpreterClass;
866 }
867
868
874 public void setSocialActivityInterpreterClass(
875 String socialActivityInterpreterClass) {
876
877 _socialActivityInterpreterClass = socialActivityInterpreterClass;
878 }
879
880
886 public SocialActivityInterpreter getSocialActivityInterpreterInstance() {
887 if (Validator.isNotNull(getSocialActivityInterpreterClass())) {
888 if (_portletApp.isWARFile()) {
889 PortletBagImpl portletBagImpl =
890 (PortletBagImpl)PortletBagPool.get(getRootPortletId());
891
892 return portletBagImpl.getSocialActivityInterpreterInstance();
893 }
894 else {
895 return (SocialActivityInterpreter)InstancePool.get(
896 getSocialActivityInterpreterClass());
897 }
898 }
899
900 return null;
901 }
902
903
909 public String getSocialRequestInterpreterClass() {
910 return _socialRequestInterpreterClass;
911 }
912
913
919 public void setSocialRequestInterpreterClass(
920 String socialRequestInterpreterClass) {
921
922 _socialRequestInterpreterClass = socialRequestInterpreterClass;
923 }
924
925
931 public SocialRequestInterpreter getSocialRequestInterpreterInstance() {
932 if (Validator.isNotNull(getSocialRequestInterpreterClass())) {
933 if (_portletApp.isWARFile()) {
934 PortletBagImpl portletBag =
935 (PortletBagImpl)PortletBagPool.get(getRootPortletId());
936
937 return portletBag.getSocialRequestInterpreterInstance();
938 }
939 else {
940 return (SocialRequestInterpreter)InstancePool.get(
941 getSocialRequestInterpreterClass());
942 }
943 }
944
945 return null;
946 }
947
948
953 public String getDefaultPreferences() {
954 if (Validator.isNull(_defaultPreferences)) {
955 return PortletConstants.DEFAULT_PREFERENCES;
956 }
957 else {
958 return _defaultPreferences;
959 }
960 }
961
962
967 public void setDefaultPreferences(String defaultPreferences) {
968 _defaultPreferences = defaultPreferences;
969 }
970
971
976 public String getPreferencesValidator() {
977 return _prefsValidator;
978 }
979
980
986 public void setPreferencesValidator(String prefsValidator) {
987 if (prefsValidator != null) {
988
989
992 _prefsValidator = prefsValidator.trim();
993 }
994 else {
995 _prefsValidator = null;
996 }
997 }
998
999
1004 public boolean getPreferencesCompanyWide() {
1005 return _prefsCompanyWide;
1006 }
1007
1008
1013 public boolean isPreferencesCompanyWide() {
1014 return _prefsCompanyWide;
1015 }
1016
1017
1023 public void setPreferencesCompanyWide(boolean prefsCompanyWide) {
1024 _prefsCompanyWide = prefsCompanyWide;
1025 }
1026
1027
1032 public boolean getPreferencesUniquePerLayout() {
1033 return _prefsUniquePerLayout;
1034 }
1035
1036
1041 public boolean isPreferencesUniquePerLayout() {
1042 return _prefsUniquePerLayout;
1043 }
1044
1045
1051 public void setPreferencesUniquePerLayout(boolean prefsUniquePerLayout) {
1052 _prefsUniquePerLayout = prefsUniquePerLayout;
1053 }
1054
1055
1064 public boolean getPreferencesOwnedByGroup() {
1065 return _prefsOwnedByGroup;
1066 }
1067
1068
1077 public boolean isPreferencesOwnedByGroup() {
1078 return _prefsOwnedByGroup;
1079 }
1080
1081
1090 public void setPreferencesOwnedByGroup(boolean prefsOwnedByGroup) {
1091 _prefsOwnedByGroup = prefsOwnedByGroup;
1092 }
1093
1094
1099 public boolean getUseDefaultTemplate() {
1100 return _useDefaultTemplate;
1101 }
1102
1103
1108 public boolean isUseDefaultTemplate() {
1109 return _useDefaultTemplate;
1110 }
1111
1112
1118 public void setUseDefaultTemplate(boolean useDefaultTemplate) {
1119 _useDefaultTemplate = useDefaultTemplate;
1120 }
1121
1122
1129 public boolean getShowPortletAccessDenied() {
1130 return _showPortletAccessDenied;
1131 }
1132
1133
1140 public boolean isShowPortletAccessDenied() {
1141 return _showPortletAccessDenied;
1142 }
1143
1144
1151 public void setShowPortletAccessDenied(boolean showPortletAccessDenied) {
1152 _showPortletAccessDenied = showPortletAccessDenied;
1153 }
1154
1155
1160 public boolean getShowPortletInactive() {
1161 return _showPortletInactive;
1162 }
1163
1164
1169 public boolean isShowPortletInactive() {
1170 return _showPortletInactive;
1171 }
1172
1173
1179 public void setShowPortletInactive(boolean showPortletInactive) {
1180 _showPortletInactive = showPortletInactive;
1181 }
1182
1183
1190 public boolean getActionURLRedirect() {
1191 return _actionURLRedirect;
1192 }
1193
1194
1201 public boolean isActionURLRedirect() {
1202 return _actionURLRedirect;
1203 }
1204
1205
1212 public void setActionURLRedirect(boolean actionURLRedirect) {
1213 _actionURLRedirect = actionURLRedirect;
1214 }
1215
1216
1223 public boolean getRestoreCurrentView() {
1224 return _restoreCurrentView;
1225 }
1226
1227
1234 public boolean isRestoreCurrentView() {
1235 return _restoreCurrentView;
1236 }
1237
1238
1245 public void setRestoreCurrentView(boolean restoreCurrentView) {
1246 _restoreCurrentView = restoreCurrentView;
1247 }
1248
1249
1256 public boolean getMaximizeEdit() {
1257 return _maximizeEdit;
1258 }
1259
1260
1267 public boolean isMaximizeEdit() {
1268 return _maximizeEdit;
1269 }
1270
1271
1278 public void setMaximizeEdit(boolean maximizeEdit) {
1279 _maximizeEdit = maximizeEdit;
1280 }
1281
1282
1289 public boolean getMaximizeHelp() {
1290 return _maximizeHelp;
1291 }
1292
1293
1300 public boolean isMaximizeHelp() {
1301 return _maximizeHelp;
1302 }
1303
1304
1311 public void setMaximizeHelp(boolean maximizeHelp) {
1312 _maximizeHelp = maximizeHelp;
1313 }
1314
1315
1322 public boolean getPopUpPrint() {
1323 return _popUpPrint;
1324 }
1325
1326
1333 public boolean isPopUpPrint() {
1334 return _popUpPrint;
1335 }
1336
1337
1344 public void setPopUpPrint(boolean popUpPrint) {
1345 _popUpPrint = popUpPrint;
1346 }
1347
1348
1353 public boolean getLayoutCacheable() {
1354 return _layoutCacheable;
1355 }
1356
1357
1362 public boolean isLayoutCacheable() {
1363 return _layoutCacheable;
1364 }
1365
1366
1372 public void setLayoutCacheable(boolean layoutCacheable) {
1373 _layoutCacheable = layoutCacheable;
1374 }
1375
1376
1381 public boolean getInstanceable() {
1382 return _instanceable;
1383 }
1384
1385
1390 public boolean isInstanceable() {
1391 return _instanceable;
1392 }
1393
1394
1400 public void setInstanceable(boolean instanceable) {
1401 _instanceable = instanceable;
1402 }
1403
1404
1409 public String getUserPrincipalStrategy() {
1410 return _userPrincipalStrategy;
1411 }
1412
1413
1418 public void setUserPrincipalStrategy(String userPrincipalStrategy) {
1419 if (Validator.isNotNull(userPrincipalStrategy)) {
1420 _userPrincipalStrategy = userPrincipalStrategy;
1421 }
1422 }
1423
1424
1431 public boolean getPrivateRequestAttributes() {
1432 return _privateRequestAttributes;
1433 }
1434
1435
1442 public boolean isPrivateRequestAttributes() {
1443 return _privateRequestAttributes;
1444 }
1445
1446
1454 public void setPrivateRequestAttributes(boolean privateRequestAttributes) {
1455 _privateRequestAttributes = privateRequestAttributes;
1456 }
1457
1458
1465 public boolean getPrivateSessionAttributes() {
1466 return _privateSessionAttributes;
1467 }
1468
1469
1476 public boolean isPrivateSessionAttributes() {
1477 return _privateSessionAttributes;
1478 }
1479
1480
1487 public void setPrivateSessionAttributes(boolean privateSessionAttributes) {
1488 _privateSessionAttributes = privateSessionAttributes;
1489 }
1490
1491
1496 public int getRenderWeight() {
1497 return _renderWeight;
1498 }
1499
1500
1505 public void setRenderWeight(int renderWeight) {
1506 _renderWeight = renderWeight;
1507 }
1508
1509
1514 public boolean getAjaxable() {
1515 return _ajaxable;
1516 }
1517
1518
1523 public boolean isAjaxable() {
1524 return _ajaxable;
1525 }
1526
1527
1533 public void setAjaxable(boolean ajaxable) {
1534 _ajaxable = ajaxable;
1535 }
1536
1537
1544 public List<String> getHeaderPortalCss() {
1545 return _headerPortalCss;
1546 }
1547
1548
1555 public void setHeaderPortalCss(List<String> headerPortalCss) {
1556 _headerPortalCss = headerPortalCss;
1557 }
1558
1559
1566 public List<String> getHeaderPortletCss() {
1567 return _headerPortletCss;
1568 }
1569
1570
1577 public void setHeaderPortletCss(List<String> headerPortletCss) {
1578 _headerPortletCss = headerPortletCss;
1579 }
1580
1581
1588 public List<String> getHeaderPortalJavaScript() {
1589 return _headerPortalJavaScript;
1590 }
1591
1592
1600 public void setHeaderPortalJavaScript(List<String> headerPortalJavaScript) {
1601 _headerPortalJavaScript = headerPortalJavaScript;
1602 }
1603
1604
1611 public List<String> getHeaderPortletJavaScript() {
1612 return _headerPortletJavaScript;
1613 }
1614
1615
1623 public void setHeaderPortletJavaScript(
1624 List<String> headerPortletJavaScript) {
1625
1626 _headerPortletJavaScript = headerPortletJavaScript;
1627 }
1628
1629
1636 public List<String> getFooterPortalCss() {
1637 return _footerPortalCss;
1638 }
1639
1640
1647 public void setFooterPortalCss(List<String> footerPortalCss) {
1648 _footerPortalCss = footerPortalCss;
1649 }
1650
1651
1658 public List<String> getFooterPortletCss() {
1659 return _footerPortletCss;
1660 }
1661
1662
1669 public void setFooterPortletCss(List<String> footerPortletCss) {
1670 _footerPortletCss = footerPortletCss;
1671 }
1672
1673
1680 public List<String> getFooterPortalJavaScript() {
1681 return _footerPortalJavaScript;
1682 }
1683
1684
1692 public void setFooterPortalJavaScript(List<String> footerPortalJavaScript) {
1693 _footerPortalJavaScript = footerPortalJavaScript;
1694 }
1695
1696
1703 public List<String> getFooterPortletJavaScript() {
1704 return _footerPortletJavaScript;
1705 }
1706
1707
1715 public void setFooterPortletJavaScript(
1716 List<String> footerPortletJavaScript) {
1717
1718 _footerPortletJavaScript = footerPortletJavaScript;
1719 }
1720
1721
1728 public String getCssClassWrapper() {
1729 return _cssClassWrapper;
1730 }
1731
1732
1739 public void setCssClassWrapper(String cssClassWrapper) {
1740 _cssClassWrapper = cssClassWrapper;
1741 }
1742
1743
1748 public String getFacebookIntegration() {
1749 return _facebookIntegration;
1750 }
1751
1752
1757 public void setFacebookIntegration(String facebookIntegration) {
1758 if (Validator.isNotNull(facebookIntegration)) {
1759 _facebookIntegration = facebookIntegration;
1760 }
1761 }
1762
1763
1769 public boolean getAddDefaultResource() {
1770 return _addDefaultResource;
1771 }
1772
1773
1779 public boolean isAddDefaultResource() {
1780 return _addDefaultResource;
1781 }
1782
1783
1789 public void setAddDefaultResource(boolean addDefaultResource) {
1790 _addDefaultResource = addDefaultResource;
1791 }
1792
1793
1798 public void setRoles(String roles) {
1799 _rolesArray = StringUtil.split(roles);
1800
1801 super.setRoles(roles);
1802 }
1803
1804
1809 public String[] getRolesArray() {
1810 return _rolesArray;
1811 }
1812
1813
1818 public void setRolesArray(String[] rolesArray) {
1819 _rolesArray = rolesArray;
1820
1821 super.setRoles(StringUtil.merge(rolesArray));
1822 }
1823
1824
1829 public Set<String> getUnlinkedRoles() {
1830 return _unlinkedRoles;
1831 }
1832
1833
1838 public void setUnlinkedRoles(Set<String> unlinkedRoles) {
1839 _unlinkedRoles = unlinkedRoles;
1840 }
1841
1842
1847 public Map<String, String> getRoleMappers() {
1848 return _roleMappers;
1849 }
1850
1851
1856 public void setRoleMappers(Map<String, String> roleMappers) {
1857 _roleMappers = roleMappers;
1858 }
1859
1860
1864 public void linkRoles() {
1865 List<String> linkedRoles = new ArrayList<String>();
1866
1867 Iterator<String> itr = _unlinkedRoles.iterator();
1868
1869 while (itr.hasNext()) {
1870 String unlinkedRole = itr.next();
1871
1872 String roleLink = _roleMappers.get(unlinkedRole);
1873
1874 if (Validator.isNotNull(roleLink)) {
1875 if (_log.isDebugEnabled()) {
1876 _log.debug(
1877 "Linking role for portlet [" + getPortletId() +
1878 "] with role-name [" + unlinkedRole +
1879 "] to role-link [" + roleLink + "]");
1880 }
1881
1882 linkedRoles.add(roleLink);
1883 }
1884 else {
1885 _log.error(
1886 "Unable to link role for portlet [" + getPortletId() +
1887 "] with role-name [" + unlinkedRole +
1888 "] because role-link is null");
1889 }
1890 }
1891
1892 String[] array = linkedRoles.toArray(new String[linkedRoles.size()]);
1893
1894 Arrays.sort(array);
1895
1896 setRolesArray(array);
1897 }
1898
1899
1904 public boolean hasRoleWithName(String roleName) {
1905 if ((_rolesArray == null) || (_rolesArray.length == 0)) {
1906 return false;
1907 }
1908
1909 for (int i = 0; i < _rolesArray.length; i++) {
1910 if (_rolesArray[i].equalsIgnoreCase(roleName)) {
1911 return true;
1912 }
1913 }
1914
1915 return false;
1916 }
1917
1918
1925 public boolean hasAddPortletPermission(long userId) {
1926 try {
1927 if ((_rolesArray == null) || (_rolesArray.length == 0)) {
1928 return true;
1929 }
1930 else if (RoleLocalServiceUtil.hasUserRoles(
1931 userId, getCompanyId(), _rolesArray, true)) {
1932
1933 return true;
1934 }
1935 else if (RoleLocalServiceUtil.hasUserRole(
1936 userId, getCompanyId(), RoleConstants.ADMINISTRATOR,
1937 true)) {
1938
1939 return true;
1940 }
1941 else {
1942 User user = UserLocalServiceUtil.getUserById(userId);
1943
1944 if (user.isDefaultUser() &&
1945 hasRoleWithName(RoleConstants.GUEST)) {
1946
1947 return true;
1948 }
1949 }
1950 }
1951 catch (Exception e) {
1952 _log.error(e);
1953 }
1954
1955 return false;
1956 }
1957
1958
1965 public boolean getSystem() {
1966 return _system;
1967 }
1968
1969
1976 public boolean isSystem() {
1977 return _system;
1978 }
1979
1980
1987 public void setSystem(boolean system) {
1988 _system = system;
1989 }
1990
1991
1998 public boolean getInclude() {
1999 return _include;
2000 }
2001
2002
2009 public boolean isInclude() {
2010 return _include;
2011 }
2012
2013
2020 public void setInclude(boolean include) {
2021 _include = include;
2022 }
2023
2024
2029 public Map<String, String> getInitParams() {
2030 return _initParams;
2031 }
2032
2033
2038 public void setInitParams(Map<String, String> initParams) {
2039 _initParams = initParams;
2040 }
2041
2042
2047 public Integer getExpCache() {
2048 return _expCache;
2049 }
2050
2051
2056 public void setExpCache(Integer expCache) {
2057 _expCache = expCache;
2058 }
2059
2060
2065 public Map<String, Set<String>> getPortletModes() {
2066 return _portletModes;
2067 }
2068
2069
2074 public void setPortletModes(Map<String, Set<String>> portletModes) {
2075 _portletModes = portletModes;
2076 }
2077
2078
2085 public boolean hasPortletMode(String mimeType, PortletMode portletMode) {
2086 if (mimeType == null) {
2087 mimeType = ContentTypes.TEXT_HTML;
2088 }
2089
2090 Set<String> mimeTypePortletModes = _portletModes.get(mimeType);
2091
2092 if (mimeTypePortletModes == null) {
2093 return false;
2094 }
2095
2096 if (mimeTypePortletModes.contains(portletMode.toString())) {
2097 return true;
2098 }
2099 else {
2100 return false;
2101 }
2102 }
2103
2104
2109 public Set<String> getAllPortletModes() {
2110 Set<String> allPortletModes = new TreeSet<String>();
2111
2112 Iterator<Map.Entry <String, Set<String>>> itr1 =
2113 _portletModes.entrySet().iterator();
2114
2115 while (itr1.hasNext()) {
2116 Map.Entry<String, Set<String>> entry = itr1.next();
2117
2118 Set<String> mimeTypePortletModes = entry.getValue();
2119
2120 Iterator<String> itr2 = mimeTypePortletModes.iterator();
2121
2122 while (itr2.hasNext()) {
2123 String portletMode = itr2.next();
2124
2125 allPortletModes.add(portletMode);
2126 }
2127 }
2128
2129 return allPortletModes;
2130 }
2131
2132
2137 public boolean hasMultipleMimeTypes() {
2138 if (_portletModes.size() > 1) {
2139 return true;
2140 }
2141 else {
2142 return false;
2143 }
2144 }
2145
2146
2151 public Map<String, Set<String>> getWindowStates() {
2152 return _windowStates;
2153 }
2154
2155
2160 public void setWindowStates(Map<String, Set<String>> windowStates) {
2161 _windowStates = windowStates;
2162 }
2163
2164
2171 public boolean hasWindowState(String mimeType, WindowState windowState) {
2172 if (mimeType == null) {
2173 mimeType = ContentTypes.TEXT_HTML;
2174 }
2175
2176 Set<String> mimeTypeWindowStates = _windowStates.get(mimeType);
2177
2178 if (mimeTypeWindowStates == null) {
2179 return false;
2180 }
2181
2182 if (mimeTypeWindowStates.contains(windowState.toString())) {
2183 return true;
2184 }
2185 else {
2186 return false;
2187 }
2188 }
2189
2190
2195 public Set<String> getAllWindowStates() {
2196 Set<String> allWindowStates = new TreeSet<String>();
2197
2198 Iterator<Map.Entry <String, Set<String>>> itr1 =
2199 _windowStates.entrySet().iterator();
2200
2201 while (itr1.hasNext()) {
2202 Map.Entry<String, Set<String>> entry = itr1.next();
2203
2204 Set<String> mimeTypeWindowStates = entry.getValue();
2205
2206 Iterator<String> itr2 = mimeTypeWindowStates.iterator();
2207
2208 while (itr2.hasNext()) {
2209 String windowState = itr2.next();
2210
2211 allWindowStates.add(windowState);
2212 }
2213 }
2214
2215 return allWindowStates;
2216 }
2217
2218
2223 public Set<String> getSupportedLocales() {
2224 return _supportedLocales;
2225 }
2226
2227
2232 public void setSupportedLocales(Set<String> supportedLocales) {
2233 _supportedLocales = supportedLocales;
2234 }
2235
2236
2241 public String getResourceBundle() {
2242 return _resourceBundle;
2243 }
2244
2245
2250 public void setResourceBundle(String resourceBundle) {
2251 _resourceBundle = resourceBundle;
2252 }
2253
2254
2259 public PortletInfo getPortletInfo() {
2260 return _portletInfo;
2261 }
2262
2263
2268 public void setPortletInfo(PortletInfo portletInfo) {
2269 _portletInfo = portletInfo;
2270 }
2271
2272
2277 public Map<String, PortletFilter> getPortletFilters() {
2278 return _portletFilters;
2279 }
2280
2281
2286 public void setPortletFilters(Map<String, PortletFilter> portletFilters) {
2287 _portletFilters = portletFilters;
2288 }
2289
2290
2293 public void addProcessingEvent(QName processingEvent) {
2294 _processingEvents.add(processingEvent);
2295 _processingEventsByQName.put(
2296 QNameUtil.getKey(processingEvent), processingEvent);
2297 }
2298
2299
2306 public QName getProcessingEvent(String uri, String localPart) {
2307 return _processingEventsByQName.get(
2308 QNameUtil.getKey(uri, localPart));
2309 }
2310
2311
2316 public Set<QName> getProcessingEvents() {
2317 return _processingEvents;
2318 }
2319
2320
2325 public void setProcessingEvents(Set<QName> processingEvents) {
2326 for (QName processingEvent : processingEvents) {
2327 addProcessingEvent(processingEvent);
2328 }
2329 }
2330
2331
2334 public void addPublishingEvent(QName publishingEvent) {
2335 _publishingEvents.add(publishingEvent);
2336 }
2337
2338
2343 public Set<QName> getPublishingEvents() {
2344 return _publishingEvents;
2345 }
2346
2347
2352 public void setPublishingEvents(Set<QName> publishingEvents) {
2353 for (QName publishingEvent : publishingEvents) {
2354 addPublishingEvent(publishingEvent);
2355 }
2356 }
2357
2358
2363 public void addPublicRenderParameter(
2364 PublicRenderParameter publicRenderParameter) {
2365
2366 _publicRenderParameters.add(publicRenderParameter);
2367 _publicRenderParametersByIdentifier.put(
2368 publicRenderParameter.getIdentifier(), publicRenderParameter);
2369 _publicRenderParametersByQName.put(
2370 QNameUtil.getKey(publicRenderParameter.getQName()),
2371 publicRenderParameter);
2372 }
2373
2374
2379 public PublicRenderParameter getPublicRenderParameter(String identifier) {
2380 return _publicRenderParametersByIdentifier.get(identifier);
2381 }
2382
2383
2390 public PublicRenderParameter getPublicRenderParameter(
2391 String uri, String localPart) {
2392
2393 return _publicRenderParametersByQName.get(
2394 QNameUtil.getKey(uri, localPart));
2395 }
2396
2397
2402 public Set<PublicRenderParameter> getPublicRenderParameters() {
2403 return _publicRenderParameters;
2404 }
2405
2406
2412 public void setPublicRenderParameters(
2413 Set<PublicRenderParameter> publicRenderParameters) {
2414
2415 for (PublicRenderParameter publicRenderParameter :
2416 publicRenderParameters) {
2417
2418 addPublicRenderParameter(publicRenderParameter);
2419 }
2420 }
2421
2422
2427 public String getContextPath() {
2428 String virtualPath = getVirtualPath();
2429
2430 if (Validator.isNotNull(virtualPath)) {
2431 return virtualPath;
2432 }
2433
2434 if (_portletApp.isWARFile()) {
2435 return StringPool.SLASH.concat(_portletApp.getServletContextName());
2436 }
2437 else {
2438 return PortalUtil.getPathContext();
2439 }
2440 }
2441
2442
2447 public PortletApp getPortletApp() {
2448 return _portletApp;
2449 }
2450
2451
2456 public void setPortletApp(PortletApp portletApp) {
2457 _portletApp = portletApp;
2458 }
2459
2460
2466 public Portlet getClonedInstance(String portletId) {
2467 if (_clonedInstances == null) {
2468
2469
2471 return null;
2472 }
2473
2474 Portlet clonedInstance = _clonedInstances.get(portletId);
2475
2476 if (clonedInstance == null) {
2477 clonedInstance = (Portlet)clone();
2478
2479 clonedInstance.setPortletId(portletId);
2480
2481
2488 }
2490
2491 return clonedInstance;
2492 }
2493
2494
2500 public boolean getStatic() {
2501 return _staticPortlet;
2502 }
2503
2504
2510 public boolean isStatic() {
2511 return _staticPortlet;
2512 }
2513
2514
2520 public void setStatic(boolean staticPortlet) {
2521 _staticPortlet = staticPortlet;
2522 }
2523
2524
2531 public boolean getStaticStart() {
2532 return _staticPortletStart;
2533 }
2534
2535
2542 public boolean isStaticStart() {
2543 return _staticPortletStart;
2544 }
2545
2546
2553 public void setStaticStart(boolean staticPortletStart) {
2554 _staticPortletStart = staticPortletStart;
2555 }
2556
2557
2564 public boolean getStaticEnd() {
2565 return !_staticPortletStart;
2566 }
2567
2568
2575 public boolean isStaticEnd() {
2576 return !_staticPortletStart;
2577 }
2578
2579
2584 public boolean getUndeployedPortlet() {
2585 return _undeployedPortlet;
2586 }
2587
2588
2593 public boolean isUndeployedPortlet() {
2594 return _undeployedPortlet;
2595 }
2596
2597
2603 public void setUndeployedPortlet(boolean undeployedPortlet) {
2604 _undeployedPortlet = undeployedPortlet;
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
3092 private boolean _undeployedPortlet = false;
3093
3094}