com.liferay.portal.util
Class PortalUtil_IW

java.lang.Object
  extended bycom.liferay.portal.util.PortalUtil_IW

public class PortalUtil_IW
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void clearRequestParameters(javax.portlet.RenderRequest req)
           
 void copyRequestParameters(javax.portlet.ActionRequest req, javax.portlet.ActionResponse res)
           
 java.lang.String createSecureProxyURL(java.lang.String url, java.security.Key key, boolean secure)
           
 java.lang.String getCDNHost()
           
 java.lang.String getClassName(long classNameId)
           
 long getClassNameId(java.lang.Class classObj)
           
 long getClassNameId(java.lang.String value)
           
 java.lang.String getClassNamePortletId(java.lang.String className)
           
 com.liferay.portal.model.Company getCompany(javax.portlet.ActionRequest req)
           
 com.liferay.portal.model.Company getCompany(javax.servlet.http.HttpServletRequest req)
           
 com.liferay.portal.model.Company getCompany(javax.portlet.RenderRequest req)
           
 long getCompanyId(javax.portlet.ActionRequest req)
           
 long getCompanyId(javax.servlet.http.HttpServletRequest req)
           
 long getCompanyId(javax.portlet.PortletRequest req)
           
 long getCompanyId(javax.portlet.RenderRequest req)
           
 long getCompanyIdByWebId(javax.servlet.ServletContext ctx)
           
 long getCompanyIdByWebId(java.lang.String webId)
           
 java.lang.String getCurrentURL(javax.servlet.http.HttpServletRequest req)
           
 java.util.Date getDate(int month, int day, int year, int hour, int min, com.liferay.portal.PortalException pe)
           
 java.util.Date getDate(int month, int day, int year, int hour, int min, java.util.TimeZone timeZone, com.liferay.portal.PortalException pe)
           
 java.util.Date getDate(int month, int day, int year, com.liferay.portal.PortalException pe)
           
 java.util.Date getDate(int month, int day, int year, java.util.TimeZone timeZone, com.liferay.portal.PortalException pe)
           
 java.lang.String getHost(javax.portlet.ActionRequest req)
           
 java.lang.String getHost(javax.servlet.http.HttpServletRequest req)
           
 java.lang.String getHost(javax.portlet.RenderRequest req)
           
 javax.servlet.http.HttpServletRequest getHttpServletRequest(javax.portlet.PortletRequest req)
           
 javax.servlet.http.HttpServletResponse getHttpServletResponse(javax.portlet.PortletResponse res)
           
static PortalUtil_IW getInstance()
           
 java.lang.String getJsSafePortletId(java.lang.String portletId)
           
 java.lang.String getJsSafePortletName(java.lang.String portletName)
           
 java.lang.String getLayoutActualURL(com.liferay.portal.model.Layout layout)
           
 java.lang.String getLayoutActualURL(com.liferay.portal.model.Layout layout, java.lang.String mainPath)
           
 java.lang.String getLayoutActualURL(long groupId, boolean privateLayout, java.lang.String mainPath, java.lang.String friendlyURL)
           
 java.lang.String getLayoutActualURL(long groupId, boolean privateLayout, java.lang.String mainPath, java.lang.String friendlyURL, java.util.Map params)
           
 java.lang.String getLayoutEditPage(com.liferay.portal.model.Layout layout)
           
 java.lang.String getLayoutFriendlyURL(com.liferay.portal.model.Layout layout, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 java.lang.String getLayoutTarget(com.liferay.portal.model.Layout layout)
           
 java.lang.String getLayoutURL(com.liferay.portal.model.Layout layout, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 java.lang.String getLayoutURL(com.liferay.portal.model.Layout layout, com.liferay.portal.theme.ThemeDisplay themeDisplay, boolean doAsUser)
           
 java.lang.String getLayoutURL(com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 java.lang.String getLayoutViewPage(com.liferay.portal.model.Layout layout)
           
 java.util.Locale getLocale(javax.servlet.http.HttpServletRequest req)
           
 java.util.Locale getLocale(javax.portlet.RenderRequest req)
           
 javax.servlet.http.HttpServletRequest getOriginalServletRequest(javax.servlet.http.HttpServletRequest req)
           
 java.lang.String getPathContext()
           
 java.lang.String getPathFriendlyURLPrivateGroup()
           
 java.lang.String getPathFriendlyURLPrivateUser()
           
 java.lang.String getPathFriendlyURLPublic()
           
 java.lang.String getPathImage()
           
 java.lang.String getPathMain()
           
 java.lang.String getPortalLibDir()
           
 java.lang.String getPortalURL(javax.servlet.http.HttpServletRequest req)
           
 java.lang.String getPortalURL(javax.servlet.http.HttpServletRequest req, boolean secure)
           
 java.lang.String getPortalURL(javax.portlet.PortletRequest req)
           
 java.lang.String getPortalURL(javax.portlet.PortletRequest req, boolean secure)
           
 java.lang.String getPortalURL(java.lang.String serverName, int serverPort, boolean secure)
           
 java.lang.String getPortalURL(com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 java.lang.Object[] getPortletFriendlyURLMapper(long groupId, boolean privateLayout, java.lang.String url)
           
 java.lang.Object[] getPortletFriendlyURLMapper(long groupId, boolean privateLayout, java.lang.String url, java.util.Map params)
           
 long getPortletGroupId(javax.portlet.ActionRequest req)
           
 long getPortletGroupId(javax.servlet.http.HttpServletRequest req)
           
 long getPortletGroupId(com.liferay.portal.model.Layout layout)
           
 long getPortletGroupId(long plid)
           
 long getPortletGroupId(javax.portlet.RenderRequest req)
           
 java.lang.String getPortletNamespace(java.lang.String portletId)
           
 java.lang.String getPortletTitle(com.liferay.portal.model.Portlet portlet, javax.servlet.ServletContext ctx, java.util.Locale locale)
           
 java.lang.String getPortletTitle(java.lang.String portletId, long companyId, java.lang.String languageId)
           
 java.lang.String getPortletTitle(java.lang.String portletId, com.liferay.portal.model.User user)
           
 java.lang.String getPortletXmlFileName()
           
 javax.portlet.PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest req)
           
 javax.portlet.PreferencesValidator getPreferencesValidator(com.liferay.portal.model.Portlet portlet)
           
 RenderResponseImpl getRenderResponseImpl(javax.portlet.RenderResponse res)
           
 com.liferay.portal.model.User getSelectedUser(javax.portlet.ActionRequest req)
           
 com.liferay.portal.model.User getSelectedUser(javax.portlet.ActionRequest req, boolean checkPermission)
           
 com.liferay.portal.model.User getSelectedUser(javax.servlet.http.HttpServletRequest req)
           
 com.liferay.portal.model.User getSelectedUser(javax.servlet.http.HttpServletRequest req, boolean checkPermission)
           
 com.liferay.portal.model.User getSelectedUser(javax.portlet.RenderRequest req)
           
 com.liferay.portal.model.User getSelectedUser(javax.portlet.RenderRequest req, boolean checkPermission)
           
 java.lang.String[] getSystemCommunityRoles()
           
 java.lang.String[] getSystemGroups()
           
 java.lang.String[] getSystemRoles()
           
 com.liferay.util.servlet.UploadPortletRequest getUploadPortletRequest(javax.portlet.ActionRequest req)
           
 com.liferay.util.servlet.UploadServletRequest getUploadServletRequest(javax.servlet.http.HttpServletRequest httpReq)
           
 java.util.Date getUptime()
           
 com.liferay.portal.model.User getUser(javax.portlet.ActionRequest req)
           
 com.liferay.portal.model.User getUser(javax.servlet.http.HttpServletRequest req)
           
 com.liferay.portal.model.User getUser(javax.portlet.RenderRequest req)
           
 long getUserId(javax.portlet.ActionRequest req)
           
 long getUserId(javax.servlet.http.HttpServletRequest req)
           
 long getUserId(javax.portlet.RenderRequest req)
           
 java.lang.String getUserName(long userId, java.lang.String defaultUserName)
           
 java.lang.String getUserName(long userId, java.lang.String defaultUserName, javax.servlet.http.HttpServletRequest req)
           
 java.lang.String getUserName(long userId, java.lang.String defaultUserName, java.lang.String userAttribute)
           
 java.lang.String getUserName(long userId, java.lang.String defaultUserName, java.lang.String userAttribute, javax.servlet.http.HttpServletRequest req)
           
 java.lang.String getUserPassword(javax.portlet.ActionRequest req)
           
 java.lang.String getUserPassword(javax.servlet.http.HttpServletRequest req)
           
 java.lang.String getUserPassword(javax.servlet.http.HttpSession ses)
           
 java.lang.String getUserPassword(javax.portlet.RenderRequest req)
           
 boolean isLayoutFriendliable(com.liferay.portal.model.Layout layout)
           
 boolean isLayoutParentable(com.liferay.portal.model.Layout layout)
           
 boolean isLayoutParentable(java.lang.String type)
           
 boolean isLayoutSitemapable(com.liferay.portal.model.Layout layout)
           
 boolean isReservedParameter(java.lang.String name)
           
 boolean isSystemGroup(java.lang.String groupName)
           
 boolean isSystemRole(java.lang.String roleName)
           
 boolean isUpdateAvailable()
           
 org.dom4j.Document readDocumentFromFile(java.io.File file)
           
 org.dom4j.Document readDocumentFromFile(java.io.File file, boolean validate)
           
 org.dom4j.Document readDocumentFromStream(java.io.InputStream is)
           
 org.dom4j.Document readDocumentFromStream(java.io.InputStream is, boolean validate)
           
 org.dom4j.Document readDocumentFromURL(java.lang.String url)
           
 org.dom4j.Document readDocumentFromURL(java.lang.String url, boolean validate)
           
 org.dom4j.Document readDocumentFromXML(java.lang.String xml)
           
 org.dom4j.Document readDocumentFromXML(java.lang.String xml, boolean validate)
           
 void renderPage(com.liferay.portal.kernel.util.StringMaker sm, javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String path)
           
 void renderPortlet(com.liferay.portal.kernel.util.StringMaker sm, javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, com.liferay.portal.model.Portlet portlet, java.lang.String queryString)
           
 void renderPortlet(com.liferay.portal.kernel.util.StringMaker sm, javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, com.liferay.portal.model.Portlet portlet, java.lang.String queryString, java.lang.String columnId, java.lang.Integer columnPos, java.lang.Integer columnCount)
           
 void renderPortlet(com.liferay.portal.kernel.util.StringMaker sm, javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, com.liferay.portal.model.Portlet portlet, java.lang.String queryString, java.lang.String columnId, java.lang.Integer columnPos, java.lang.Integer columnCount, java.lang.String path)
           
 void setPageSubtitle(java.lang.String subtitle, javax.servlet.http.HttpServletRequest req)
           
 void setPageTitle(java.lang.String title, javax.servlet.http.HttpServletRequest req)
           
 void storePreferences(javax.portlet.PortletPreferences prefs)
           
 javax.portlet.PortletMode updatePortletMode(java.lang.String portletId, com.liferay.portal.model.User user, com.liferay.portal.model.Layout layout, javax.portlet.PortletMode portletMode, javax.servlet.http.HttpServletRequest req)
           
 javax.portlet.WindowState updateWindowState(java.lang.String portletId, com.liferay.portal.model.User user, com.liferay.portal.model.Layout layout, javax.portlet.WindowState windowState, javax.servlet.http.HttpServletRequest req)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PortalUtil_IW getInstance()

clearRequestParameters

public void clearRequestParameters(javax.portlet.RenderRequest req)

copyRequestParameters

public void copyRequestParameters(javax.portlet.ActionRequest req,
                                  javax.portlet.ActionResponse res)

createSecureProxyURL

public java.lang.String createSecureProxyURL(java.lang.String url,
                                             java.security.Key key,
                                             boolean secure)

getCDNHost

public java.lang.String getCDNHost()

getClassName

public java.lang.String getClassName(long classNameId)

getClassNameId

public long getClassNameId(java.lang.Class classObj)

getClassNameId

public long getClassNameId(java.lang.String value)

getClassNamePortletId

public java.lang.String getClassNamePortletId(java.lang.String className)

getCompany

public com.liferay.portal.model.Company getCompany(javax.servlet.http.HttpServletRequest req)
                                            throws com.liferay.portal.SystemException,
                                                   com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getCompany

public com.liferay.portal.model.Company getCompany(javax.portlet.ActionRequest req)
                                            throws com.liferay.portal.SystemException,
                                                   com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getCompany

public com.liferay.portal.model.Company getCompany(javax.portlet.RenderRequest req)
                                            throws com.liferay.portal.SystemException,
                                                   com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getCompanyId

public long getCompanyId(javax.servlet.http.HttpServletRequest req)

getCompanyId

public long getCompanyId(javax.portlet.ActionRequest req)

getCompanyId

public long getCompanyId(javax.portlet.PortletRequest req)

getCompanyId

public long getCompanyId(javax.portlet.RenderRequest req)

getCompanyIdByWebId

public long getCompanyIdByWebId(javax.servlet.ServletContext ctx)

getCompanyIdByWebId

public long getCompanyIdByWebId(java.lang.String webId)

getCurrentURL

public java.lang.String getCurrentURL(javax.servlet.http.HttpServletRequest req)

getDate

public java.util.Date getDate(int month,
                              int day,
                              int year,
                              com.liferay.portal.PortalException pe)
                       throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

getDate

public java.util.Date getDate(int month,
                              int day,
                              int year,
                              java.util.TimeZone timeZone,
                              com.liferay.portal.PortalException pe)
                       throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

getDate

public java.util.Date getDate(int month,
                              int day,
                              int year,
                              int hour,
                              int min,
                              com.liferay.portal.PortalException pe)
                       throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

getDate

public java.util.Date getDate(int month,
                              int day,
                              int year,
                              int hour,
                              int min,
                              java.util.TimeZone timeZone,
                              com.liferay.portal.PortalException pe)
                       throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

getHost

public java.lang.String getHost(javax.servlet.http.HttpServletRequest req)

getHost

public java.lang.String getHost(javax.portlet.ActionRequest req)

getHost

public java.lang.String getHost(javax.portlet.RenderRequest req)

getHttpServletRequest

public javax.servlet.http.HttpServletRequest getHttpServletRequest(javax.portlet.PortletRequest req)

getHttpServletResponse

public javax.servlet.http.HttpServletResponse getHttpServletResponse(javax.portlet.PortletResponse res)

getLayoutEditPage

public java.lang.String getLayoutEditPage(com.liferay.portal.model.Layout layout)

getLayoutViewPage

public java.lang.String getLayoutViewPage(com.liferay.portal.model.Layout layout)

getLayoutURL

public java.lang.String getLayoutURL(com.liferay.portal.theme.ThemeDisplay themeDisplay)
                              throws com.liferay.portal.SystemException,
                                     com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getLayoutURL

public java.lang.String getLayoutURL(com.liferay.portal.model.Layout layout,
                                     com.liferay.portal.theme.ThemeDisplay themeDisplay)
                              throws com.liferay.portal.SystemException,
                                     com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getLayoutURL

public java.lang.String getLayoutURL(com.liferay.portal.model.Layout layout,
                                     com.liferay.portal.theme.ThemeDisplay themeDisplay,
                                     boolean doAsUser)
                              throws com.liferay.portal.SystemException,
                                     com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getLayoutActualURL

public java.lang.String getLayoutActualURL(com.liferay.portal.model.Layout layout)
                                    throws com.liferay.portal.SystemException,
                                           com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getLayoutActualURL

public java.lang.String getLayoutActualURL(com.liferay.portal.model.Layout layout,
                                           java.lang.String mainPath)
                                    throws com.liferay.portal.SystemException,
                                           com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getLayoutActualURL

public java.lang.String getLayoutActualURL(long groupId,
                                           boolean privateLayout,
                                           java.lang.String mainPath,
                                           java.lang.String friendlyURL)
                                    throws com.liferay.portal.SystemException,
                                           com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getLayoutActualURL

public java.lang.String getLayoutActualURL(long groupId,
                                           boolean privateLayout,
                                           java.lang.String mainPath,
                                           java.lang.String friendlyURL,
                                           java.util.Map params)
                                    throws com.liferay.portal.SystemException,
                                           com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getLayoutFriendlyURL

public java.lang.String getLayoutFriendlyURL(com.liferay.portal.model.Layout layout,
                                             com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                      throws com.liferay.portal.SystemException,
                                             com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getLayoutTarget

public java.lang.String getLayoutTarget(com.liferay.portal.model.Layout layout)

getJsSafePortletId

public java.lang.String getJsSafePortletId(java.lang.String portletId)

getJsSafePortletName

public java.lang.String getJsSafePortletName(java.lang.String portletName)

getLocale

public java.util.Locale getLocale(javax.servlet.http.HttpServletRequest req)

getLocale

public java.util.Locale getLocale(javax.portlet.RenderRequest req)

getOriginalServletRequest

public javax.servlet.http.HttpServletRequest getOriginalServletRequest(javax.servlet.http.HttpServletRequest req)

getPathContext

public java.lang.String getPathContext()

getPathFriendlyURLPrivateGroup

public java.lang.String getPathFriendlyURLPrivateGroup()

getPathFriendlyURLPrivateUser

public java.lang.String getPathFriendlyURLPrivateUser()

getPathFriendlyURLPublic

public java.lang.String getPathFriendlyURLPublic()

getPathImage

public java.lang.String getPathImage()

getPathMain

public java.lang.String getPathMain()

getPortalLibDir

public java.lang.String getPortalLibDir()

getPortalURL

public java.lang.String getPortalURL(com.liferay.portal.theme.ThemeDisplay themeDisplay)

getPortalURL

public java.lang.String getPortalURL(javax.servlet.http.HttpServletRequest req)

getPortalURL

public java.lang.String getPortalURL(javax.servlet.http.HttpServletRequest req,
                                     boolean secure)

getPortalURL

public java.lang.String getPortalURL(javax.portlet.PortletRequest req)

getPortalURL

public java.lang.String getPortalURL(javax.portlet.PortletRequest req,
                                     boolean secure)

getPortalURL

public java.lang.String getPortalURL(java.lang.String serverName,
                                     int serverPort,
                                     boolean secure)

getPortletFriendlyURLMapper

public java.lang.Object[] getPortletFriendlyURLMapper(long groupId,
                                                      boolean privateLayout,
                                                      java.lang.String url)
                                               throws com.liferay.portal.SystemException,
                                                      com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getPortletFriendlyURLMapper

public java.lang.Object[] getPortletFriendlyURLMapper(long groupId,
                                                      boolean privateLayout,
                                                      java.lang.String url,
                                                      java.util.Map params)
                                               throws com.liferay.portal.SystemException,
                                                      com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getPortletGroupId

public long getPortletGroupId(long plid)

getPortletGroupId

public long getPortletGroupId(com.liferay.portal.model.Layout layout)

getPortletGroupId

public long getPortletGroupId(javax.servlet.http.HttpServletRequest req)

getPortletGroupId

public long getPortletGroupId(javax.portlet.ActionRequest req)

getPortletGroupId

public long getPortletGroupId(javax.portlet.RenderRequest req)

getPortletNamespace

public java.lang.String getPortletNamespace(java.lang.String portletId)

getPortletXmlFileName

public java.lang.String getPortletXmlFileName()
                                       throws com.liferay.portal.SystemException,
                                              com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getPortletTitle

public java.lang.String getPortletTitle(java.lang.String portletId,
                                        long companyId,
                                        java.lang.String languageId)

getPortletTitle

public java.lang.String getPortletTitle(java.lang.String portletId,
                                        com.liferay.portal.model.User user)

getPortletTitle

public java.lang.String getPortletTitle(com.liferay.portal.model.Portlet portlet,
                                        javax.servlet.ServletContext ctx,
                                        java.util.Locale locale)

getPreferences

public javax.portlet.PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest req)

getPreferencesValidator

public javax.portlet.PreferencesValidator getPreferencesValidator(com.liferay.portal.model.Portlet portlet)

getRenderResponseImpl

public RenderResponseImpl getRenderResponseImpl(javax.portlet.RenderResponse res)

getSelectedUser

public com.liferay.portal.model.User getSelectedUser(javax.servlet.http.HttpServletRequest req)
                                              throws com.liferay.portal.SystemException,
                                                     com.liferay.portal.PortalException,
                                                     java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getSelectedUser

public com.liferay.portal.model.User getSelectedUser(javax.servlet.http.HttpServletRequest req,
                                                     boolean checkPermission)
                                              throws com.liferay.portal.SystemException,
                                                     com.liferay.portal.PortalException,
                                                     java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getSelectedUser

public com.liferay.portal.model.User getSelectedUser(javax.portlet.ActionRequest req)
                                              throws com.liferay.portal.SystemException,
                                                     com.liferay.portal.PortalException,
                                                     java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getSelectedUser

public com.liferay.portal.model.User getSelectedUser(javax.portlet.ActionRequest req,
                                                     boolean checkPermission)
                                              throws com.liferay.portal.SystemException,
                                                     com.liferay.portal.PortalException,
                                                     java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getSelectedUser

public com.liferay.portal.model.User getSelectedUser(javax.portlet.RenderRequest req)
                                              throws com.liferay.portal.SystemException,
                                                     com.liferay.portal.PortalException,
                                                     java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getSelectedUser

public com.liferay.portal.model.User getSelectedUser(javax.portlet.RenderRequest req,
                                                     boolean checkPermission)
                                              throws com.liferay.portal.SystemException,
                                                     com.liferay.portal.PortalException,
                                                     java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getSystemCommunityRoles

public java.lang.String[] getSystemCommunityRoles()

getSystemGroups

public java.lang.String[] getSystemGroups()

getSystemRoles

public java.lang.String[] getSystemRoles()

getUploadPortletRequest

public com.liferay.util.servlet.UploadPortletRequest getUploadPortletRequest(javax.portlet.ActionRequest req)

getUploadServletRequest

public com.liferay.util.servlet.UploadServletRequest getUploadServletRequest(javax.servlet.http.HttpServletRequest httpReq)

getUptime

public java.util.Date getUptime()

getUser

public com.liferay.portal.model.User getUser(javax.servlet.http.HttpServletRequest req)
                                      throws com.liferay.portal.SystemException,
                                             com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getUser

public com.liferay.portal.model.User getUser(javax.portlet.ActionRequest req)
                                      throws com.liferay.portal.SystemException,
                                             com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getUser

public com.liferay.portal.model.User getUser(javax.portlet.RenderRequest req)
                                      throws com.liferay.portal.SystemException,
                                             com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getUserId

public long getUserId(javax.servlet.http.HttpServletRequest req)

getUserId

public long getUserId(javax.portlet.ActionRequest req)

getUserId

public long getUserId(javax.portlet.RenderRequest req)

getUserName

public java.lang.String getUserName(long userId,
                                    java.lang.String defaultUserName)

getUserName

public java.lang.String getUserName(long userId,
                                    java.lang.String defaultUserName,
                                    java.lang.String userAttribute)

getUserName

public java.lang.String getUserName(long userId,
                                    java.lang.String defaultUserName,
                                    javax.servlet.http.HttpServletRequest req)

getUserName

public java.lang.String getUserName(long userId,
                                    java.lang.String defaultUserName,
                                    java.lang.String userAttribute,
                                    javax.servlet.http.HttpServletRequest req)

getUserPassword

public java.lang.String getUserPassword(javax.servlet.http.HttpSession ses)

getUserPassword

public java.lang.String getUserPassword(javax.servlet.http.HttpServletRequest req)

getUserPassword

public java.lang.String getUserPassword(javax.portlet.ActionRequest req)

getUserPassword

public java.lang.String getUserPassword(javax.portlet.RenderRequest req)

isLayoutFriendliable

public boolean isLayoutFriendliable(com.liferay.portal.model.Layout layout)

isLayoutParentable

public boolean isLayoutParentable(com.liferay.portal.model.Layout layout)

isLayoutParentable

public boolean isLayoutParentable(java.lang.String type)

isLayoutSitemapable

public boolean isLayoutSitemapable(com.liferay.portal.model.Layout layout)

isReservedParameter

public boolean isReservedParameter(java.lang.String name)

isSystemGroup

public boolean isSystemGroup(java.lang.String groupName)

isSystemRole

public boolean isSystemRole(java.lang.String roleName)

isUpdateAvailable

public boolean isUpdateAvailable()
                          throws com.liferay.portal.SystemException,
                                 com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

readDocumentFromFile

public org.dom4j.Document readDocumentFromFile(java.io.File file)
                                        throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

readDocumentFromFile

public org.dom4j.Document readDocumentFromFile(java.io.File file,
                                               boolean validate)
                                        throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

readDocumentFromStream

public org.dom4j.Document readDocumentFromStream(java.io.InputStream is)
                                          throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

readDocumentFromStream

public org.dom4j.Document readDocumentFromStream(java.io.InputStream is,
                                                 boolean validate)
                                          throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

readDocumentFromURL

public org.dom4j.Document readDocumentFromURL(java.lang.String url)
                                       throws org.dom4j.DocumentException,
                                              java.io.IOException
Throws:
org.dom4j.DocumentException
java.io.IOException

readDocumentFromURL

public org.dom4j.Document readDocumentFromURL(java.lang.String url,
                                              boolean validate)
                                       throws org.dom4j.DocumentException,
                                              java.io.IOException
Throws:
org.dom4j.DocumentException
java.io.IOException

readDocumentFromXML

public org.dom4j.Document readDocumentFromXML(java.lang.String xml)
                                       throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

readDocumentFromXML

public org.dom4j.Document readDocumentFromXML(java.lang.String xml,
                                              boolean validate)
                                       throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

renderPage

public void renderPage(com.liferay.portal.kernel.util.StringMaker sm,
                       javax.servlet.ServletContext ctx,
                       javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res,
                       java.lang.String path)
                throws java.io.IOException,
                       javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

renderPortlet

public void renderPortlet(com.liferay.portal.kernel.util.StringMaker sm,
                          javax.servlet.ServletContext ctx,
                          javax.servlet.http.HttpServletRequest req,
                          javax.servlet.http.HttpServletResponse res,
                          com.liferay.portal.model.Portlet portlet,
                          java.lang.String queryString)
                   throws java.io.IOException,
                          javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

renderPortlet

public void renderPortlet(com.liferay.portal.kernel.util.StringMaker sm,
                          javax.servlet.ServletContext ctx,
                          javax.servlet.http.HttpServletRequest req,
                          javax.servlet.http.HttpServletResponse res,
                          com.liferay.portal.model.Portlet portlet,
                          java.lang.String queryString,
                          java.lang.String columnId,
                          java.lang.Integer columnPos,
                          java.lang.Integer columnCount)
                   throws java.io.IOException,
                          javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

renderPortlet

public void renderPortlet(com.liferay.portal.kernel.util.StringMaker sm,
                          javax.servlet.ServletContext ctx,
                          javax.servlet.http.HttpServletRequest req,
                          javax.servlet.http.HttpServletResponse res,
                          com.liferay.portal.model.Portlet portlet,
                          java.lang.String queryString,
                          java.lang.String columnId,
                          java.lang.Integer columnPos,
                          java.lang.Integer columnCount,
                          java.lang.String path)
                   throws java.io.IOException,
                          javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

setPageSubtitle

public void setPageSubtitle(java.lang.String subtitle,
                            javax.servlet.http.HttpServletRequest req)

setPageTitle

public void setPageTitle(java.lang.String title,
                         javax.servlet.http.HttpServletRequest req)

storePreferences

public void storePreferences(javax.portlet.PortletPreferences prefs)
                      throws java.io.IOException,
                             javax.portlet.ValidatorException
Throws:
java.io.IOException
javax.portlet.ValidatorException

updatePortletMode

public javax.portlet.PortletMode updatePortletMode(java.lang.String portletId,
                                                   com.liferay.portal.model.User user,
                                                   com.liferay.portal.model.Layout layout,
                                                   javax.portlet.PortletMode portletMode,
                                                   javax.servlet.http.HttpServletRequest req)
                                            throws com.liferay.portal.SystemException,
                                                   com.liferay.portal.PortalException,
                                                   java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

updateWindowState

public javax.portlet.WindowState updateWindowState(java.lang.String portletId,
                                                   com.liferay.portal.model.User user,
                                                   com.liferay.portal.model.Layout layout,
                                                   javax.portlet.WindowState windowState,
                                                   javax.servlet.http.HttpServletRequest req)
                                            throws com.liferay.portal.SystemException,
                                                   com.liferay.portal.PortalException,
                                                   java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException