Java com.liferay.portal.kernel.util PortalUtil fields, constructors, methods, implement or subclass

Example usage for Java com.liferay.portal.kernel.util PortalUtil fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.liferay.portal.kernel.util PortalUtil.

The text is from its open source code.

Constructor

Method

voidaddPortletBreadcrumbEntry(HttpServletRequest httpServletRequest, String title, String url)
Adds an entry to the portlet breadcrumbs for the page in the request.
voidaddPortletBreadcrumbEntry(HttpServletRequest httpServletRequest, String title, String url, Map data, boolean portletBreadcrumbEntry)
Adds an entry to the portlet breadcrumbs for the page in the request.
voidaddPortletBreadcrumbEntry(HttpServletRequest httpServletRequest, String title, String url, Map data)
Adds an entry to the portlet breadcrumbs for the page in the request.
StringaddPreservedParameters(ThemeDisplay themeDisplay, String url)
Adds the preserved parameters doAsUserId, doAsUserLanguageId, doAsGroupId, and refererPlid to the URL.
voidcopyRequestParameters(ActionRequest actionRequest, ActionResponse actionResponse)
Copies the request parameters to the render parameters, unless a parameter with that name already exists in the render parameters.
StringescapeRedirect(String url)
Escapes the URL for use in a redirect and checks that security settings allow the URL is allowed for redirects.
StringgenerateRandomKey(HttpServletRequest httpServletRequest, String input)
Generates a random key to identify the request based on the input string.
StringgetActualURL(long groupId, boolean privateLayout, String mainPath, String friendlyURL, Map params, Map requestContext)
long[]getAncestorSiteGroupIds(long groupId)
StringgetClassName(long classNameId)
Returns the fully qualified name of the class from its ID.
longgetClassNameId(Class clazz)
Returns the ID of the class from its class object.
longgetClassNameId(String value)
Returns the ID of the class from its fully qualified name.
CompanygetCompany(HttpServletRequest httpServletRequest)
CompanygetCompany(PortletRequest portletRequest)
longgetCompanyId(HttpServletRequest httpServletRequest)
longgetCompanyId(PortletRequest portletRequest)
long[]getCompanyIds()
StringgetControlPanelFullURL(long scopeGroupId, String ppid, Map params)
longgetControlPanelPlid(long companyId)
longgetControlPanelPlid(PortletRequest portletRequest)
PortletURLgetControlPanelPortletURL(HttpServletRequest httpServletRequest, Group group, String portletId, long refererGroupId, long refererPlid, String lifecycle)
PortletURLgetControlPanelPortletURL(PortletRequest portletRequest, Group group, String portletId, long refererGroupId, long refererPlid, String lifecycle)
PortletURLgetControlPanelPortletURL(HttpServletRequest httpServletRequest, String portletId, String lifecycle)
PortletURLgetControlPanelPortletURL(PortletRequest portletRequest, String portletId, String lifecycle)
long[]getCurrentAndAncestorSiteGroupIds(long groupId)
long[]getCurrentAndAncestorSiteGroupIds(long[] groupIds)
long[]getCurrentAndAncestorSiteGroupIds(long groupId, boolean checkContentSharingWithChildrenEnabled)
long[]getCurrentAndAncestorSiteGroupIds(long[] groupIds, boolean checkContentSharingWithChildrenEnabled)
StringgetCurrentCompleteURL(HttpServletRequest httpServletRequest)
StringgetCurrentURL(HttpServletRequest httpServletRequest)
StringgetCurrentURL(PortletRequest portletRequest)
DategetDate(int month, int day, int year, int hour, int min, Class clazz)
Returns the date object for the specified month, day, year, hour, and minute, optionally throwing an exception if the date is invalid.
DategetDate(int month, int day, int year, int hour, int min, TimeZone timeZone, Class clazz)
Returns the date object for the specified month, day, year, hour, minute, and time zone, optionally throwing an exception if the date is invalid.
DategetDate(int month, int day, int year)
Returns the date object for the specified month, day, and year, or null if the date is invalid.
longgetDefaultCompanyId()
StringgetEmailFromAddress(PortletPreferences preferences, long companyId, String defaultValue)
StringgetEmailFromName(PortletPreferences preferences, long companyId, String defaultValue)
StringgetGroupFriendlyURL(LayoutSet layoutSet, ThemeDisplay themeDisplay)
HttpServletRequestgetHttpServletRequest(PortletRequest portletRequest)
HttpServletResponsegetHttpServletResponse(PortletResponse portletResponse)
StringgetLayoutActualURL(Layout layout)
StringgetLayoutFriendlyURL(Layout layout, ThemeDisplay themeDisplay)
StringgetLayoutFullURL(ThemeDisplay themeDisplay)
StringgetLayoutFullURL(Layout layout, ThemeDisplay themeDisplay)
StringgetLayoutFullURL(long groupId, String portletId)
StringgetLayoutFullURL(Layout layout, ThemeDisplay themeDisplay, boolean doAsUser)
StringgetLayoutFullURL(long groupId, String portletId, boolean secure)
StringgetLayoutTarget(Layout layout)
StringgetLayoutURL(ThemeDisplay themeDisplay)
StringgetLayoutURL(Layout layout, ThemeDisplay themeDisplay)
LiferayPortletRequestgetLiferayPortletRequest(PortletRequest portletRequest)
LiferayPortletResponsegetLiferayPortletResponse(PortletResponse portletResponse)
LocalegetLocale(HttpServletRequest httpServletRequest)
LocalegetLocale(PortletRequest portletRequest)
HttpServletRequestgetOriginalServletRequest(HttpServletRequest httpServletRequest)
StringgetPathContext()
StringgetPathContext(HttpServletRequest httpServletRequest)
StringgetPathContext(PortletRequest portletRequest)
StringgetPathContext(String contextPath)
StringgetPathFriendlyURLPrivateGroup()
StringgetPathFriendlyURLPrivateUser()
StringgetPathFriendlyURLPublic()
StringgetPathMain()
longgetPlidFromFriendlyURL(long companyId, String friendlyURL)
longgetPlidFromPortletId(long groupId, String portletId)
longgetPlidFromPortletId(long groupId, boolean privateLayout, String portletId)
PortalgetPortal()
intgetPortalServerPort(boolean secure)
StringgetPortalURL(HttpServletRequest httpServletRequest)
StringgetPortalURL(PortletRequest portletRequest)
StringgetPortalURL(ThemeDisplay themeDisplay)
StringgetPortalURL(String serverName, int serverPort, boolean secure)
StringgetPortletId(HttpServletRequest httpServletRequest)
StringgetPortletId(PortletRequest portletRequest)
StringgetPortletNamespace(String portletId)
StringgetPortletTitle(Portlet portlet, ServletContext servletContext, Locale locale)
StringgetPortletTitle(Portlet portlet, Locale locale)
StringgetPortletTitle(Portlet portlet, String languageId)
StringgetPortletTitle(Portlet portlet, User user)
StringgetPortletTitle(String portletId, Locale locale)
StringgetPortletTitle(String portletId, ResourceBundle resourceBundle)
StringgetPortletTitle(String portletId, String languageId)
StringgetPortletTitle(String portletId, User user)
ResourceBundlegetResourceBundle(Locale locale)
longgetScopeGroupId(HttpServletRequest httpServletRequest)
longgetScopeGroupId(Layout layout)
longgetScopeGroupId(long plid)
longgetScopeGroupId(PortletRequest portletRequest)
longgetScopeGroupId(HttpServletRequest httpServletRequest, String portletId)
longgetScopeGroupId(Layout layout, String portletId)
UsergetSelectedUser(HttpServletRequest httpServletRequest)
UsergetSelectedUser(PortletRequest portletRequest)
UsergetSelectedUser(HttpServletRequest httpServletRequest, boolean checkPermission)
UsergetSelectedUser(PortletRequest portletRequest, boolean checkPermission)
long[]getSharedContentSiteGroupIds(long companyId, long groupId, long userId)
LocalegetSiteDefaultLocale(Group group)
LocalegetSiteDefaultLocale(long groupId)
longgetSiteGroupId(long scopeGroupId)
StringgetStaticResourceURL(HttpServletRequest httpServletRequest, String uri)
UploadPortletRequestgetUploadPortletRequest(PortletRequest portletRequest)
UsergetUser(HttpServletRequest httpServletRequest)
UsergetUser(PortletRequest portletRequest)
longgetUserId(HttpServletRequest httpServletRequest)
longgetUserId(PortletRequest portletRequest)
StringgetUserName(BaseModel baseModel)
StringgetUserName(long userId, String defaultUserName)
StringgetUserPassword(HttpServletRequest httpServletRequest)
StringgetUserPassword(HttpSession session)
StringgetUserPassword(PortletRequest portletRequest)
longgetValidUserId(long companyId, long userId)
booleanisRightToLeft(HttpServletRequest httpServletRequest)
booleanisRSSFeedsEnabled()
booleanisSystemGroup(String groupName)
voidsendError(Exception e, ActionRequest actionRequest, ActionResponse actionResponse)
voidsendError(Exception e, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
voidsendError(int status, Exception e, ActionRequest actionRequest, ActionResponse actionResponse)
voidsendError(int status, Exception e, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
voidsetPortal(Portal portal)
StringtransformSQL(String sql)