1   /**
2    * Copyright (c) 2000-2007 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.theme;
24  
25  import com.liferay.portal.kernel.log.Log;
26  import com.liferay.portal.kernel.log.LogFactoryUtil;
27  import com.liferay.portal.kernel.security.permission.PermissionChecker;
28  import com.liferay.portal.kernel.util.StringPool;
29  import com.liferay.portal.model.Account;
30  import com.liferay.portal.model.ColorScheme;
31  import com.liferay.portal.model.Company;
32  import com.liferay.portal.model.Contact;
33  import com.liferay.portal.model.Layout;
34  import com.liferay.portal.model.LayoutTypePortlet;
35  import com.liferay.portal.model.Theme;
36  import com.liferay.portal.model.User;
37  
38  import java.io.Serializable;
39  
40  import java.util.List;
41  import java.util.Locale;
42  import java.util.TimeZone;
43  
44  import javax.portlet.PortletURL;
45  
46  /**
47   * <a href="ThemeDisplay.java.html"><b><i>View Source</i></b></a>
48   *
49   * @author Brian Wing Shun Chan
50   *
51   */
52  public class ThemeDisplay implements Serializable {
53  
54      public ThemeDisplay() {
55          if (_log.isDebugEnabled()) {
56              _log.debug("Creating new instance " + hashCode());
57          }
58      }
59  
60      public Company getCompany() {
61          return _company;
62      }
63  
64      public void setCompany(Company company) {
65          _company = company;
66  
67          setAccount(company.getAccount());
68      }
69  
70      public long getCompanyId() {
71          return _company.getCompanyId();
72      }
73  
74      public String getCompanyLogo() {
75          return _companyLogo;
76      }
77  
78      public void setCompanyLogo(String companyLogo) {
79          _companyLogo = companyLogo;
80      }
81  
82      public int getCompanyLogoHeight() {
83          return _companyLogoHeight;
84      }
85  
86      public void setCompanyLogoHeight(int companyLogoHeight) {
87          _companyLogoHeight = companyLogoHeight;
88      }
89  
90      public int getCompanyLogoWidth() {
91          return _companyLogoWidth;
92      }
93  
94      public void setCompanyLogoWidth(int companyLogoWidth) {
95          _companyLogoWidth = companyLogoWidth;
96      }
97  
98      public String getRealCompanyLogo() {
99          return _realCompanyLogo;
100     }
101 
102     public void setRealCompanyLogo(String realCompanyLogo) {
103         _realCompanyLogo = realCompanyLogo;
104     }
105 
106     public int getRealCompanyLogoHeight() {
107         return _realCompanyLogoHeight;
108     }
109 
110     public void setRealCompanyLogoHeight(int realCompanyLogoHeight) {
111         _realCompanyLogoHeight = realCompanyLogoHeight;
112     }
113 
114     public int getRealCompanyLogoWidth() {
115         return _realCompanyLogoWidth;
116     }
117 
118     public void setRealCompanyLogoWidth(int realCompanyLogoWidth) {
119         _realCompanyLogoWidth = realCompanyLogoWidth;
120     }
121 
122     public Account getAccount() {
123         return _account;
124     }
125 
126     public void setAccount(Account account) {
127         _account = account;
128     }
129 
130     public User getDefaultUser() {
131         if (_defaultUser == null) {
132             _defaultUser = _company.getDefaultUser();
133         }
134 
135         return _defaultUser;
136     }
137 
138     public long getDefaultUserId() {
139         return getDefaultUser().getUserId();
140     }
141 
142     public User getUser() {
143         return _user;
144     }
145 
146     public void setUser(User user) {
147         _user = user;
148 
149         setContact(user.getContact());
150     }
151 
152     public long getUserId() {
153         return _user.getUserId();
154     }
155 
156     public User getRealUser() {
157         return _realUser;
158     }
159 
160     public void setRealUser(User realUser) {
161         _realUser = realUser;
162     }
163 
164     public long getRealUserId() {
165         return _realUser.getUserId();
166     }
167 
168     public String getDoAsUserId() {
169         return _doAsUserId;
170     }
171 
172     public void setDoAsUserId(String doAsUserId) {
173         _doAsUserId = doAsUserId;
174     }
175 
176     public boolean isImpersonated() {
177         if (getUserId() == getRealUserId()) {
178             return false;
179         }
180         else {
181             return true;
182         }
183     }
184 
185     public Contact getContact() {
186         return _contact;
187     }
188 
189     public void setContact(Contact contact) {
190         _contact = contact;
191     }
192 
193     public String getLayoutSetLogo() {
194         return _layoutSetLogo;
195     }
196 
197     public void setLayoutSetLogo(String layoutSetLogo) {
198         _layoutSetLogo = layoutSetLogo;
199     }
200 
201     public Layout getLayout() {
202         return _layout;
203     }
204 
205     public void setLayout(Layout layout) {
206         _layout = layout;
207     }
208 
209     public List getLayouts() {
210         return _layouts;
211     }
212 
213     public void setLayouts(List layouts) {
214         _layouts = layouts;
215     }
216 
217     public long getPlid() {
218         return _plid;
219     }
220 
221     public void setPlid(long plid) {
222         _plid = plid;
223     }
224 
225     public LayoutTypePortlet getLayoutTypePortlet() {
226         return _layoutTypePortlet;
227     }
228 
229     public void setLayoutTypePortlet(LayoutTypePortlet layoutTypePortlet) {
230         _layoutTypePortlet = layoutTypePortlet;
231     }
232 
233     public long getPortletGroupId() {
234         return _portletGroupId;
235     }
236 
237     public void setPortletGroupId(long portletGroupId) {
238         _portletGroupId = portletGroupId;
239     }
240 
241     public boolean isSignedIn() {
242         return _signedIn;
243     }
244 
245     public void setSignedIn(boolean signedIn) {
246         _signedIn = signedIn;
247     }
248 
249     public PermissionChecker getPermissionChecker() {
250         return _permissionChecker;
251     }
252 
253     public void setPermissionChecker(PermissionChecker permissionChecker) {
254         _permissionChecker = permissionChecker;
255     }
256 
257     public Locale getLocale() {
258         return _locale;
259     }
260 
261     public void setLocale(Locale locale) {
262         _locale = locale;
263     }
264 
265     public String getLanguageId() {
266         return _languageId;
267     }
268 
269     public void setLanguageId(String languageId) {
270         _languageId = languageId;
271     }
272 
273     public TimeZone getTimeZone() {
274         return _timeZone;
275     }
276 
277     public void setTimeZone(TimeZone timeZone) {
278         _timeZone = timeZone;
279     }
280 
281     public Theme getTheme() {
282         return _theme;
283     }
284 
285     public String getThemeId() {
286         return _theme.getThemeId();
287     }
288 
289     public ColorScheme getColorScheme() {
290         return _colorScheme;
291     }
292 
293     public String getColorSchemeId() {
294         return _colorScheme.getColorSchemeId();
295     }
296 
297     public boolean isWapTheme() {
298         return _theme.isWapTheme();
299     }
300 
301     public void setLookAndFeel(Theme theme, ColorScheme colorScheme) {
302         setLookAndFeel(getPathContext(), theme, colorScheme);
303     }
304 
305     public void setLookAndFeel(
306         String contextPath, Theme theme, ColorScheme colorScheme) {
307 
308         _theme = theme;
309         _colorScheme = colorScheme;
310 
311         if ((theme != null) && (colorScheme != null)) {
312             String themeContextPath = contextPath;
313 
314             if (theme.isWARFile()) {
315                 themeContextPath = theme.getContextPath();
316             }
317 
318             String cdnHost = getCDNHost();
319 
320             setPathColorSchemeImages(
321                 cdnHost + themeContextPath +
322                     colorScheme.getColorSchemeImagesPath());
323 
324             setPathThemeCss(cdnHost + themeContextPath + theme.getCssPath());
325             setPathThemeImages(
326                 cdnHost + themeContextPath + theme.getImagesPath());
327             setPathThemeJavaScript(
328                 cdnHost + themeContextPath + theme.getJavaScriptPath());
329             setPathThemeRoot(themeContextPath + theme.getRootPath());
330         }
331     }
332 
333     public boolean isFreeformLayout() {
334         return _freeformLayout;
335     }
336 
337     public void setFreeformLayout(boolean freeformLayout) {
338         _freeformLayout = freeformLayout;
339     }
340 
341     public String getServerName() {
342         return _serverName;
343     }
344 
345     public void setServerName(String serverName) {
346         _serverName = serverName;
347     }
348 
349     public int getServerPort() {
350         return _serverPort;
351     }
352 
353     public void setServerPort(int serverPort) {
354         _serverPort = serverPort;
355     }
356 
357     public boolean isSecure() {
358         return _secure;
359     }
360 
361     public void setSecure(boolean secure) {
362         _secure = secure;
363     }
364 
365     public boolean isStateExclusive() {
366         return _stateExclusive;
367     }
368 
369     public void setStateExclusive(boolean stateExclusive) {
370         _stateExclusive = stateExclusive;
371     }
372 
373     public boolean isStateMaximized() {
374         return _stateMaximized;
375     }
376 
377     public void setStateMaximized(boolean stateMaximized) {
378         _stateMaximized = stateMaximized;
379     }
380 
381     public boolean isStatePopUp() {
382         return _statePopUp;
383     }
384 
385     public void setStatePopUp(boolean statePopUp) {
386         _statePopUp = statePopUp;
387     }
388 
389     public String getCDNHost() {
390         return _cdnHost;
391     }
392 
393     public void setCDNHost(String cdnHost) {
394         _cdnHost = cdnHost;
395     }
396 
397     public String getPathApplet() {
398         return _pathApplet;
399     }
400 
401     public void setPathApplet(String pathApplet) {
402         _pathApplet = pathApplet;
403     }
404 
405     public String getPathCms() {
406         return _pathCms;
407     }
408 
409     public void setPathCms(String pathCms) {
410         _pathCms = pathCms;
411     }
412 
413     public String getPathColorSchemeImages() {
414         return _pathColorSchemeImages;
415     }
416 
417     public void setPathColorSchemeImages(String pathColorSchemeImages) {
418         _pathColorSchemeImages = pathColorSchemeImages;
419     }
420 
421     public String getPathContext() {
422         return _pathContext;
423     }
424 
425     public void setPathContext(String pathContext) {
426         _pathContext = pathContext;
427     }
428 
429     public String getPathFlash() {
430         return _pathFlash;
431     }
432 
433     public void setPathFlash(String pathFlash) {
434         _pathFlash = pathFlash;
435     }
436 
437     public String getPathFriendlyURLPrivateGroup() {
438         return _pathFriendlyURLPrivateGroup;
439     }
440 
441     public void setPathFriendlyURLPrivateGroup(
442         String pathFriendlyURLPrivateGroup) {
443 
444         _pathFriendlyURLPrivateGroup = pathFriendlyURLPrivateGroup;
445     }
446 
447     public String getPathFriendlyURLPrivateUser() {
448         return _pathFriendlyURLPrivateUser;
449     }
450 
451     public void setPathFriendlyURLPrivateUser(
452         String pathFriendlyURLPrivateUser) {
453 
454         _pathFriendlyURLPrivateUser = pathFriendlyURLPrivateUser;
455     }
456 
457     public String getPathFriendlyURLPublic() {
458         return _pathFriendlyURLPublic;
459     }
460 
461     public void setPathFriendlyURLPublic(String pathFriendlyURLPublic) {
462         _pathFriendlyURLPublic = pathFriendlyURLPublic;
463     }
464 
465     public String getPathImage() {
466         return _pathImage;
467     }
468 
469     public void setPathImage(String pathImage) {
470         _pathImage = pathImage;
471     }
472 
473     public String getPathJavaScript() {
474         return _pathJavaScript;
475     }
476 
477     public void setPathJavaScript(String pathJavaScript) {
478         _pathJavaScript = pathJavaScript;
479     }
480 
481     public String getPathMain() {
482         return _pathMain;
483     }
484 
485     public void setPathMain(String pathMain) {
486         _pathMain = pathMain;
487     }
488 
489     public String getPathSound() {
490         return _pathSound;
491     }
492 
493     public void setPathSound(String pathSound) {
494         _pathSound = pathSound;
495     }
496 
497     public String getPathThemeCss() {
498         return _pathThemeCss;
499     }
500 
501     public void setPathThemeCss(String pathThemeCss) {
502         _pathThemeCss = pathThemeCss;
503     }
504 
505     /**
506      * @deprecated Use <code>getPathThemeImages</code>.
507      */
508     public String getPathThemeImage() {
509         return getPathThemeImages();
510     }
511 
512     public String getPathThemeImages() {
513         return _pathThemeImages;
514     }
515 
516     public void setPathThemeImages(String pathThemeImages) {
517         _pathThemeImages = pathThemeImages;
518     }
519 
520     public String getPathThemeJavaScript() {
521         return _pathThemeJavaScript;
522     }
523 
524     public void setPathThemeJavaScript(String pathThemeJavaScript) {
525         _pathThemeJavaScript = pathThemeJavaScript;
526     }
527 
528     public String getPathThemeRoot() {
529         return _pathThemeRoot;
530     }
531 
532     public void setPathThemeRoot(String pathThemeRoot) {
533         _pathThemeRoot = pathThemeRoot;
534     }
535 
536     public boolean isShowAddContentIcon() {
537         return _showAddContentIcon;
538     }
539 
540     public void setShowAddContentIcon(boolean showAddContentIcon) {
541         _showAddContentIcon = showAddContentIcon;
542     }
543 
544     public boolean isShowHomeIcon() {
545         return _showHomeIcon;
546     }
547 
548     public void setShowHomeIcon(boolean showHomeIcon) {
549         _showHomeIcon = showHomeIcon;
550     }
551 
552     public boolean isShowLayoutTemplatesIcon() {
553         return _showLayoutTemplatesIcon;
554     }
555 
556     public void setShowLayoutTemplatesIcon(boolean showLayoutTemplatesIcon) {
557         _showLayoutTemplatesIcon = showLayoutTemplatesIcon;
558     }
559 
560     public boolean isShowMyAccountIcon() {
561         return _showMyAccountIcon;
562     }
563 
564     public void setShowMyAccountIcon(boolean showMyAccountIcon) {
565         _showMyAccountIcon = showMyAccountIcon;
566     }
567 
568     public boolean isShowPageSettingsIcon() {
569         return _showPageSettingsIcon;
570     }
571 
572     public void setShowPageSettingsIcon(boolean showPageSettingsIcon) {
573         _showPageSettingsIcon = showPageSettingsIcon;
574     }
575 
576     public boolean isShowPortalIcon() {
577         return _showPortalIcon;
578     }
579 
580     public void setShowPortalIcon(boolean showPortalIcon) {
581         _showPortalIcon = showPortalIcon;
582     }
583 
584     public boolean isShowSignInIcon() {
585         return _showSignInIcon;
586     }
587 
588     public void setShowSignInIcon(boolean showSignInIcon) {
589         _showSignInIcon = showSignInIcon;
590     }
591 
592     public boolean isShowSignOutIcon() {
593         return _showSignOutIcon;
594     }
595 
596     public void setShowSignOutIcon(boolean showSignOutIcon) {
597         _showSignOutIcon = showSignOutIcon;
598     }
599 
600     public String getURLAddContent() {
601         return _urlAddContent;
602     }
603 
604     public void setURLAddContent(String urlAddContent) {
605         _urlAddContent = urlAddContent;
606     }
607 
608     public PortletURL getURLCreateAccount() {
609         return _urlCreateAccount;
610     }
611 
612     public void setURLCreateAccount(PortletURL urlCreateAccount) {
613         _urlCreateAccount = urlCreateAccount;
614     }
615 
616     public String getURLCurrent() {
617         return _urlCurrent;
618     }
619 
620     public void setURLCurrent(String urlCurrent) {
621         _urlCurrent = urlCurrent;
622     }
623 
624     public String getURLHome() {
625         return _urlHome;
626     }
627 
628     public void setURLHome(String urlHome) {
629         _urlHome = urlHome;
630     }
631 
632     public String getURLLayoutTemplates() {
633         return _urlLayoutTemplates;
634     }
635 
636     public void setURLLayoutTemplates(String urlLayoutTemplates) {
637         _urlLayoutTemplates = urlLayoutTemplates;
638     }
639 
640     public PortletURL getURLMyAccount() {
641         return _urlMyAccount;
642     }
643 
644     public void setURLMyAccount(PortletURL urlMyAccount) {
645         _urlMyAccount = urlMyAccount;
646     }
647 
648     public PortletURL getURLPageSettings() {
649         return _urlPageSettings;
650     }
651 
652     public void setURLPageSettings(PortletURL urlPageSettings) {
653         _urlPageSettings = urlPageSettings;
654     }
655 
656     public String getURLPortal() {
657         return _urlPortal;
658     }
659 
660     public void setURLPortal(String urlPortal) {
661         _urlPortal = urlPortal;
662     }
663 
664     public String getURLSignIn() {
665         return _urlSignIn;
666     }
667 
668     public void setURLSignIn(String urlSignIn) {
669         _urlSignIn = urlSignIn;
670     }
671 
672     public String getURLSignOut() {
673         return _urlSignOut;
674     }
675 
676     public void setURLSignOut(String urlSignOut) {
677         _urlSignOut = urlSignOut;
678     }
679 
680     public PortletURL getURLUpdateManager() {
681         return _urlUpdateManager;
682     }
683 
684     public void setURLUpdateManager(PortletURL urlUpdateManager) {
685         _urlUpdateManager = urlUpdateManager;
686     }
687 
688     public String getTilesTitle() {
689         return _tilesTitle;
690     }
691 
692     public void setTilesTitle(String tilesTitle) {
693         _tilesTitle = tilesTitle;
694     }
695 
696     public String getTilesContent() {
697         return _tilesContent;
698     }
699 
700     public void setTilesContent(String tilesContent) {
701         _tilesContent = tilesContent;
702     }
703 
704     public boolean isTilesSelectable() {
705         return _tilesSelectable;
706     }
707 
708     public void setTilesSelectable(boolean tilesSelectable) {
709         _tilesSelectable = tilesSelectable;
710     }
711 
712     public boolean isIncludeCalendarJs() {
713         return _includeCalendarJs;
714     }
715 
716     public void setIncludeCalendarJs(boolean includeCalendarJs) {
717         _includeCalendarJs = includeCalendarJs;
718     }
719 
720     public boolean isIncludePortletCssJs() {
721         return _includePortletCssJs;
722     }
723 
724     public void setIncludePortletCssJs(boolean includePortletCssJs) {
725         _includePortletCssJs = includePortletCssJs;
726     }
727 
728     public boolean isIncludeServiceJs() {
729         return _includeServiceJs;
730     }
731 
732     public void setIncludeServiceJs(boolean includeServiceJs) {
733         _includeServiceJs = includeServiceJs;
734     }
735 
736     public boolean isIncludedJs(String js) {
737         String path = getPathJavaScript();
738 
739         if (isIncludeCalendarJs() &&
740             js.equals(path + "/calendar/calendar_stripped.js")) {
741 
742             return true;
743         }
744         else if (isIncludePortletCssJs() &&
745                  js.equals(path + "/liferay/portlet_css_packed.js")) {
746 
747             return true;
748         }
749         else if (isIncludeServiceJs() &&
750                  js.equals(path + "/liferay/service_packed.js")) {
751 
752             return true;
753         }
754         else {
755             return false;
756         }
757     }
758 
759     public PortletDisplay getPortletDisplay() {
760         return _portletDisplay;
761     }
762 
763     public void setPortletDisplay(PortletDisplay portletDisplay) {
764         _portletDisplay = portletDisplay;
765     }
766 
767     public void recycle() {
768         if (_log.isDebugEnabled()) {
769             _log.debug("Recycling instance " + hashCode());
770         }
771 
772         _company = null;
773         _companyLogo = StringPool.BLANK;
774         _companyLogoHeight = 0;
775         _companyLogoWidth = 0;
776         _realCompanyLogo = StringPool.BLANK;
777         _realCompanyLogoHeight = 0;
778         _realCompanyLogoWidth = 0;
779         _account = null;
780         _defaultUser = null;
781         _user = null;
782         _realUser = null;
783         _doAsUserId = StringPool.BLANK;
784         _layoutSetLogo = StringPool.BLANK;
785         _layout = null;
786         _layouts = null;
787         _plid = 0;
788         _layoutTypePortlet = null;
789         _portletGroupId = 0;
790         _signedIn = false;
791         _permissionChecker = null;
792         _locale = null;
793         _languageId = null;
794         _timeZone = null;
795         _theme = null;
796         _colorScheme = null;
797         _freeformLayout = false;
798         _serverName = StringPool.BLANK;
799         _serverPort = 0;
800         _secure = false;
801         _stateExclusive = false;
802         _stateMaximized = false;
803         _statePopUp = false;
804         _cdnHost = StringPool.BLANK;
805         _pathApplet = StringPool.BLANK;
806         _pathCms = StringPool.BLANK;
807         _pathColorSchemeImages = StringPool.BLANK;
808         _pathContext = StringPool.BLANK;
809         _pathFlash = StringPool.BLANK;
810         _pathFriendlyURLPrivateGroup = StringPool.BLANK;
811         _pathFriendlyURLPrivateUser = StringPool.BLANK;
812         _pathFriendlyURLPublic = StringPool.BLANK;
813         _pathImage = StringPool.BLANK;
814         _pathJavaScript = StringPool.BLANK;
815         _pathMain = StringPool.BLANK;
816         _pathSound = StringPool.BLANK;
817         _pathThemeCss = StringPool.BLANK;
818         _pathThemeImages = StringPool.BLANK;
819         _pathThemeJavaScript = StringPool.BLANK;
820         _pathThemeRoot = StringPool.BLANK;
821         _showAddContentIcon = false;
822         _showHomeIcon = false;
823         _showLayoutTemplatesIcon = false;
824         _showMyAccountIcon = false;
825         _showPageSettingsIcon = false;
826         _showPortalIcon = false;
827         _showSignInIcon = false;
828         _showSignOutIcon = false;
829         _urlAddContent = StringPool.BLANK;
830         _urlCreateAccount = null;
831         _urlCurrent = StringPool.BLANK;
832         _urlHome = StringPool.BLANK;
833         _urlLayoutTemplates = StringPool.BLANK;
834         _urlMyAccount = null;
835         _urlPageSettings = null;
836         _urlPortal = StringPool.BLANK;
837         _urlSignIn = StringPool.BLANK;
838         _urlSignOut = StringPool.BLANK;
839         _urlUpdateManager = null;
840         _tilesTitle = StringPool.BLANK;
841         _tilesContent = StringPool.BLANK;
842         _tilesSelectable = false;
843         _includeCalendarJs = false;
844         _includePortletCssJs = false;
845         _includeServiceJs = false;
846         _portletDisplay.recycle();
847     }
848 
849     private static Log _log = LogFactoryUtil.getLog(ThemeDisplay.class);
850 
851     private Company _company;
852     private String _companyLogo = StringPool.BLANK;
853     private int _companyLogoHeight;
854     private int _companyLogoWidth;
855     private String _realCompanyLogo = StringPool.BLANK;
856     private int _realCompanyLogoHeight;
857     private int _realCompanyLogoWidth;
858     private Account _account;
859     private User _defaultUser;
860     private User _user;
861     private User _realUser;
862     private String _doAsUserId = StringPool.BLANK;
863     private Contact _contact;
864     private String _layoutSetLogo = StringPool.BLANK;
865     private Layout _layout;
866     private List _layouts;
867     private long _plid;
868     private LayoutTypePortlet _layoutTypePortlet;
869     private long _portletGroupId;
870     private boolean _signedIn;
871     private PermissionChecker _permissionChecker;
872     private Locale _locale;
873     private String _languageId;
874     private TimeZone _timeZone;
875     private Theme _theme;
876     private ColorScheme _colorScheme;
877     private boolean _freeformLayout;
878     private String _serverName;
879     private int _serverPort;
880     private boolean _secure;
881     private boolean _stateExclusive;
882     private boolean _stateMaximized;
883     private boolean _statePopUp;
884     private String _cdnHost = StringPool.BLANK;
885     private String _pathApplet = StringPool.BLANK;
886     private String _pathCms = StringPool.BLANK;
887     private String _pathColorSchemeImages = StringPool.BLANK;
888     private String _pathContext = StringPool.BLANK;
889     private String _pathFlash = StringPool.BLANK;
890     private String _pathFriendlyURLPrivateGroup = StringPool.BLANK;
891     private String _pathFriendlyURLPrivateUser = StringPool.BLANK;
892     private String _pathFriendlyURLPublic = StringPool.BLANK;
893     private String _pathImage = StringPool.BLANK;
894     private String _pathJavaScript = StringPool.BLANK;
895     private String _pathMain = StringPool.BLANK;
896     private String _pathSound = StringPool.BLANK;
897     private String _pathThemeCss = StringPool.BLANK;
898     private String _pathThemeImages = StringPool.BLANK;
899     private String _pathThemeJavaScript = StringPool.BLANK;
900     private String _pathThemeRoot = StringPool.BLANK;
901     private boolean _showAddContentIcon;
902     private boolean _showHomeIcon;
903     private boolean _showLayoutTemplatesIcon;
904     private boolean _showMyAccountIcon;
905     private boolean _showPageSettingsIcon;
906     private boolean _showPortalIcon;
907     private boolean _showSignInIcon;
908     private boolean _showSignOutIcon;
909     private String _urlAddContent = StringPool.BLANK;
910     private transient PortletURL _urlCreateAccount = null;
911     private String _urlCurrent = StringPool.BLANK;
912     private String _urlHome = StringPool.BLANK;
913     private String _urlLayoutTemplates = StringPool.BLANK;
914     private transient PortletURL _urlMyAccount = null;
915     private transient PortletURL _urlPageSettings = null;
916     private String _urlPortal = StringPool.BLANK;
917     private String _urlSignIn = StringPool.BLANK;
918     private String _urlSignOut = StringPool.BLANK;
919     private transient PortletURL _urlUpdateManager = null;
920     private String _tilesTitle = StringPool.BLANK;
921     private String _tilesContent = StringPool.BLANK;
922     private boolean _tilesSelectable;
923     private boolean _includeCalendarJs;
924     private boolean _includePortletCssJs;
925     private boolean _includeServiceJs;
926     private PortletDisplay _portletDisplay = new PortletDisplay();
927 
928 }