001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.util;
022:
023: /**
024: * <a href="PortalUtil_IW.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class PortalUtil_IW {
030: public static PortalUtil_IW getInstance() {
031: return _instance;
032: }
033:
034: public void clearRequestParameters(javax.portlet.RenderRequest req) {
035: PortalUtil.clearRequestParameters(req);
036: }
037:
038: public void copyRequestParameters(javax.portlet.ActionRequest req,
039: javax.portlet.ActionResponse res) {
040: PortalUtil.copyRequestParameters(req, res);
041: }
042:
043: public java.lang.String createSecureProxyURL(java.lang.String url,
044: java.security.Key key, boolean secure) {
045: return PortalUtil.createSecureProxyURL(url, key, secure);
046: }
047:
048: public java.lang.String getCDNHost() {
049: return PortalUtil.getCDNHost();
050: }
051:
052: public java.lang.String getClassName(long classNameId) {
053: return PortalUtil.getClassName(classNameId);
054: }
055:
056: public long getClassNameId(java.lang.Class classObj) {
057: return PortalUtil.getClassNameId(classObj);
058: }
059:
060: public long getClassNameId(java.lang.String value) {
061: return PortalUtil.getClassNameId(value);
062: }
063:
064: public java.lang.String getClassNamePortletId(
065: java.lang.String className) {
066: return PortalUtil.getClassNamePortletId(className);
067: }
068:
069: public com.liferay.portal.model.Company getCompany(
070: javax.servlet.http.HttpServletRequest req)
071: throws com.liferay.portal.SystemException,
072: com.liferay.portal.PortalException {
073: return PortalUtil.getCompany(req);
074: }
075:
076: public com.liferay.portal.model.Company getCompany(
077: javax.portlet.ActionRequest req)
078: throws com.liferay.portal.SystemException,
079: com.liferay.portal.PortalException {
080: return PortalUtil.getCompany(req);
081: }
082:
083: public com.liferay.portal.model.Company getCompany(
084: javax.portlet.RenderRequest req)
085: throws com.liferay.portal.SystemException,
086: com.liferay.portal.PortalException {
087: return PortalUtil.getCompany(req);
088: }
089:
090: public long getCompanyId(javax.servlet.http.HttpServletRequest req) {
091: return PortalUtil.getCompanyId(req);
092: }
093:
094: public long getCompanyId(javax.portlet.ActionRequest req) {
095: return PortalUtil.getCompanyId(req);
096: }
097:
098: public long getCompanyId(javax.portlet.PortletRequest req) {
099: return PortalUtil.getCompanyId(req);
100: }
101:
102: public long getCompanyId(javax.portlet.RenderRequest req) {
103: return PortalUtil.getCompanyId(req);
104: }
105:
106: public long getCompanyIdByWebId(javax.servlet.ServletContext ctx) {
107: return PortalUtil.getCompanyIdByWebId(ctx);
108: }
109:
110: public long getCompanyIdByWebId(java.lang.String webId) {
111: return PortalUtil.getCompanyIdByWebId(webId);
112: }
113:
114: public java.lang.String getComputerName() {
115: return PortalUtil.getComputerName();
116: }
117:
118: public java.lang.String getCurrentURL(
119: javax.servlet.http.HttpServletRequest req) {
120: return PortalUtil.getCurrentURL(req);
121: }
122:
123: public java.lang.String getCurrentURL(
124: javax.portlet.PortletRequest req) {
125: return PortalUtil.getCurrentURL(req);
126: }
127:
128: public java.util.Date getDate(int month, int day, int year,
129: com.liferay.portal.PortalException pe)
130: throws com.liferay.portal.PortalException {
131: return PortalUtil.getDate(month, day, year, pe);
132: }
133:
134: public java.util.Date getDate(int month, int day, int year,
135: java.util.TimeZone timeZone,
136: com.liferay.portal.PortalException pe)
137: throws com.liferay.portal.PortalException {
138: return PortalUtil.getDate(month, day, year, timeZone, pe);
139: }
140:
141: public java.util.Date getDate(int month, int day, int year,
142: int hour, int min, com.liferay.portal.PortalException pe)
143: throws com.liferay.portal.PortalException {
144: return PortalUtil.getDate(month, day, year, hour, min, pe);
145: }
146:
147: public java.util.Date getDate(int month, int day, int year,
148: int hour, int min, java.util.TimeZone timeZone,
149: com.liferay.portal.PortalException pe)
150: throws com.liferay.portal.PortalException {
151: return PortalUtil.getDate(month, day, year, hour, min,
152: timeZone, pe);
153: }
154:
155: public java.lang.String getHost(
156: javax.servlet.http.HttpServletRequest req) {
157: return PortalUtil.getHost(req);
158: }
159:
160: public java.lang.String getHost(javax.portlet.ActionRequest req) {
161: return PortalUtil.getHost(req);
162: }
163:
164: public java.lang.String getHost(javax.portlet.RenderRequest req) {
165: return PortalUtil.getHost(req);
166: }
167:
168: public javax.servlet.http.HttpServletRequest getHttpServletRequest(
169: javax.portlet.PortletRequest req) {
170: return PortalUtil.getHttpServletRequest(req);
171: }
172:
173: public javax.servlet.http.HttpServletResponse getHttpServletResponse(
174: javax.portlet.PortletResponse res) {
175: return PortalUtil.getHttpServletResponse(res);
176: }
177:
178: public java.lang.String getLayoutEditPage(
179: com.liferay.portal.model.Layout layout) {
180: return PortalUtil.getLayoutEditPage(layout);
181: }
182:
183: public java.lang.String getLayoutViewPage(
184: com.liferay.portal.model.Layout layout) {
185: return PortalUtil.getLayoutViewPage(layout);
186: }
187:
188: public java.lang.String getLayoutURL(
189: com.liferay.portal.theme.ThemeDisplay themeDisplay)
190: throws com.liferay.portal.SystemException,
191: com.liferay.portal.PortalException {
192: return PortalUtil.getLayoutURL(themeDisplay);
193: }
194:
195: public java.lang.String getLayoutURL(
196: com.liferay.portal.model.Layout layout,
197: com.liferay.portal.theme.ThemeDisplay themeDisplay)
198: throws com.liferay.portal.SystemException,
199: com.liferay.portal.PortalException {
200: return PortalUtil.getLayoutURL(layout, themeDisplay);
201: }
202:
203: public java.lang.String getLayoutURL(
204: com.liferay.portal.model.Layout layout,
205: com.liferay.portal.theme.ThemeDisplay themeDisplay,
206: boolean doAsUser)
207: throws com.liferay.portal.SystemException,
208: com.liferay.portal.PortalException {
209: return PortalUtil.getLayoutURL(layout, themeDisplay, doAsUser);
210: }
211:
212: public java.lang.String getLayoutActualURL(
213: com.liferay.portal.model.Layout layout)
214: throws com.liferay.portal.SystemException,
215: com.liferay.portal.PortalException {
216: return PortalUtil.getLayoutActualURL(layout);
217: }
218:
219: public java.lang.String getLayoutActualURL(
220: com.liferay.portal.model.Layout layout,
221: java.lang.String mainPath)
222: throws com.liferay.portal.SystemException,
223: com.liferay.portal.PortalException {
224: return PortalUtil.getLayoutActualURL(layout, mainPath);
225: }
226:
227: public java.lang.String getLayoutActualURL(long groupId,
228: boolean privateLayout, java.lang.String mainPath,
229: java.lang.String friendlyURL)
230: throws com.liferay.portal.SystemException,
231: com.liferay.portal.PortalException {
232: return PortalUtil.getLayoutActualURL(groupId, privateLayout,
233: mainPath, friendlyURL);
234: }
235:
236: public java.lang.String getLayoutActualURL(long groupId,
237: boolean privateLayout, java.lang.String mainPath,
238: java.lang.String friendlyURL, java.util.Map params)
239: throws com.liferay.portal.SystemException,
240: com.liferay.portal.PortalException {
241: return PortalUtil.getLayoutActualURL(groupId, privateLayout,
242: mainPath, friendlyURL, params);
243: }
244:
245: public java.lang.String getLayoutFriendlyURL(
246: com.liferay.portal.model.Layout layout,
247: com.liferay.portal.theme.ThemeDisplay themeDisplay)
248: throws com.liferay.portal.SystemException,
249: com.liferay.portal.PortalException {
250: return PortalUtil.getLayoutFriendlyURL(layout, themeDisplay);
251: }
252:
253: public java.lang.String getLayoutTarget(
254: com.liferay.portal.model.Layout layout) {
255: return PortalUtil.getLayoutTarget(layout);
256: }
257:
258: public java.lang.String getJsSafePortletId(
259: java.lang.String portletId) {
260: return PortalUtil.getJsSafePortletId(portletId);
261: }
262:
263: public java.lang.String getJsSafePortletName(
264: java.lang.String portletName) {
265: return PortalUtil.getJsSafePortletName(portletName);
266: }
267:
268: public java.util.Locale getLocale(
269: javax.servlet.http.HttpServletRequest req) {
270: return PortalUtil.getLocale(req);
271: }
272:
273: public java.util.Locale getLocale(javax.portlet.RenderRequest req) {
274: return PortalUtil.getLocale(req);
275: }
276:
277: public javax.servlet.http.HttpServletRequest getOriginalServletRequest(
278: javax.servlet.http.HttpServletRequest req) {
279: return PortalUtil.getOriginalServletRequest(req);
280: }
281:
282: public java.lang.String getPathContext() {
283: return PortalUtil.getPathContext();
284: }
285:
286: public java.lang.String getPathFriendlyURLPrivateGroup() {
287: return PortalUtil.getPathFriendlyURLPrivateGroup();
288: }
289:
290: public java.lang.String getPathFriendlyURLPrivateUser() {
291: return PortalUtil.getPathFriendlyURLPrivateUser();
292: }
293:
294: public java.lang.String getPathFriendlyURLPublic() {
295: return PortalUtil.getPathFriendlyURLPublic();
296: }
297:
298: public java.lang.String getPathImage() {
299: return PortalUtil.getPathImage();
300: }
301:
302: public java.lang.String getPathMain() {
303: return PortalUtil.getPathMain();
304: }
305:
306: public long getPlidIdFromFriendlyURL(long companyId,
307: java.lang.String friendlyURL) {
308: return PortalUtil.getPlidIdFromFriendlyURL(companyId,
309: friendlyURL);
310: }
311:
312: public java.lang.String getPortalLibDir() {
313: return PortalUtil.getPortalLibDir();
314: }
315:
316: public java.lang.String getPortalURL(
317: com.liferay.portal.theme.ThemeDisplay themeDisplay) {
318: return PortalUtil.getPortalURL(themeDisplay);
319: }
320:
321: public java.lang.String getPortalURL(
322: javax.servlet.http.HttpServletRequest req) {
323: return PortalUtil.getPortalURL(req);
324: }
325:
326: public java.lang.String getPortalURL(
327: javax.servlet.http.HttpServletRequest req, boolean secure) {
328: return PortalUtil.getPortalURL(req, secure);
329: }
330:
331: public java.lang.String getPortalURL(
332: javax.portlet.PortletRequest req) {
333: return PortalUtil.getPortalURL(req);
334: }
335:
336: public java.lang.String getPortalURL(
337: javax.portlet.PortletRequest req, boolean secure) {
338: return PortalUtil.getPortalURL(req, secure);
339: }
340:
341: public java.lang.String getPortalURL(java.lang.String serverName,
342: int serverPort, boolean secure) {
343: return PortalUtil.getPortalURL(serverName, serverPort, secure);
344: }
345:
346: public java.lang.Object[] getPortletFriendlyURLMapper(long groupId,
347: boolean privateLayout, java.lang.String url)
348: throws com.liferay.portal.SystemException,
349: com.liferay.portal.PortalException {
350: return PortalUtil.getPortletFriendlyURLMapper(groupId,
351: privateLayout, url);
352: }
353:
354: public java.lang.Object[] getPortletFriendlyURLMapper(long groupId,
355: boolean privateLayout, java.lang.String url,
356: java.util.Map params)
357: throws com.liferay.portal.SystemException,
358: com.liferay.portal.PortalException {
359: return PortalUtil.getPortletFriendlyURLMapper(groupId,
360: privateLayout, url, params);
361: }
362:
363: public long getPortletGroupId(long plid) {
364: return PortalUtil.getPortletGroupId(plid);
365: }
366:
367: public long getPortletGroupId(com.liferay.portal.model.Layout layout) {
368: return PortalUtil.getPortletGroupId(layout);
369: }
370:
371: public long getPortletGroupId(
372: javax.servlet.http.HttpServletRequest req) {
373: return PortalUtil.getPortletGroupId(req);
374: }
375:
376: public long getPortletGroupId(javax.portlet.ActionRequest req) {
377: return PortalUtil.getPortletGroupId(req);
378: }
379:
380: public long getPortletGroupId(javax.portlet.RenderRequest req) {
381: return PortalUtil.getPortletGroupId(req);
382: }
383:
384: public java.lang.String getPortletNamespace(
385: java.lang.String portletId) {
386: return PortalUtil.getPortletNamespace(portletId);
387: }
388:
389: public java.lang.String getPortletXmlFileName()
390: throws com.liferay.portal.SystemException,
391: com.liferay.portal.PortalException {
392: return PortalUtil.getPortletXmlFileName();
393: }
394:
395: public java.lang.String getPortletTitle(java.lang.String portletId,
396: long companyId, java.lang.String languageId) {
397: return PortalUtil.getPortletTitle(portletId, companyId,
398: languageId);
399: }
400:
401: public java.lang.String getPortletTitle(java.lang.String portletId,
402: com.liferay.portal.model.User user) {
403: return PortalUtil.getPortletTitle(portletId, user);
404: }
405:
406: public java.lang.String getPortletTitle(
407: com.liferay.portal.model.Portlet portlet,
408: javax.servlet.ServletContext ctx, java.util.Locale locale) {
409: return PortalUtil.getPortletTitle(portlet, ctx, locale);
410: }
411:
412: public javax.portlet.PortletPreferences getPreferences(
413: javax.servlet.http.HttpServletRequest req) {
414: return PortalUtil.getPreferences(req);
415: }
416:
417: public javax.portlet.PreferencesValidator getPreferencesValidator(
418: com.liferay.portal.model.Portlet portlet) {
419: return PortalUtil.getPreferencesValidator(portlet);
420: }
421:
422: public com.liferay.portlet.RenderResponseImpl getRenderResponseImpl(
423: javax.portlet.RenderResponse res) {
424: return PortalUtil.getRenderResponseImpl(res);
425: }
426:
427: public com.liferay.portal.model.User getSelectedUser(
428: javax.servlet.http.HttpServletRequest req)
429: throws com.liferay.portal.SystemException,
430: com.liferay.portal.PortalException,
431: java.rmi.RemoteException {
432: return PortalUtil.getSelectedUser(req);
433: }
434:
435: public com.liferay.portal.model.User getSelectedUser(
436: javax.servlet.http.HttpServletRequest req,
437: boolean checkPermission)
438: throws com.liferay.portal.SystemException,
439: com.liferay.portal.PortalException,
440: java.rmi.RemoteException {
441: return PortalUtil.getSelectedUser(req, checkPermission);
442: }
443:
444: public com.liferay.portal.model.User getSelectedUser(
445: javax.portlet.ActionRequest req)
446: throws com.liferay.portal.SystemException,
447: com.liferay.portal.PortalException,
448: java.rmi.RemoteException {
449: return PortalUtil.getSelectedUser(req);
450: }
451:
452: public com.liferay.portal.model.User getSelectedUser(
453: javax.portlet.ActionRequest req, boolean checkPermission)
454: throws com.liferay.portal.SystemException,
455: com.liferay.portal.PortalException,
456: java.rmi.RemoteException {
457: return PortalUtil.getSelectedUser(req, checkPermission);
458: }
459:
460: public com.liferay.portal.model.User getSelectedUser(
461: javax.portlet.RenderRequest req)
462: throws com.liferay.portal.SystemException,
463: com.liferay.portal.PortalException,
464: java.rmi.RemoteException {
465: return PortalUtil.getSelectedUser(req);
466: }
467:
468: public com.liferay.portal.model.User getSelectedUser(
469: javax.portlet.RenderRequest req, boolean checkPermission)
470: throws com.liferay.portal.SystemException,
471: com.liferay.portal.PortalException,
472: java.rmi.RemoteException {
473: return PortalUtil.getSelectedUser(req, checkPermission);
474: }
475:
476: public java.lang.String getStrutsAction(
477: javax.servlet.http.HttpServletRequest req) {
478: return PortalUtil.getStrutsAction(req);
479: }
480:
481: public java.lang.String[] getSystemCommunityRoles() {
482: return PortalUtil.getSystemCommunityRoles();
483: }
484:
485: public java.lang.String[] getSystemGroups() {
486: return PortalUtil.getSystemGroups();
487: }
488:
489: public java.lang.String[] getSystemOrganizationRoles() {
490: return PortalUtil.getSystemOrganizationRoles();
491: }
492:
493: public java.lang.String[] getSystemRoles() {
494: return PortalUtil.getSystemRoles();
495: }
496:
497: public com.liferay.util.servlet.UploadPortletRequest getUploadPortletRequest(
498: javax.portlet.ActionRequest req) {
499: return PortalUtil.getUploadPortletRequest(req);
500: }
501:
502: public com.liferay.util.servlet.UploadServletRequest getUploadServletRequest(
503: javax.servlet.http.HttpServletRequest httpReq) {
504: return PortalUtil.getUploadServletRequest(httpReq);
505: }
506:
507: public java.util.Date getUptime() {
508: return PortalUtil.getUptime();
509: }
510:
511: public java.lang.String getURLWithSessionId(java.lang.String url,
512: java.lang.String sessionId) {
513: return PortalUtil.getURLWithSessionId(url, sessionId);
514: }
515:
516: public com.liferay.portal.model.User getUser(
517: javax.servlet.http.HttpServletRequest req)
518: throws com.liferay.portal.SystemException,
519: com.liferay.portal.PortalException {
520: return PortalUtil.getUser(req);
521: }
522:
523: public com.liferay.portal.model.User getUser(
524: javax.portlet.ActionRequest req)
525: throws com.liferay.portal.SystemException,
526: com.liferay.portal.PortalException {
527: return PortalUtil.getUser(req);
528: }
529:
530: public com.liferay.portal.model.User getUser(
531: javax.portlet.RenderRequest req)
532: throws com.liferay.portal.SystemException,
533: com.liferay.portal.PortalException {
534: return PortalUtil.getUser(req);
535: }
536:
537: public long getUserId(javax.servlet.http.HttpServletRequest req) {
538: return PortalUtil.getUserId(req);
539: }
540:
541: public long getUserId(javax.portlet.ActionRequest req) {
542: return PortalUtil.getUserId(req);
543: }
544:
545: public long getUserId(javax.portlet.RenderRequest req) {
546: return PortalUtil.getUserId(req);
547: }
548:
549: public java.lang.String getUserName(long userId,
550: java.lang.String defaultUserName) {
551: return PortalUtil.getUserName(userId, defaultUserName);
552: }
553:
554: public java.lang.String getUserName(long userId,
555: java.lang.String defaultUserName,
556: java.lang.String userAttribute) {
557: return PortalUtil.getUserName(userId, defaultUserName,
558: userAttribute);
559: }
560:
561: public java.lang.String getUserName(long userId,
562: java.lang.String defaultUserName,
563: javax.servlet.http.HttpServletRequest req) {
564: return PortalUtil.getUserName(userId, defaultUserName, req);
565: }
566:
567: public java.lang.String getUserName(long userId,
568: java.lang.String defaultUserName,
569: java.lang.String userAttribute,
570: javax.servlet.http.HttpServletRequest req) {
571: return PortalUtil.getUserName(userId, defaultUserName,
572: userAttribute, req);
573: }
574:
575: public java.lang.String getUserPassword(
576: javax.servlet.http.HttpSession ses) {
577: return PortalUtil.getUserPassword(ses);
578: }
579:
580: public java.lang.String getUserPassword(
581: javax.servlet.http.HttpServletRequest req) {
582: return PortalUtil.getUserPassword(req);
583: }
584:
585: public java.lang.String getUserPassword(
586: javax.portlet.ActionRequest req) {
587: return PortalUtil.getUserPassword(req);
588: }
589:
590: public java.lang.String getUserPassword(
591: javax.portlet.RenderRequest req) {
592: return PortalUtil.getUserPassword(req);
593: }
594:
595: public java.lang.String getUserValue(long userId,
596: java.lang.String param, java.lang.String defaultValue)
597: throws com.liferay.portal.SystemException {
598: return PortalUtil.getUserValue(userId, param, defaultValue);
599: }
600:
601: public boolean isMethodGet(javax.portlet.PortletRequest req) {
602: return PortalUtil.isMethodGet(req);
603: }
604:
605: public boolean isMethodPost(javax.portlet.PortletRequest req) {
606: return PortalUtil.isMethodPost(req);
607: }
608:
609: public boolean isLayoutFriendliable(
610: com.liferay.portal.model.Layout layout) {
611: return PortalUtil.isLayoutFriendliable(layout);
612: }
613:
614: public boolean isLayoutParentable(
615: com.liferay.portal.model.Layout layout) {
616: return PortalUtil.isLayoutParentable(layout);
617: }
618:
619: public boolean isLayoutParentable(java.lang.String type) {
620: return PortalUtil.isLayoutParentable(type);
621: }
622:
623: public boolean isLayoutSitemapable(
624: com.liferay.portal.model.Layout layout) {
625: return PortalUtil.isLayoutSitemapable(layout);
626: }
627:
628: public boolean isReservedParameter(java.lang.String name) {
629: return PortalUtil.isReservedParameter(name);
630: }
631:
632: public boolean isSystemGroup(java.lang.String groupName) {
633: return PortalUtil.isSystemGroup(groupName);
634: }
635:
636: public boolean isSystemRole(java.lang.String roleName) {
637: return PortalUtil.isSystemRole(roleName);
638: }
639:
640: public boolean isUpdateAvailable()
641: throws com.liferay.portal.SystemException,
642: com.liferay.portal.PortalException {
643: return PortalUtil.isUpdateAvailable();
644: }
645:
646: public org.dom4j.Document readDocumentFromFile(java.io.File file)
647: throws org.dom4j.DocumentException {
648: return PortalUtil.readDocumentFromFile(file);
649: }
650:
651: public org.dom4j.Document readDocumentFromFile(java.io.File file,
652: boolean validate) throws org.dom4j.DocumentException {
653: return PortalUtil.readDocumentFromFile(file, validate);
654: }
655:
656: public org.dom4j.Document readDocumentFromStream(
657: java.io.InputStream is) throws org.dom4j.DocumentException {
658: return PortalUtil.readDocumentFromStream(is);
659: }
660:
661: public org.dom4j.Document readDocumentFromStream(
662: java.io.InputStream is, boolean validate)
663: throws org.dom4j.DocumentException {
664: return PortalUtil.readDocumentFromStream(is, validate);
665: }
666:
667: public org.dom4j.Document readDocumentFromURL(java.lang.String url)
668: throws org.dom4j.DocumentException, java.io.IOException {
669: return PortalUtil.readDocumentFromURL(url);
670: }
671:
672: public org.dom4j.Document readDocumentFromURL(java.lang.String url,
673: boolean validate) throws org.dom4j.DocumentException,
674: java.io.IOException {
675: return PortalUtil.readDocumentFromURL(url, validate);
676: }
677:
678: public org.dom4j.Document readDocumentFromXML(java.lang.String xml)
679: throws org.dom4j.DocumentException {
680: return PortalUtil.readDocumentFromXML(xml);
681: }
682:
683: public org.dom4j.Document readDocumentFromXML(java.lang.String xml,
684: boolean validate) throws org.dom4j.DocumentException {
685: return PortalUtil.readDocumentFromXML(xml, validate);
686: }
687:
688: public void renderPage(
689: com.liferay.portal.kernel.util.StringMaker sm,
690: javax.servlet.ServletContext ctx,
691: javax.servlet.http.HttpServletRequest req,
692: javax.servlet.http.HttpServletResponse res,
693: java.lang.String path) throws java.io.IOException,
694: javax.servlet.ServletException {
695: PortalUtil.renderPage(sm, ctx, req, res, path);
696: }
697:
698: public void renderPortlet(
699: com.liferay.portal.kernel.util.StringMaker sm,
700: javax.servlet.ServletContext ctx,
701: javax.servlet.http.HttpServletRequest req,
702: javax.servlet.http.HttpServletResponse res,
703: com.liferay.portal.model.Portlet portlet,
704: java.lang.String queryString) throws java.io.IOException,
705: javax.servlet.ServletException {
706: PortalUtil.renderPortlet(sm, ctx, req, res, portlet,
707: queryString);
708: }
709:
710: public void renderPortlet(
711: com.liferay.portal.kernel.util.StringMaker sm,
712: javax.servlet.ServletContext ctx,
713: javax.servlet.http.HttpServletRequest req,
714: javax.servlet.http.HttpServletResponse res,
715: com.liferay.portal.model.Portlet portlet,
716: java.lang.String queryString, java.lang.String columnId,
717: java.lang.Integer columnPos, java.lang.Integer columnCount)
718: throws java.io.IOException, javax.servlet.ServletException {
719: PortalUtil.renderPortlet(sm, ctx, req, res, portlet,
720: queryString, columnId, columnPos, columnCount);
721: }
722:
723: public void renderPortlet(
724: com.liferay.portal.kernel.util.StringMaker sm,
725: javax.servlet.ServletContext ctx,
726: javax.servlet.http.HttpServletRequest req,
727: javax.servlet.http.HttpServletResponse res,
728: com.liferay.portal.model.Portlet portlet,
729: java.lang.String queryString, java.lang.String columnId,
730: java.lang.Integer columnPos, java.lang.Integer columnCount,
731: java.lang.String path) throws java.io.IOException,
732: javax.servlet.ServletException {
733: PortalUtil.renderPortlet(sm, ctx, req, res, portlet,
734: queryString, columnId, columnPos, columnCount, path);
735: }
736:
737: public void sendError(int status, java.lang.Exception e,
738: javax.servlet.http.HttpServletRequest req,
739: javax.servlet.http.HttpServletResponse res)
740: throws java.io.IOException, javax.servlet.ServletException {
741: PortalUtil.sendError(status, e, req, res);
742: }
743:
744: public void setPageSubtitle(java.lang.String subtitle,
745: javax.servlet.http.HttpServletRequest req) {
746: PortalUtil.setPageSubtitle(subtitle, req);
747: }
748:
749: public void setPageTitle(java.lang.String title,
750: javax.servlet.http.HttpServletRequest req) {
751: PortalUtil.setPageTitle(title, req);
752: }
753:
754: public void storePreferences(javax.portlet.PortletPreferences prefs)
755: throws java.io.IOException,
756: javax.portlet.ValidatorException {
757: PortalUtil.storePreferences(prefs);
758: }
759:
760: public javax.portlet.PortletMode updatePortletMode(
761: java.lang.String portletId,
762: com.liferay.portal.model.User user,
763: com.liferay.portal.model.Layout layout,
764: javax.portlet.PortletMode portletMode,
765: javax.servlet.http.HttpServletRequest req)
766: throws com.liferay.portal.SystemException,
767: com.liferay.portal.PortalException,
768: java.rmi.RemoteException {
769: return PortalUtil.updatePortletMode(portletId, user, layout,
770: portletMode, req);
771: }
772:
773: public javax.portlet.WindowState updateWindowState(
774: java.lang.String portletId,
775: com.liferay.portal.model.User user,
776: com.liferay.portal.model.Layout layout,
777: javax.portlet.WindowState windowState,
778: javax.servlet.http.HttpServletRequest req)
779: throws com.liferay.portal.SystemException,
780: com.liferay.portal.PortalException,
781: java.rmi.RemoteException {
782: return PortalUtil.updateWindowState(portletId, user, layout,
783: windowState, req);
784: }
785:
786: private PortalUtil_IW() {
787: }
788:
789: private static PortalUtil_IW _instance = new PortalUtil_IW();
790: }
|