public class PortalUtil
extends java.lang.Object
Constructor and Description |
---|
PortalUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addPageDescription(java.lang.String description,
javax.servlet.http.HttpServletRequest request)
Appends the description to the current meta description of the page in
the request.
|
static void |
addPageKeywords(java.lang.String keywords,
javax.servlet.http.HttpServletRequest request)
Appends the keywords to the current meta keywords of the page in the
request.
|
static void |
addPageSubtitle(java.lang.String subtitle,
javax.servlet.http.HttpServletRequest request)
Appends the subtitle to the current subtitle of the page in the request.
|
static void |
addPageTitle(java.lang.String title,
javax.servlet.http.HttpServletRequest request)
Appends the title to the current title of the page in the request.
|
static boolean |
addPortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener) |
static void |
addPortalPortEventListener(PortalPortEventListener portalPortEventListener)
Deprecated.
As of Wilberforce (7.0.x), replaced by
addPortalInetSocketAddressEventListener(
PortalInetSocketAddressEventListener) |
static void |
addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request,
java.lang.String title,
java.lang.String url)
Adds an entry to the portlet breadcrumbs for the page in the request.
|
static void |
addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request,
java.lang.String title,
java.lang.String url,
java.util.Map<java.lang.String,java.lang.Object> data)
Adds an entry to the portlet breadcrumbs for the page in the request.
|
static void |
addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request,
java.lang.String title,
java.lang.String url,
java.util.Map<java.lang.String,java.lang.Object> data,
boolean portletBreadcrumbEntry)
Adds an entry to the portlet breadcrumbs for the page in the request.
|
static void |
addPortletDefaultResource(javax.servlet.http.HttpServletRequest request,
Portlet portlet)
Adds the default resource permissions for the portlet to the page in the
request.
|
static void |
addPortletDefaultResource(long companyId,
Layout layout,
Portlet portlet) |
static java.lang.String |
addPreservedParameters(ThemeDisplay themeDisplay,
Layout layout,
java.lang.String url,
boolean doAsUser)
Adds the preserved parameters doAsGroupId and refererPlid to the URL,
optionally adding doAsUserId and doAsUserLanguageId as well.
|
static java.lang.String |
addPreservedParameters(ThemeDisplay themeDisplay,
java.lang.String url)
Adds the preserved parameters doAsUserId, doAsUserLanguageId,
doAsGroupId, and refererPlid to the URL.
|
static java.lang.String |
addPreservedParameters(ThemeDisplay themeDisplay,
java.lang.String url,
boolean typeControlPanel,
boolean doAsUser) |
static void |
addUserLocaleOptionsMessage(javax.servlet.http.HttpServletRequest request) |
static void |
clearRequestParameters(javax.portlet.RenderRequest renderRequest)
Clears the render parameters in the request if the portlet is in the
action phase.
|
static void |
copyRequestParameters(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
Copies the request parameters to the render parameters, unless a
parameter with that name already exists in the render parameters.
|
static java.lang.String |
escapeRedirect(java.lang.String url)
Escapes the URL for use in a redirect and checks that security settings
allow the URL is allowed for redirects.
|
static java.lang.String |
generateRandomKey(javax.servlet.http.HttpServletRequest request,
java.lang.String input)
Generates a random key to identify the request based on the input string.
|
static java.lang.String |
getAbsoluteURL(javax.servlet.http.HttpServletRequest request,
java.lang.String url) |
static LayoutQueryStringComposite |
getActualLayoutQueryStringComposite(long groupId,
boolean privateLayout,
java.lang.String friendlyURL,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.util.Map<java.lang.String,java.lang.Object> requestContext) |
static java.lang.String |
getActualURL(long groupId,
boolean privateLayout,
java.lang.String mainPath,
java.lang.String friendlyURL,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.util.Map<java.lang.String,java.lang.Object> requestContext) |
static java.lang.String |
getAlternateURL(java.lang.String canonicalURL,
ThemeDisplay themeDisplay,
java.util.Locale locale,
Layout layout)
Returns the alternate URL for the requested canonical URL in the given
locale.
|
static java.util.Map<java.util.Locale,java.lang.String> |
getAlternateURLs(java.lang.String canonicalURL,
ThemeDisplay themeDisplay,
Layout layout) |
static long[] |
getAncestorSiteGroupIds(long groupId) |
static BaseModel<?> |
getBaseModel(ResourcePermission resourcePermission)
Returns the base model instance for the resource permission.
|
static BaseModel<?> |
getBaseModel(java.lang.String modelName,
java.lang.String primKey)
Returns the base model instance for the model name and primary key.
|
static long |
getBasicAuthUserId(javax.servlet.http.HttpServletRequest request)
Deprecated.
As of Wilberforce (7.0.x), replaced by
HttpAuthManagerUtil.getBasicUserId(
HttpServletRequest) |
static long |
getBasicAuthUserId(javax.servlet.http.HttpServletRequest request,
long companyId)
Deprecated.
As of Wilberforce (7.0.x), replaced by
HttpAuthManagerUtil.getBasicUserId(
HttpServletRequest) |
static java.util.List<Group> |
getBrowsableScopeGroups(long userId,
long companyId,
long groupId,
java.lang.String portletId) |
static java.lang.String |
getCanonicalURL(java.lang.String completeURL,
ThemeDisplay themeDisplay,
Layout layout)
Returns the canonical URL for the page.
|
static java.lang.String |
getCanonicalURL(java.lang.String completeURL,
ThemeDisplay themeDisplay,
Layout layout,
boolean forceLayoutFriendlyURL)
Returns the canonical URL of the page, optionally including the page's
friendly URL.
|
static java.lang.String |
getCanonicalURL(java.lang.String completeURL,
ThemeDisplay themeDisplay,
Layout layout,
boolean forceLayoutFriendlyURL,
boolean includeQueryString)
Returns the canonical URL of the page.
|
static java.lang.String |
getCDNHost(boolean secure)
Returns the secure (HTTPS) or insecure (HTTP) content distribution
network (CDN) host address for this portal.
|
static java.lang.String |
getCDNHost(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getCDNHostHttp(long companyId)
Returns the insecure (HTTP) content distribution network (CDN) host
address
|
static java.lang.String |
getCDNHostHttps(long companyId)
Returns the secure (HTTPS) content distribution network (CDN) host
address
|
static java.lang.String |
getClassName(long classNameId)
Returns the fully qualified name of the class from its ID.
|
static long |
getClassNameId(java.lang.Class<?> clazz)
Returns the ID of the class from its class object.
|
static long |
getClassNameId(java.lang.String value)
Returns the ID of the class from its fully qualified name.
|
static Company |
getCompany(javax.servlet.http.HttpServletRequest request) |
static Company |
getCompany(javax.portlet.PortletRequest portletRequest) |
static long |
getCompanyId(javax.servlet.http.HttpServletRequest request) |
static long |
getCompanyId(javax.portlet.PortletRequest portletRequest) |
static long[] |
getCompanyIds() |
static java.util.Set<java.lang.String> |
getComputerAddresses() |
static java.lang.String |
getComputerName() |
static java.lang.String |
getControlPanelFullURL(long scopeGroupId,
java.lang.String ppid,
java.util.Map<java.lang.String,java.lang.String[]> params) |
static long |
getControlPanelPlid(long companyId) |
static long |
getControlPanelPlid(javax.portlet.PortletRequest portletRequest) |
static javax.portlet.PortletURL |
getControlPanelPortletURL(javax.servlet.http.HttpServletRequest request,
Group group,
java.lang.String portletId,
long refererGroupId,
long refererPlid,
java.lang.String lifecycle) |
static javax.portlet.PortletURL |
getControlPanelPortletURL(javax.servlet.http.HttpServletRequest request,
java.lang.String portletId,
java.lang.String lifecycle) |
static javax.portlet.PortletURL |
getControlPanelPortletURL(javax.portlet.PortletRequest portletRequest,
Group group,
java.lang.String portletId,
long refererGroupId,
long refererPlid,
java.lang.String lifecycle) |
static javax.portlet.PortletURL |
getControlPanelPortletURL(javax.portlet.PortletRequest portletRequest,
java.lang.String portletId,
java.lang.String lifecycle) |
static java.lang.String |
getCreateAccountURL(javax.servlet.http.HttpServletRequest request,
ThemeDisplay themeDisplay) |
static long[] |
getCurrentAndAncestorSiteGroupIds(long groupId) |
static long[] |
getCurrentAndAncestorSiteGroupIds(long[] groupIds) |
static long[] |
getCurrentAndAncestorSiteGroupIds(long[] groupIds,
boolean checkContentSharingWithChildrenEnabled) |
static long[] |
getCurrentAndAncestorSiteGroupIds(long groupId,
boolean checkContentSharingWithChildrenEnabled) |
static java.util.List<Group> |
getCurrentAndAncestorSiteGroups(long groupId) |
static java.util.List<Group> |
getCurrentAndAncestorSiteGroups(long[] groupIds) |
static java.util.List<Group> |
getCurrentAndAncestorSiteGroups(long[] groupIds,
boolean checkContentSharingWithChildrenEnabled) |
static java.util.List<Group> |
getCurrentAndAncestorSiteGroups(long groupId,
boolean checkContentSharingWithChildrenEnabled) |
static java.lang.String |
getCurrentCompleteURL(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getCurrentURL(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getCurrentURL(javax.portlet.PortletRequest portletRequest) |
static java.lang.String |
getCustomSQLFunctionIsNotNull() |
static java.lang.String |
getCustomSQLFunctionIsNull() |
static java.util.Date |
getDate(int month,
int day,
int year)
Returns the date object for the specified month, day, and year, or
null if the date is invalid. |
static java.util.Date |
getDate(int month,
int day,
int year,
java.lang.Class<? extends PortalException> clazz)
Returns the date object for the specified month, day, and year,
optionally throwing an exception if the date is invalid.
|
static java.util.Date |
getDate(int month,
int day,
int year,
int hour,
int min,
java.lang.Class<? extends PortalException> clazz)
Returns the date object for the specified month, day, year, hour, and
minute, optionally throwing an exception if the date is invalid.
|
static java.util.Date |
getDate(int month,
int day,
int year,
int hour,
int min,
java.util.TimeZone timeZone,
java.lang.Class<? extends PortalException> 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.
|
static java.util.Date |
getDate(int month,
int day,
int year,
java.util.TimeZone timeZone,
java.lang.Class<? extends PortalException> clazz)
Returns the date object for the specified month, day, year, and time
zone, optionally throwing an exception if the date is invalid.
|
static long |
getDefaultCompanyId() |
static long |
getDigestAuthUserId(javax.servlet.http.HttpServletRequest request)
Deprecated.
As of Wilberforce (7.0.x), replaced by
HttpAuthManagerUtil.getDigestUserId(
HttpServletRequest) |
static java.lang.String |
getEmailFromAddress(javax.portlet.PortletPreferences preferences,
long companyId,
java.lang.String defaultValue) |
static java.lang.String |
getEmailFromName(javax.portlet.PortletPreferences preferences,
long companyId,
java.lang.String defaultValue) |
static java.util.Map<java.lang.String,java.io.Serializable> |
getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
javax.servlet.http.HttpServletRequest request) |
static java.util.Map<java.lang.String,java.io.Serializable> |
getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
javax.portlet.PortletRequest portletRequest) |
static java.util.Map<java.lang.String,java.io.Serializable> |
getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
UploadPortletRequest uploadPortletRequest) |
static java.io.Serializable |
getExpandoValue(javax.servlet.http.HttpServletRequest request,
java.lang.String name,
int type,
java.lang.String displayType) |
static java.io.Serializable |
getExpandoValue(javax.portlet.PortletRequest portletRequest,
java.lang.String name,
int type,
java.lang.String displayType) |
static java.io.Serializable |
getExpandoValue(UploadPortletRequest uploadPortletRequest,
java.lang.String name,
int type,
java.lang.String displayType) |
static java.lang.String |
getFacebookURL(Portlet portlet,
java.lang.String facebookCanvasPageURL,
ThemeDisplay themeDisplay) |
static java.lang.String |
getFirstPageLayoutTypes(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getForwardedHost(javax.servlet.http.HttpServletRequest request) |
static int |
getForwardedPort(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getFullName(java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName) |
static java.lang.String |
getGlobalLibDir() |
static java.lang.String |
getGoogleGadgetURL(Portlet portlet,
ThemeDisplay themeDisplay) |
static java.lang.String |
getGroupFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay) |
static java.lang.String |
getGroupFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay,
java.util.Locale locale) |
static int[] |
getGroupFriendlyURLIndex(java.lang.String requestURI) |
static java.lang.String[] |
getGroupPermissions(javax.servlet.http.HttpServletRequest request) |
static java.lang.String[] |
getGroupPermissions(javax.servlet.http.HttpServletRequest request,
java.lang.String className) |
static java.lang.String[] |
getGroupPermissions(javax.portlet.PortletRequest portletRequest) |
static java.lang.String[] |
getGroupPermissions(javax.portlet.PortletRequest portletRequest,
java.lang.String className) |
static java.lang.String[] |
getGuestPermissions(javax.servlet.http.HttpServletRequest request) |
static java.lang.String[] |
getGuestPermissions(javax.servlet.http.HttpServletRequest request,
java.lang.String className) |
static java.lang.String[] |
getGuestPermissions(javax.portlet.PortletRequest portletRequest) |
static java.lang.String[] |
getGuestPermissions(javax.portlet.PortletRequest portletRequest,
java.lang.String className) |
static java.lang.String |
getHomeURL(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getHost(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getHost(javax.portlet.PortletRequest portletRequest) |
static javax.servlet.http.HttpServletRequest |
getHttpServletRequest(javax.portlet.PortletRequest portletRequest) |
static javax.servlet.http.HttpServletResponse |
getHttpServletResponse(javax.portlet.PortletResponse portletResponse) |
static java.lang.String |
getI18nPathLanguageId(java.util.Locale locale,
java.lang.String defaultI18nPathLanguageId) |
static java.lang.String |
getJournalArticleActualURL(long groupId,
boolean privateLayout,
java.lang.String mainPath,
java.lang.String friendlyURL,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.util.Map<java.lang.String,java.lang.Object> requestContext)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static Layout |
getJournalArticleLayout(long groupId,
boolean privateLayout,
java.lang.String friendlyURL)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static java.lang.String |
getJsSafePortletId(java.lang.String portletId) |
static java.lang.String |
getLayoutActualURL(Layout layout) |
static java.lang.String |
getLayoutActualURL(Layout layout,
java.lang.String mainPath) |
static java.lang.String |
getLayoutActualURL(long groupId,
boolean privateLayout,
java.lang.String mainPath,
java.lang.String friendlyURL) |
static java.lang.String |
getLayoutActualURL(long groupId,
boolean privateLayout,
java.lang.String mainPath,
java.lang.String friendlyURL,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.util.Map<java.lang.String,java.lang.Object> requestContext) |
static java.lang.String |
getLayoutFriendlyURL(Layout layout,
ThemeDisplay themeDisplay) |
static java.lang.String |
getLayoutFriendlyURL(Layout layout,
ThemeDisplay themeDisplay,
java.util.Locale locale) |
static java.lang.String |
getLayoutFriendlyURL(ThemeDisplay themeDisplay) |
static LayoutFriendlyURLComposite |
getLayoutFriendlyURLComposite(long groupId,
boolean privateLayout,
java.lang.String friendlyURL,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.util.Map<java.lang.String,java.lang.Object> requestContext)
Deprecated.
As of Judson (7.1.x), replaced by
getLayoutFriendlyURLSeparatorComposite(long, boolean,
String, Map, Map) |
static LayoutFriendlyURLSeparatorComposite |
getLayoutFriendlyURLSeparatorComposite(long groupId,
boolean privateLayout,
java.lang.String friendlyURL,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.util.Map<java.lang.String,java.lang.Object> requestContext) |
static java.lang.String |
getLayoutFullURL(Layout layout,
ThemeDisplay themeDisplay) |
static java.lang.String |
getLayoutFullURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser) |
static java.lang.String |
getLayoutFullURL(long groupId,
java.lang.String portletId) |
static java.lang.String |
getLayoutFullURL(long groupId,
java.lang.String portletId,
boolean secure) |
static java.lang.String |
getLayoutFullURL(ThemeDisplay themeDisplay) |
static java.lang.String |
getLayoutRelativeURL(Layout layout,
ThemeDisplay themeDisplay) |
static java.lang.String |
getLayoutRelativeURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser) |
static java.lang.String |
getLayoutSetDisplayURL(LayoutSet layoutSet,
boolean secureConnection) |
static java.lang.String |
getLayoutSetFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay) |
static java.lang.String |
getLayoutTarget(Layout layout) |
static java.lang.String |
getLayoutURL(Layout layout,
ThemeDisplay themeDisplay) |
static java.lang.String |
getLayoutURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser) |
static java.lang.String |
getLayoutURL(Layout layout,
ThemeDisplay themeDisplay,
java.util.Locale locale) |
static java.lang.String |
getLayoutURL(ThemeDisplay themeDisplay) |
static LiferayPortletRequest |
getLiferayPortletRequest(javax.portlet.PortletRequest portletRequest) |
static LiferayPortletResponse |
getLiferayPortletResponse(javax.portlet.PortletResponse portletResponse) |
static java.util.Locale |
getLocale(javax.servlet.http.HttpServletRequest request) |
static java.util.Locale |
getLocale(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean initialize) |
static java.util.Locale |
getLocale(javax.portlet.PortletRequest portletRequest) |
static java.lang.String |
getLocalizedFriendlyURL(javax.servlet.http.HttpServletRequest request,
Layout layout,
java.util.Locale locale,
java.util.Locale originalLocale) |
static java.lang.String |
getMailId(java.lang.String mx,
java.lang.String popPortletPrefix,
java.lang.Object... ids) |
static java.lang.String |
getNetvibesURL(Portlet portlet,
ThemeDisplay themeDisplay) |
static java.lang.String |
getNewPortletTitle(java.lang.String portletTitle,
java.lang.String oldScopeName,
java.lang.String newScopeName) |
static javax.servlet.http.HttpServletRequest |
getOriginalServletRequest(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getPathContext() |
static java.lang.String |
getPathContext(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getPathContext(javax.portlet.PortletRequest portletRequest) |
static java.lang.String |
getPathContext(java.lang.String contextPath) |
static java.lang.String |
getPathFriendlyURLPrivateGroup() |
static java.lang.String |
getPathFriendlyURLPrivateUser() |
static java.lang.String |
getPathFriendlyURLPublic() |
static java.lang.String |
getPathImage() |
static java.lang.String |
getPathMain() |
static java.lang.String |
getPathModule() |
static java.lang.String |
getPathProxy() |
static long |
getPlidFromFriendlyURL(long companyId,
java.lang.String friendlyURL) |
static long |
getPlidFromPortletId(long groupId,
boolean privateLayout,
java.lang.String portletId) |
static long |
getPlidFromPortletId(long groupId,
java.lang.String portletId) |
static Portal |
getPortal() |
static PortalInetSocketAddressEventListener[] |
getPortalInetSocketAddressEventListeners() |
static java.lang.String |
getPortalLibDir() |
static java.net.InetAddress |
getPortalLocalInetAddress(boolean secure) |
static int |
getPortalLocalPort(boolean secure) |
static int |
getPortalPort(boolean secure)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getPortalServerPort(boolean) |
static java.util.Properties |
getPortalProperties() |
static java.net.InetAddress |
getPortalServerInetAddress(boolean secure) |
static int |
getPortalServerPort(boolean secure) |
static java.lang.String |
getPortalURL(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getPortalURL(javax.servlet.http.HttpServletRequest request,
boolean secure) |
static java.lang.String |
getPortalURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay) |
static java.lang.String |
getPortalURL(Layout layout,
ThemeDisplay themeDisplay) |
static java.lang.String |
getPortalURL(javax.portlet.PortletRequest portletRequest) |
static java.lang.String |
getPortalURL(javax.portlet.PortletRequest portletRequest,
boolean secure) |
static java.lang.String |
getPortalURL(java.lang.String serverName,
int serverPort,
boolean secure) |
static java.lang.String |
getPortalURL(ThemeDisplay themeDisplay) |
static java.lang.String |
getPortalWebDir() |
static java.util.List<BreadcrumbEntry> |
getPortletBreadcrumbs(javax.servlet.http.HttpServletRequest request)
Deprecated.
As of Wilberforce (7.0.x), replaced by
BreadcrumbUtil.getPortletBreadcrumbEntries(
HttpServletRequest) |
static javax.portlet.PortletConfig |
getPortletConfig(long companyId,
java.lang.String portletId,
javax.servlet.ServletContext servletContext) |
static java.lang.String |
getPortletDescription(Portlet portlet,
javax.servlet.ServletContext servletContext,
java.util.Locale locale) |
static java.lang.String |
getPortletDescription(Portlet portlet,
User user) |
static java.lang.String |
getPortletDescription(java.lang.String portletId,
java.util.Locale locale) |
static java.lang.String |
getPortletDescription(java.lang.String portletId,
java.lang.String languageId) |
static java.lang.String |
getPortletDescription(java.lang.String portletId,
User user) |
static java.lang.String |
getPortletId(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getPortletId(javax.portlet.PortletRequest portletRequest) |
static java.lang.String |
getPortletLongTitle(Portlet portlet,
java.util.Locale locale) |
static java.lang.String |
getPortletLongTitle(Portlet portlet,
javax.servlet.ServletContext servletContext,
java.util.Locale locale) |
static java.lang.String |
getPortletLongTitle(Portlet portlet,
java.lang.String languageId) |
static java.lang.String |
getPortletLongTitle(Portlet portlet,
User user) |
static java.lang.String |
getPortletLongTitle(java.lang.String portletId,
java.util.Locale locale) |
static java.lang.String |
getPortletLongTitle(java.lang.String portletId,
java.lang.String languageId) |
static java.lang.String |
getPortletLongTitle(java.lang.String portletId,
User user) |
static java.lang.String |
getPortletNamespace(java.lang.String portletId) |
static java.lang.String |
getPortletTitle(Portlet portlet,
java.util.Locale locale) |
static java.lang.String |
getPortletTitle(javax.portlet.PortletRequest portletRequest) |
static java.lang.String |
getPortletTitle(javax.portlet.PortletResponse portletResponse) |
static java.lang.String |
getPortletTitle(Portlet portlet,
javax.servlet.ServletContext servletContext,
java.util.Locale locale) |
static java.lang.String |
getPortletTitle(Portlet portlet,
java.lang.String languageId) |
static java.lang.String |
getPortletTitle(Portlet portlet,
User user) |
static java.lang.String |
getPortletTitle(java.lang.String portletId,
java.util.Locale locale) |
static java.lang.String |
getPortletTitle(java.lang.String portletId,
java.util.ResourceBundle resourceBundle) |
static java.lang.String |
getPortletTitle(java.lang.String portletId,
java.lang.String languageId) |
static java.lang.String |
getPortletTitle(java.lang.String portletId,
User user) |
static java.lang.String |
getPortletXmlFileName() |
static javax.portlet.PortletPreferences |
getPreferences(javax.servlet.http.HttpServletRequest request) |
static javax.portlet.PreferencesValidator |
getPreferencesValidator(Portlet portlet) |
static java.lang.String |
getRelativeHomeURL(javax.servlet.http.HttpServletRequest request) |
static java.util.ResourceBundle |
getResourceBundle(java.util.Locale locale) |
static long |
getScopeGroupId(javax.servlet.http.HttpServletRequest request) |
static long |
getScopeGroupId(javax.servlet.http.HttpServletRequest request,
java.lang.String portletId) |
static long |
getScopeGroupId(javax.servlet.http.HttpServletRequest request,
java.lang.String portletId,
boolean checkStagingGroup) |
static long |
getScopeGroupId(Layout layout) |
static long |
getScopeGroupId(Layout layout,
java.lang.String portletId) |
static long |
getScopeGroupId(long plid) |
static long |
getScopeGroupId(javax.portlet.PortletRequest portletRequest) |
static User |
getSelectedUser(javax.servlet.http.HttpServletRequest request) |
static User |
getSelectedUser(javax.servlet.http.HttpServletRequest request,
boolean checkPermission) |
static User |
getSelectedUser(javax.portlet.PortletRequest portletRequest) |
static User |
getSelectedUser(javax.portlet.PortletRequest portletRequest,
boolean checkPermission) |
static java.lang.String |
getServletContextName() |
static long[] |
getSharedContentSiteGroupIds(long companyId,
long groupId,
long userId) |
static javax.portlet.PortletURL |
getSiteAdministrationURL(javax.servlet.http.HttpServletRequest request,
ThemeDisplay themeDisplay,
java.lang.String portletId)
Deprecated.
As of Wilberforce (7.0.x), replaced by
#getControlPanelPortletURL(PortletRequest, Group, String,
long, String) |
static javax.portlet.PortletURL |
getSiteAdministrationURL(javax.portlet.PortletResponse portletResponse,
ThemeDisplay themeDisplay,
java.lang.String portletName)
Deprecated.
As of Wilberforce (7.0.x), replaced by
#getControlPanelPortletURL(PortletRequest, Group, String,
long, String) |
static java.lang.String |
getSiteAdminURL(Company company,
Group group,
java.lang.String ppid,
java.util.Map<java.lang.String,java.lang.String[]> params)
Deprecated.
As of Judson (7.1.x), replaced by
getSiteAdminURL(ThemeDisplay, String, Map) |
static java.lang.String |
getSiteAdminURL(Group group,
java.lang.String ppid,
java.util.Map<java.lang.String,java.lang.String[]> params)
Deprecated.
As of Judson (7.1.x), replaced by
getSiteAdminURL(ThemeDisplay, String, Map) |
static java.lang.String |
getSiteAdminURL(ThemeDisplay themeDisplay,
java.lang.String ppid,
java.util.Map<java.lang.String,java.lang.String[]> params) |
static long[] |
getSiteAndCompanyGroupIds(long groupId)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getCurrentAndAncestorSiteGroupIds(long) |
static long[] |
getSiteAndCompanyGroupIds(ThemeDisplay themeDisplay)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getCurrentAndAncestorSiteGroupIds(long) |
static java.util.Locale |
getSiteDefaultLocale(Group group) |
static java.util.Locale |
getSiteDefaultLocale(long groupId) |
static long |
getSiteGroupId(long scopeGroupId) |
static java.lang.String |
getSiteLoginURL(ThemeDisplay themeDisplay) |
static java.lang.String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
java.lang.String uri) |
static java.lang.String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
java.lang.String uri,
long timestamp) |
static java.lang.String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
java.lang.String uri,
java.lang.String queryString) |
static java.lang.String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
java.lang.String uri,
java.lang.String queryString,
long timestamp) |
static java.lang.String |
getStrutsAction(javax.servlet.http.HttpServletRequest request) |
static java.lang.String[] |
getSystemGroups() |
static java.lang.String[] |
getSystemOrganizationRoles() |
static java.lang.String[] |
getSystemRoles() |
static java.lang.String[] |
getSystemSiteRoles() |
static java.lang.String |
getUniqueElementId(javax.servlet.http.HttpServletRequest request,
java.lang.String namespace,
java.lang.String id) |
static java.lang.String |
getUniqueElementId(javax.portlet.PortletRequest request,
java.lang.String namespace,
java.lang.String id) |
static UploadPortletRequest |
getUploadPortletRequest(javax.portlet.PortletRequest portletRequest) |
static UploadServletRequest |
getUploadServletRequest(javax.servlet.http.HttpServletRequest request) |
static java.util.Date |
getUptime() |
static java.lang.String |
getURLWithSessionId(java.lang.String url,
java.lang.String sessionId) |
static User |
getUser(javax.servlet.http.HttpServletRequest request) |
static User |
getUser(javax.portlet.PortletRequest portletRequest) |
static java.lang.String |
getUserEmailAddress(long userId) |
static long |
getUserId(javax.servlet.http.HttpServletRequest request) |
static long |
getUserId(javax.portlet.PortletRequest portletRequest) |
static java.lang.String |
getUserName(BaseModel<?> baseModel) |
static java.lang.String |
getUserName(long userId,
java.lang.String defaultUserName) |
static java.lang.String |
getUserName(long userId,
java.lang.String defaultUserName,
javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getUserName(long userId,
java.lang.String defaultUserName,
java.lang.String userAttribute) |
static java.lang.String |
getUserName(long userId,
java.lang.String defaultUserName,
java.lang.String userAttribute,
javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getUserPassword(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getUserPassword(javax.servlet.http.HttpSession session) |
static java.lang.String |
getUserPassword(javax.portlet.PortletRequest portletRequest) |
static java.lang.String |
getUserValue(long userId,
java.lang.String param,
java.lang.String defaultValue)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static java.lang.String |
getValidPortalDomain(long companyId,
java.lang.String domain) |
static long |
getValidUserId(long companyId,
long userId) |
static java.lang.String |
getVirtualHostname(LayoutSet layoutSet) |
static java.lang.String |
getVirtualLayoutActualURL(long groupId,
boolean privateLayout,
java.lang.String mainPath,
java.lang.String friendlyURL,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.util.Map<java.lang.String,java.lang.Object> requestContext)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static LayoutFriendlyURLComposite |
getVirtualLayoutFriendlyURLComposite(boolean privateLayout,
java.lang.String friendlyURL,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.util.Map<java.lang.String,java.lang.Object> requestContext)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static java.lang.String |
getWidgetURL(Portlet portlet,
ThemeDisplay themeDisplay) |
static void |
initCustomSQL() |
static User |
initUser(javax.servlet.http.HttpServletRequest request) |
static void |
invokeTaglibDiscussion(javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static void |
invokeTaglibDiscussionPagination(javax.portlet.PortletConfig portletConfig,
javax.portlet.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static boolean |
isCDNDynamicResourcesEnabled(javax.servlet.http.HttpServletRequest request) |
static boolean |
isCDNDynamicResourcesEnabled(long companyId) |
static boolean |
isCompanyAdmin(User user) |
static boolean |
isCompanyControlPanelPortlet(java.lang.String portletId,
java.lang.String category,
ThemeDisplay themeDisplay) |
static boolean |
isCompanyControlPanelPortlet(java.lang.String portletId,
ThemeDisplay themeDisplay) |
static boolean |
isControlPanelPortlet(java.lang.String portletId,
java.lang.String category,
ThemeDisplay themeDisplay) |
static boolean |
isControlPanelPortlet(java.lang.String portletId,
ThemeDisplay themeDisplay) |
static boolean |
isCustomPortletMode(javax.portlet.PortletMode portletMode) |
static boolean |
isForwardedSecure(javax.servlet.http.HttpServletRequest request) |
static boolean |
isGroupAdmin(User user,
long groupId) |
static boolean |
isGroupFriendlyURL(java.lang.String fullURL,
java.lang.String groupFriendlyURL,
java.lang.String layoutFriendlyURL) |
static boolean |
isGroupOwner(User user,
long groupId) |
static boolean |
isLayoutDescendant(Layout layout,
long layoutId) |
static boolean |
isLayoutSitemapable(Layout layout) |
static boolean |
isLoginRedirectRequired(javax.servlet.http.HttpServletRequest request) |
static boolean |
isMethodGet(javax.portlet.PortletRequest portletRequest) |
static boolean |
isMethodPost(javax.portlet.PortletRequest portletRequest) |
static boolean |
isMultipartRequest(javax.servlet.http.HttpServletRequest request) |
static boolean |
isOmniadmin(long userId) |
static boolean |
isOmniadmin(User user) |
static boolean |
isReservedParameter(java.lang.String name) |
static boolean |
isRightToLeft(javax.servlet.http.HttpServletRequest request) |
static boolean |
isRSSFeedsEnabled() |
static boolean |
isSecure(javax.servlet.http.HttpServletRequest request) |
static boolean |
isSkipPortletContentProcesssing(Group group,
javax.servlet.http.HttpServletRequest httpServletRequest,
LayoutTypePortlet layoutTypePortlet,
PortletDisplay portletDisplay,
java.lang.String portletName) |
static boolean |
isSkipPortletContentRendering(Group group,
LayoutTypePortlet layoutTypePortlet,
PortletDisplay portletDisplay,
java.lang.String portletName) |
static boolean |
isSystemGroup(java.lang.String groupName) |
static boolean |
isSystemRole(java.lang.String roleName) |
static boolean |
isUpdateAvailable() |
static boolean |
isValidResourceId(java.lang.String resourceId) |
static boolean |
removePortalEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener) |
void |
removePortalPortEventListener(PortalPortEventListener portalPortEventListener)
Deprecated.
As of Wilberforce (7.0.x), replaced by
removePortalEventListener(
PortalInetSocketAddressEventListener) |
static void |
resetCDNHosts() |
static java.lang.String |
resetPortletParameters(java.lang.String url,
java.lang.String portletId) |
static void |
sendError(java.lang.Exception e,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
static void |
sendError(java.lang.Exception e,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
sendError(int status,
java.lang.Exception e,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
static void |
sendError(int status,
java.lang.Exception e,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
sendRSSFeedsDisabledError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
sendRSSFeedsDisabledError(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse) |
static void |
setPageDescription(java.lang.String description,
javax.servlet.http.HttpServletRequest request)
Sets the description for a page.
|
static void |
setPageKeywords(java.lang.String keywords,
javax.servlet.http.HttpServletRequest request)
Sets the keywords for a page.
|
static void |
setPageSubtitle(java.lang.String subtitle,
javax.servlet.http.HttpServletRequest request)
Sets the subtitle for a page.
|
static void |
setPageTitle(java.lang.String title,
javax.servlet.http.HttpServletRequest request)
Sets the whole title for a page.
|
void |
setPortal(Portal portal) |
static void |
setPortalInetSocketAddresses(javax.servlet.http.HttpServletRequest request) |
static void |
setPortalPort(javax.servlet.http.HttpServletRequest request)
Deprecated.
As of Wilberforce (7.0.x), replaced by
setPortalInetSocketAddresses(HttpServletRequest) |
static void |
storePreferences(javax.portlet.PortletPreferences portletPreferences) |
static java.lang.String[] |
stripURLAnchor(java.lang.String url,
java.lang.String separator) |
static java.lang.String |
transformCustomSQL(java.lang.String sql) |
static java.lang.String |
transformSQL(java.lang.String sql) |
static void |
updateImageId(BaseModel<?> baseModel,
boolean hasImage,
byte[] bytes,
java.lang.String fieldName,
long maxSize,
int maxHeight,
int maxWidth) |
static javax.portlet.PortletMode |
updatePortletMode(java.lang.String portletId,
User user,
Layout layout,
javax.portlet.PortletMode portletMode,
javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
updateRedirect(java.lang.String redirect,
java.lang.String oldPath,
java.lang.String newPath) |
static javax.portlet.WindowState |
updateWindowState(java.lang.String portletId,
User user,
Layout layout,
javax.portlet.WindowState windowState,
javax.servlet.http.HttpServletRequest request) |
public static void addPageDescription(java.lang.String description, javax.servlet.http.HttpServletRequest request)
description
- the description to append to the current meta
descriptionrequest
- the servlet request for the pagepublic static void addPageKeywords(java.lang.String keywords, javax.servlet.http.HttpServletRequest request)
keywords
- the keywords to add to the current meta keywords
(comma-separated)request
- the servlet request for the pagepublic static void addPageSubtitle(java.lang.String subtitle, javax.servlet.http.HttpServletRequest request)
subtitle
- the subtitle to append to the current subtitlerequest
- the servlet request for the pagepublic static void addPageTitle(java.lang.String title, javax.servlet.http.HttpServletRequest request)
title
- the title to append to the current titlerequest
- the servlet request for the pagepublic static boolean addPortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener)
@Deprecated public static void addPortalPortEventListener(PortalPortEventListener portalPortEventListener)
addPortalInetSocketAddressEventListener(
PortalInetSocketAddressEventListener)
portalPortEventListener
- the portal port event listener to addpublic static void addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request, java.lang.String title, java.lang.String url)
request
- the servlet request for the pagetitle
- the title of the new breadcrumb entryurl
- the URL of the new breadcrumb entrypublic static void addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request, java.lang.String title, java.lang.String url, java.util.Map<java.lang.String,java.lang.Object> data)
request
- the servlet request for the pagetitle
- the title of the new breadcrumb entryurl
- the URL of the new breadcrumb entrydata
- the HTML5 data parameters of the new breadcrumb entrypublic static void addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request, java.lang.String title, java.lang.String url, java.util.Map<java.lang.String,java.lang.Object> data, boolean portletBreadcrumbEntry)
request
- the servlet request for the pagetitle
- the title of the new breadcrumb entryurl
- the URL of the new breadcrumb entrydata
- the HTML5 data parameters of the new breadcrumb entryportletBreadcrumbEntry
- whether the entry is a portlet breadcrumb
entrypublic static void addPortletDefaultResource(javax.servlet.http.HttpServletRequest request, Portlet portlet) throws PortalException
request
- the servlet request for the pageportlet
- the portletPortalException
- if a portal exception occurredpublic static void addPortletDefaultResource(long companyId, Layout layout, Portlet portlet) throws PortalException
PortalException
public static java.lang.String addPreservedParameters(ThemeDisplay themeDisplay, Layout layout, java.lang.String url, boolean doAsUser)
Preserved parameters are parameters that should be sent with every request as the user navigates the portal.
themeDisplay
- the current theme displaylayout
- the current pageurl
- the URLdoAsUser
- whether to include doAsUserId and doAsLanguageId in the
URL if they are available. If false
, doAsUserId and
doAsUserLanguageId will never be added.public static java.lang.String addPreservedParameters(ThemeDisplay themeDisplay, java.lang.String url)
themeDisplay
- the current theme displayurl
- the URLpublic static java.lang.String addPreservedParameters(ThemeDisplay themeDisplay, java.lang.String url, boolean typeControlPanel, boolean doAsUser)
public static void addUserLocaleOptionsMessage(javax.servlet.http.HttpServletRequest request)
public static void clearRequestParameters(javax.portlet.RenderRequest renderRequest)
renderRequest
- the render requestpublic static void copyRequestParameters(javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse)
actionRequest
- the request from which to get the request parametersactionResponse
- the response to receive the render parameterspublic static java.lang.String escapeRedirect(java.lang.String url)
url
- the URL to escapenull
if the URL is not allowed
for redirectspublic static java.lang.String generateRandomKey(javax.servlet.http.HttpServletRequest request, java.lang.String input)
request
- the servlet request for the pageinput
- the input stringpublic static java.lang.String getAbsoluteURL(javax.servlet.http.HttpServletRequest request, java.lang.String url)
public static LayoutQueryStringComposite getActualLayoutQueryStringComposite(long groupId, boolean privateLayout, java.lang.String friendlyURL, java.util.Map<java.lang.String,java.lang.String[]> params, java.util.Map<java.lang.String,java.lang.Object> requestContext) throws PortalException
PortalException
public static java.lang.String getActualURL(long groupId, boolean privateLayout, java.lang.String mainPath, java.lang.String friendlyURL, java.util.Map<java.lang.String,java.lang.String[]> params, java.util.Map<java.lang.String,java.lang.Object> requestContext) throws PortalException
PortalException
public static java.lang.String getAlternateURL(java.lang.String canonicalURL, ThemeDisplay themeDisplay, java.util.Locale locale, Layout layout) throws PortalException
The alternate URL lets search engines know that an equivalent page is available for the given locale. For more information, see https://support.google.com/webmasters/answer/189077?hl=en.
canonicalURL
- the canonical URL being requested. For more
information, see getCanonicalURL(java.lang.String, com.liferay.portal.kernel.theme.ThemeDisplay, com.liferay.portal.kernel.model.Layout)
.themeDisplay
- the theme displaylocale
- the locale of the alternate URL being generatedlayout
- the page being requestedPortalException
- if a portal exception occurredpublic static java.util.Map<java.util.Locale,java.lang.String> getAlternateURLs(java.lang.String canonicalURL, ThemeDisplay themeDisplay, Layout layout) throws PortalException
PortalException
public static long[] getAncestorSiteGroupIds(long groupId) throws PortalException
PortalException
public static BaseModel<?> getBaseModel(ResourcePermission resourcePermission) throws PortalException
resourcePermission
- the resource permissionnull
if the resource
permission does not have a base model instance (such as if it's a
portlet)PortalException
- if a portal exception occurredpublic static BaseModel<?> getBaseModel(java.lang.String modelName, java.lang.String primKey) throws PortalException
modelName
- the fully qualified class name of the modelprimKey
- the primary key of the model instance to getnull
if the model does
not have a base model instance (such as if it's a portlet)PortalException
- if a portal exception occurred@Deprecated public static long getBasicAuthUserId(javax.servlet.http.HttpServletRequest request) throws PortalException
HttpAuthManagerUtil.getBasicUserId(
HttpServletRequest)
PortalException
@Deprecated public static long getBasicAuthUserId(javax.servlet.http.HttpServletRequest request, long companyId) throws PortalException
HttpAuthManagerUtil.getBasicUserId(
HttpServletRequest)
PortalException
public static java.util.List<Group> getBrowsableScopeGroups(long userId, long companyId, long groupId, java.lang.String portletId) throws PortalException
PortalException
public static java.lang.String getCanonicalURL(java.lang.String completeURL, ThemeDisplay themeDisplay, Layout layout) throws PortalException
A canonical URL for the page is the preferred URL to specify for a set of pages with similar or identical content. The canonical URL is used to inform search engines that several URLs point to the same page. It is also used to generate the URLs for site maps, the URLs that social bookmarks publish (Twitter, Facebook links, etc.), and the URLs in sent email. For more information, see https://support.google.com/webmasters/answer/139394?hl=en.
completeURL
- the complete URL of the pagethemeDisplay
- the theme displaylayout
- the page being requested (optionally null
).
If null
is specified, the current page is used.PortalException
- if a portal exception occurredpublic static java.lang.String getCanonicalURL(java.lang.String completeURL, ThemeDisplay themeDisplay, Layout layout, boolean forceLayoutFriendlyURL) throws PortalException
A canonical URL for the page is the preferred URL to specify for a set of pages with similar or identical content. The canonical URL is used to inform search engines that several URLs point to the same page. It is also used to generate the URLs for site maps, the URLs that social bookmarks publish (Twitter, Facebook links, etc.), and the URLs in sent email. For more information, see https://support.google.com/webmasters/answer/139394?hl=en.
completeURL
- the complete URL of the pagethemeDisplay
- the current theme displaylayout
- the page. If it is null
, then it is generated
for the current page.forceLayoutFriendlyURL
- whether to add the page's friendly URL to
the canonical URLPortalException
- if a portal exception occurredpublic static java.lang.String getCanonicalURL(java.lang.String completeURL, ThemeDisplay themeDisplay, Layout layout, boolean forceLayoutFriendlyURL, boolean includeQueryString) throws PortalException
A page's canonical URL is the preferred URL to specify for a set of pages with similar or identical content. The canonical URL is used to inform search engines that several URLs point to the same page. It is also used to generate the URLs for site maps, the URLs that social bookmarks publish (Twitter, Facebook links, etc.), and the URLs in sent email. For more information, see https://support.google.com/webmasters/answer/139394?hl=en.
completeURL
- the complete URL of the pagethemeDisplay
- the theme displaylayout
- the page being requested (optionally null
).
If null
is specified, the current page is used.forceLayoutFriendlyURL
- whether to add the page's friendly URL to
the canonical URLincludeQueryString
- whether to add the URL query string to the
canonical URLPortalException
- if a portal exception occurredpublic static java.lang.String getCDNHost(boolean secure)
secure
- whether to get the secure CDN host addresspublic static java.lang.String getCDNHost(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
public static java.lang.String getCDNHostHttp(long companyId)
companyId
- the company ID of a sitepublic static java.lang.String getCDNHostHttps(long companyId)
companyId
- the company ID of a sitepublic static java.lang.String getClassName(long classNameId)
classNameId
- the ID of the classpublic static long getClassNameId(java.lang.Class<?> clazz)
clazz
- the class objectpublic static long getClassNameId(java.lang.String value)
value
- the fully qualified name of the classpublic static Company getCompany(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
public static Company getCompany(javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
public static long getCompanyId(javax.servlet.http.HttpServletRequest request)
public static long getCompanyId(javax.portlet.PortletRequest portletRequest)
public static long[] getCompanyIds()
public static java.util.Set<java.lang.String> getComputerAddresses()
public static java.lang.String getComputerName()
public static java.lang.String getControlPanelFullURL(long scopeGroupId, java.lang.String ppid, java.util.Map<java.lang.String,java.lang.String[]> params) throws PortalException
PortalException
public static long getControlPanelPlid(long companyId) throws PortalException
PortalException
public static long getControlPanelPlid(javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
public static javax.portlet.PortletURL getControlPanelPortletURL(javax.servlet.http.HttpServletRequest request, Group group, java.lang.String portletId, long refererGroupId, long refererPlid, java.lang.String lifecycle)
public static javax.portlet.PortletURL getControlPanelPortletURL(javax.servlet.http.HttpServletRequest request, java.lang.String portletId, java.lang.String lifecycle)
public static javax.portlet.PortletURL getControlPanelPortletURL(javax.portlet.PortletRequest portletRequest, Group group, java.lang.String portletId, long refererGroupId, long refererPlid, java.lang.String lifecycle)
public static javax.portlet.PortletURL getControlPanelPortletURL(javax.portlet.PortletRequest portletRequest, java.lang.String portletId, java.lang.String lifecycle)
public static java.lang.String getCreateAccountURL(javax.servlet.http.HttpServletRequest request, ThemeDisplay themeDisplay) throws java.lang.Exception
java.lang.Exception
public static long[] getCurrentAndAncestorSiteGroupIds(long groupId) throws PortalException
PortalException
public static long[] getCurrentAndAncestorSiteGroupIds(long groupId, boolean checkContentSharingWithChildrenEnabled) throws PortalException
PortalException
public static long[] getCurrentAndAncestorSiteGroupIds(long[] groupIds) throws PortalException
PortalException
public static long[] getCurrentAndAncestorSiteGroupIds(long[] groupIds, boolean checkContentSharingWithChildrenEnabled) throws PortalException
PortalException
public static java.util.List<Group> getCurrentAndAncestorSiteGroups(long groupId) throws PortalException
PortalException
public static java.util.List<Group> getCurrentAndAncestorSiteGroups(long groupId, boolean checkContentSharingWithChildrenEnabled) throws PortalException
PortalException
public static java.util.List<Group> getCurrentAndAncestorSiteGroups(long[] groupIds) throws PortalException
PortalException
public static java.util.List<Group> getCurrentAndAncestorSiteGroups(long[] groupIds, boolean checkContentSharingWithChildrenEnabled) throws PortalException
PortalException
public static java.lang.String getCurrentCompleteURL(javax.servlet.http.HttpServletRequest request)
public static java.lang.String getCurrentURL(javax.servlet.http.HttpServletRequest request)
public static java.lang.String getCurrentURL(javax.portlet.PortletRequest portletRequest)
public static java.lang.String getCustomSQLFunctionIsNotNull()
public static java.lang.String getCustomSQLFunctionIsNull()
public static java.util.Date getDate(int month, int day, int year)
null
if the date is invalid.month
- the month (0-based, meaning 0 for January)day
- the day of the monthyear
- the yearnull
if the date is invalidpublic static java.util.Date getDate(int month, int day, int year, java.lang.Class<? extends PortalException> clazz) throws PortalException
month
- the month (0-based, meaning 0 for January)day
- the day of the monthyear
- the yearclazz
- the exception class to throw if the date is invalid. If
null
, no exception will be thrown for an invalid
date.null
if the date is invalid and
no exception to throw was providedPortalException
- if a portal exception occurredpublic static java.util.Date getDate(int month, int day, int year, int hour, int min, java.lang.Class<? extends PortalException> clazz) throws PortalException
month
- the month (0-based, meaning 0 for January)day
- the day of the monthyear
- the yearhour
- the hour (0-24)min
- the minute of the hourclazz
- the exception class to throw if the date is invalid. If
null
, no exception will be thrown for an invalid
date.null
if the date is invalid and
no exception to throw was providedPortalException
- if a portal exception occurredpublic static java.util.Date getDate(int month, int day, int year, int hour, int min, java.util.TimeZone timeZone, java.lang.Class<? extends PortalException> clazz) throws PortalException
month
- the month (0-based, meaning 0 for January)day
- the day of the monthyear
- the yearhour
- the hour (0-24)min
- the minute of the hourtimeZone
- the time zone of the dateclazz
- the exception class to throw if the date is invalid. If
null
, no exception will be thrown for an invalid
date.null
if the date is invalid and
no exception to throw was providedPortalException
- if a portal exception occurredpublic static java.util.Date getDate(int month, int day, int year, java.util.TimeZone timeZone, java.lang.Class<? extends PortalException> clazz) throws PortalException
month
- the month (0-based, meaning 0 for January)day
- the day of the monthyear
- the yeartimeZone
- the time zone of the dateclazz
- the exception class to throw if the date is invalid. If
null
, no exception will be thrown for an invalid
date.null
if the date is invalid and
no exception to throw was providedPortalException
- if a portal exception occurredpublic static long getDefaultCompanyId()
@Deprecated public static long getDigestAuthUserId(javax.servlet.http.HttpServletRequest request) throws PortalException
HttpAuthManagerUtil.getDigestUserId(
HttpServletRequest)
PortalException
public static java.lang.String getEmailFromAddress(javax.portlet.PortletPreferences preferences, long companyId, java.lang.String defaultValue)
public static java.lang.String getEmailFromName(javax.portlet.PortletPreferences preferences, long companyId, java.lang.String defaultValue)
public static java.util.Map<java.lang.String,java.io.Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge, javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
public static java.util.Map<java.lang.String,java.io.Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge, javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
public static java.util.Map<java.lang.String,java.io.Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge, UploadPortletRequest uploadPortletRequest) throws PortalException
PortalException
public static java.io.Serializable getExpandoValue(javax.servlet.http.HttpServletRequest request, java.lang.String name, int type, java.lang.String displayType) throws PortalException
PortalException
public static java.io.Serializable getExpandoValue(javax.portlet.PortletRequest portletRequest, java.lang.String name, int type, java.lang.String displayType) throws PortalException
PortalException
public static java.io.Serializable getExpandoValue(UploadPortletRequest uploadPortletRequest, java.lang.String name, int type, java.lang.String displayType) throws PortalException
PortalException
public static java.lang.String getFacebookURL(Portlet portlet, java.lang.String facebookCanvasPageURL, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getFirstPageLayoutTypes(javax.servlet.http.HttpServletRequest request)
public static java.lang.String getForwardedHost(javax.servlet.http.HttpServletRequest request)
public static int getForwardedPort(javax.servlet.http.HttpServletRequest request)
public static java.lang.String getFullName(java.lang.String firstName, java.lang.String middleName, java.lang.String lastName)
public static java.lang.String getGlobalLibDir()
public static java.lang.String getGoogleGadgetURL(Portlet portlet, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getGroupFriendlyURL(LayoutSet layoutSet, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getGroupFriendlyURL(LayoutSet layoutSet, ThemeDisplay themeDisplay, java.util.Locale locale) throws PortalException
PortalException
public static int[] getGroupFriendlyURLIndex(java.lang.String requestURI)
public static java.lang.String[] getGroupPermissions(javax.servlet.http.HttpServletRequest request)
public static java.lang.String[] getGroupPermissions(javax.servlet.http.HttpServletRequest request, java.lang.String className)
public static java.lang.String[] getGroupPermissions(javax.portlet.PortletRequest portletRequest)
public static java.lang.String[] getGroupPermissions(javax.portlet.PortletRequest portletRequest, java.lang.String className)
public static java.lang.String[] getGuestPermissions(javax.servlet.http.HttpServletRequest request)
public static java.lang.String[] getGuestPermissions(javax.servlet.http.HttpServletRequest request, java.lang.String className)
public static java.lang.String[] getGuestPermissions(javax.portlet.PortletRequest portletRequest)
public static java.lang.String[] getGuestPermissions(javax.portlet.PortletRequest portletRequest, java.lang.String className)
public static java.lang.String getHomeURL(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
public static java.lang.String getHost(javax.servlet.http.HttpServletRequest request)
public static java.lang.String getHost(javax.portlet.PortletRequest portletRequest)
public static javax.servlet.http.HttpServletRequest getHttpServletRequest(javax.portlet.PortletRequest portletRequest)
public static javax.servlet.http.HttpServletResponse getHttpServletResponse(javax.portlet.PortletResponse portletResponse)
public static java.lang.String getI18nPathLanguageId(java.util.Locale locale, java.lang.String defaultI18nPathLanguageId)
@Deprecated public static java.lang.String getJournalArticleActualURL(long groupId, boolean privateLayout, java.lang.String mainPath, java.lang.String friendlyURL, java.util.Map<java.lang.String,java.lang.String[]> params, java.util.Map<java.lang.String,java.lang.Object> requestContext) throws PortalException
PortalException
@Deprecated public static Layout getJournalArticleLayout(long groupId, boolean privateLayout, java.lang.String friendlyURL) throws PortalException
PortalException
public static java.lang.String getJsSafePortletId(java.lang.String portletId)
public static java.lang.String getLayoutActualURL(Layout layout)
public static java.lang.String getLayoutActualURL(Layout layout, java.lang.String mainPath)
public static java.lang.String getLayoutActualURL(long groupId, boolean privateLayout, java.lang.String mainPath, java.lang.String friendlyURL) throws PortalException
PortalException
public static java.lang.String getLayoutActualURL(long groupId, boolean privateLayout, java.lang.String mainPath, java.lang.String friendlyURL, java.util.Map<java.lang.String,java.lang.String[]> params, java.util.Map<java.lang.String,java.lang.Object> requestContext) throws PortalException
PortalException
public static java.lang.String getLayoutFriendlyURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getLayoutFriendlyURL(Layout layout, ThemeDisplay themeDisplay, java.util.Locale locale) throws PortalException
PortalException
public static java.lang.String getLayoutFriendlyURL(ThemeDisplay themeDisplay) throws PortalException
PortalException
@Deprecated public static LayoutFriendlyURLComposite getLayoutFriendlyURLComposite(long groupId, boolean privateLayout, java.lang.String friendlyURL, java.util.Map<java.lang.String,java.lang.String[]> params, java.util.Map<java.lang.String,java.lang.Object> requestContext) throws PortalException
getLayoutFriendlyURLSeparatorComposite(long, boolean,
String, Map, Map)
PortalException
public static LayoutFriendlyURLSeparatorComposite getLayoutFriendlyURLSeparatorComposite(long groupId, boolean privateLayout, java.lang.String friendlyURL, java.util.Map<java.lang.String,java.lang.String[]> params, java.util.Map<java.lang.String,java.lang.Object> requestContext) throws PortalException
PortalException
public static java.lang.String getLayoutFullURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getLayoutFullURL(Layout layout, ThemeDisplay themeDisplay, boolean doAsUser) throws PortalException
PortalException
public static java.lang.String getLayoutFullURL(long groupId, java.lang.String portletId) throws PortalException
PortalException
public static java.lang.String getLayoutFullURL(long groupId, java.lang.String portletId, boolean secure) throws PortalException
PortalException
public static java.lang.String getLayoutFullURL(ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getLayoutRelativeURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getLayoutRelativeURL(Layout layout, ThemeDisplay themeDisplay, boolean doAsUser) throws PortalException
PortalException
public static java.lang.String getLayoutSetDisplayURL(LayoutSet layoutSet, boolean secureConnection) throws PortalException
PortalException
public static java.lang.String getLayoutSetFriendlyURL(LayoutSet layoutSet, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getLayoutTarget(Layout layout)
public static java.lang.String getLayoutURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getLayoutURL(Layout layout, ThemeDisplay themeDisplay, boolean doAsUser) throws PortalException
PortalException
public static java.lang.String getLayoutURL(Layout layout, ThemeDisplay themeDisplay, java.util.Locale locale) throws PortalException
PortalException
public static java.lang.String getLayoutURL(ThemeDisplay themeDisplay) throws PortalException
PortalException
public static LiferayPortletRequest getLiferayPortletRequest(javax.portlet.PortletRequest portletRequest)
public static LiferayPortletResponse getLiferayPortletResponse(javax.portlet.PortletResponse portletResponse)
public static java.util.Locale getLocale(javax.servlet.http.HttpServletRequest request)
public static java.util.Locale getLocale(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean initialize)
public static java.util.Locale getLocale(javax.portlet.PortletRequest portletRequest)
public static java.lang.String getLocalizedFriendlyURL(javax.servlet.http.HttpServletRequest request, Layout layout, java.util.Locale locale, java.util.Locale originalLocale) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getMailId(java.lang.String mx, java.lang.String popPortletPrefix, java.lang.Object... ids)
public static java.lang.String getNetvibesURL(Portlet portlet, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getNewPortletTitle(java.lang.String portletTitle, java.lang.String oldScopeName, java.lang.String newScopeName)
public static javax.servlet.http.HttpServletRequest getOriginalServletRequest(javax.servlet.http.HttpServletRequest request)
public static java.lang.String getPathContext()
public static java.lang.String getPathContext(javax.servlet.http.HttpServletRequest request)
public static java.lang.String getPathContext(javax.portlet.PortletRequest portletRequest)
public static java.lang.String getPathContext(java.lang.String contextPath)
public static java.lang.String getPathFriendlyURLPrivateGroup()
public static java.lang.String getPathFriendlyURLPrivateUser()
public static java.lang.String getPathFriendlyURLPublic()
public static java.lang.String getPathImage()
public static java.lang.String getPathMain()
public static java.lang.String getPathModule()
public static java.lang.String getPathProxy()
public static long getPlidFromFriendlyURL(long companyId, java.lang.String friendlyURL)
public static long getPlidFromPortletId(long groupId, boolean privateLayout, java.lang.String portletId) throws PortalException
PortalException
public static long getPlidFromPortletId(long groupId, java.lang.String portletId) throws PortalException
PortalException
public static Portal getPortal()
public static PortalInetSocketAddressEventListener[] getPortalInetSocketAddressEventListeners()
public static java.lang.String getPortalLibDir()
public static java.net.InetAddress getPortalLocalInetAddress(boolean secure)
public static int getPortalLocalPort(boolean secure)
@Deprecated public static int getPortalPort(boolean secure)
getPortalServerPort(boolean)
public static java.util.Properties getPortalProperties()
public static java.net.InetAddress getPortalServerInetAddress(boolean secure)
public static int getPortalServerPort(boolean secure)
public static java.lang.String getPortalURL(javax.servlet.http.HttpServletRequest request)
public static java.lang.String getPortalURL(javax.servlet.http.HttpServletRequest request, boolean secure)
public static java.lang.String getPortalURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getPortalURL(LayoutSet layoutSet, ThemeDisplay themeDisplay)
public static java.lang.String getPortalURL(javax.portlet.PortletRequest portletRequest)
public static java.lang.String getPortalURL(javax.portlet.PortletRequest portletRequest, boolean secure)
public static java.lang.String getPortalURL(java.lang.String serverName, int serverPort, boolean secure)
public static java.lang.String getPortalURL(ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getPortalWebDir()
@Deprecated public static java.util.List<BreadcrumbEntry> getPortletBreadcrumbs(javax.servlet.http.HttpServletRequest request)
BreadcrumbUtil.getPortletBreadcrumbEntries(
HttpServletRequest)
public static javax.portlet.PortletConfig getPortletConfig(long companyId, java.lang.String portletId, javax.servlet.ServletContext servletContext) throws javax.portlet.PortletException
javax.portlet.PortletException
public static java.lang.String getPortletDescription(Portlet portlet, javax.servlet.ServletContext servletContext, java.util.Locale locale)
public static java.lang.String getPortletDescription(Portlet portlet, User user)
public static java.lang.String getPortletDescription(java.lang.String portletId, java.util.Locale locale)
public static java.lang.String getPortletDescription(java.lang.String portletId, java.lang.String languageId)
public static java.lang.String getPortletDescription(java.lang.String portletId, User user)
public static java.lang.String getPortletId(javax.servlet.http.HttpServletRequest request)
public static java.lang.String getPortletId(javax.portlet.PortletRequest portletRequest)
public static java.lang.String getPortletLongTitle(Portlet portlet, java.util.Locale locale)
public static java.lang.String getPortletLongTitle(Portlet portlet, javax.servlet.ServletContext servletContext, java.util.Locale locale)
public static java.lang.String getPortletLongTitle(Portlet portlet, java.lang.String languageId)
public static java.lang.String getPortletLongTitle(java.lang.String portletId, java.util.Locale locale)
public static java.lang.String getPortletLongTitle(java.lang.String portletId, java.lang.String languageId)
public static java.lang.String getPortletLongTitle(java.lang.String portletId, User user)
public static java.lang.String getPortletNamespace(java.lang.String portletId)
public static java.lang.String getPortletTitle(Portlet portlet, java.util.Locale locale)
public static java.lang.String getPortletTitle(Portlet portlet, javax.servlet.ServletContext servletContext, java.util.Locale locale)
public static java.lang.String getPortletTitle(Portlet portlet, java.lang.String languageId)
public static java.lang.String getPortletTitle(javax.portlet.PortletRequest portletRequest)
public static java.lang.String getPortletTitle(javax.portlet.PortletResponse portletResponse)
public static java.lang.String getPortletTitle(java.lang.String portletId, java.util.Locale locale)
public static java.lang.String getPortletTitle(java.lang.String portletId, java.util.ResourceBundle resourceBundle)
public static java.lang.String getPortletTitle(java.lang.String portletId, java.lang.String languageId)
public static java.lang.String getPortletTitle(java.lang.String portletId, User user)
public static java.lang.String getPortletXmlFileName()
public static javax.portlet.PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest request)
public static javax.portlet.PreferencesValidator getPreferencesValidator(Portlet portlet)
public static java.lang.String getRelativeHomeURL(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
public static java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
public static long getScopeGroupId(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
public static long getScopeGroupId(javax.servlet.http.HttpServletRequest request, java.lang.String portletId) throws PortalException
PortalException
public static long getScopeGroupId(javax.servlet.http.HttpServletRequest request, java.lang.String portletId, boolean checkStagingGroup) throws PortalException
PortalException
public static long getScopeGroupId(Layout layout)
public static long getScopeGroupId(Layout layout, java.lang.String portletId)
public static long getScopeGroupId(long plid)
public static long getScopeGroupId(javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
public static User getSelectedUser(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
public static User getSelectedUser(javax.servlet.http.HttpServletRequest request, boolean checkPermission) throws PortalException
PortalException
public static User getSelectedUser(javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
public static User getSelectedUser(javax.portlet.PortletRequest portletRequest, boolean checkPermission) throws PortalException
PortalException
public static java.lang.String getServletContextName()
public static long[] getSharedContentSiteGroupIds(long companyId, long groupId, long userId) throws PortalException
PortalException
@Deprecated public static javax.portlet.PortletURL getSiteAdministrationURL(javax.servlet.http.HttpServletRequest request, ThemeDisplay themeDisplay, java.lang.String portletId)
#getControlPanelPortletURL(PortletRequest, Group, String,
long, String)
@Deprecated public static javax.portlet.PortletURL getSiteAdministrationURL(javax.portlet.PortletResponse portletResponse, ThemeDisplay themeDisplay, java.lang.String portletName)
#getControlPanelPortletURL(PortletRequest, Group, String,
long, String)
@Deprecated public static java.lang.String getSiteAdminURL(Company company, Group group, java.lang.String ppid, java.util.Map<java.lang.String,java.lang.String[]> params) throws PortalException
getSiteAdminURL(ThemeDisplay, String, Map)
PortalException
@Deprecated public static java.lang.String getSiteAdminURL(Group group, java.lang.String ppid, java.util.Map<java.lang.String,java.lang.String[]> params) throws PortalException
getSiteAdminURL(ThemeDisplay, String, Map)
PortalException
public static java.lang.String getSiteAdminURL(ThemeDisplay themeDisplay, java.lang.String ppid, java.util.Map<java.lang.String,java.lang.String[]> params) throws PortalException
PortalException
@Deprecated public static long[] getSiteAndCompanyGroupIds(long groupId) throws PortalException
getCurrentAndAncestorSiteGroupIds(long)
PortalException
@Deprecated public static long[] getSiteAndCompanyGroupIds(ThemeDisplay themeDisplay) throws PortalException
getCurrentAndAncestorSiteGroupIds(long)
PortalException
public static java.util.Locale getSiteDefaultLocale(Group group) throws PortalException
PortalException
public static java.util.Locale getSiteDefaultLocale(long groupId) throws PortalException
PortalException
public static long getSiteGroupId(long scopeGroupId)
public static java.lang.String getSiteLoginURL(ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getStaticResourceURL(javax.servlet.http.HttpServletRequest request, java.lang.String uri)
public static java.lang.String getStaticResourceURL(javax.servlet.http.HttpServletRequest request, java.lang.String uri, long timestamp)
public static java.lang.String getStaticResourceURL(javax.servlet.http.HttpServletRequest request, java.lang.String uri, java.lang.String queryString)
public static java.lang.String getStaticResourceURL(javax.servlet.http.HttpServletRequest request, java.lang.String uri, java.lang.String queryString, long timestamp)
public static java.lang.String getStrutsAction(javax.servlet.http.HttpServletRequest request)
public static java.lang.String[] getSystemGroups()
public static java.lang.String[] getSystemOrganizationRoles()
public static java.lang.String[] getSystemRoles()
public static java.lang.String[] getSystemSiteRoles()
public static java.lang.String getUniqueElementId(javax.servlet.http.HttpServletRequest request, java.lang.String namespace, java.lang.String id)
public static java.lang.String getUniqueElementId(javax.portlet.PortletRequest request, java.lang.String namespace, java.lang.String id)
public static UploadPortletRequest getUploadPortletRequest(javax.portlet.PortletRequest portletRequest)
public static UploadServletRequest getUploadServletRequest(javax.servlet.http.HttpServletRequest request)
public static java.util.Date getUptime()
public static java.lang.String getURLWithSessionId(java.lang.String url, java.lang.String sessionId)
public static User getUser(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
public static User getUser(javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
public static java.lang.String getUserEmailAddress(long userId)
public static long getUserId(javax.servlet.http.HttpServletRequest request)
public static long getUserId(javax.portlet.PortletRequest portletRequest)
public static java.lang.String getUserName(BaseModel<?> baseModel)
public static java.lang.String getUserName(long userId, java.lang.String defaultUserName)
public static java.lang.String getUserName(long userId, java.lang.String defaultUserName, javax.servlet.http.HttpServletRequest request)
public static java.lang.String getUserName(long userId, java.lang.String defaultUserName, java.lang.String userAttribute)
public static java.lang.String getUserName(long userId, java.lang.String defaultUserName, java.lang.String userAttribute, javax.servlet.http.HttpServletRequest request)
public static java.lang.String getUserPassword(javax.servlet.http.HttpServletRequest request)
public static java.lang.String getUserPassword(javax.servlet.http.HttpSession session)
public static java.lang.String getUserPassword(javax.portlet.PortletRequest portletRequest)
@Deprecated public static java.lang.String getUserValue(long userId, java.lang.String param, java.lang.String defaultValue)
public static java.lang.String getValidPortalDomain(long companyId, java.lang.String domain)
public static long getValidUserId(long companyId, long userId) throws PortalException
PortalException
public static java.lang.String getVirtualHostname(LayoutSet layoutSet)
@Deprecated public static java.lang.String getVirtualLayoutActualURL(long groupId, boolean privateLayout, java.lang.String mainPath, java.lang.String friendlyURL, java.util.Map<java.lang.String,java.lang.String[]> params, java.util.Map<java.lang.String,java.lang.Object> requestContext) throws PortalException
PortalException
@Deprecated public static LayoutFriendlyURLComposite getVirtualLayoutFriendlyURLComposite(boolean privateLayout, java.lang.String friendlyURL, java.util.Map<java.lang.String,java.lang.String[]> params, java.util.Map<java.lang.String,java.lang.Object> requestContext) throws PortalException
PortalException
public static java.lang.String getWidgetURL(Portlet portlet, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static void initCustomSQL()
public static User initUser(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
java.lang.Exception
@Deprecated public static void invokeTaglibDiscussion(javax.portlet.PortletConfig portletConfig, javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws java.lang.Exception
java.lang.Exception
@Deprecated public static void invokeTaglibDiscussionPagination(javax.portlet.PortletConfig portletConfig, javax.portlet.ResourceRequest resourceRequest, javax.portlet.ResourceResponse resourceResponse) throws java.io.IOException, javax.portlet.PortletException
java.io.IOException
javax.portlet.PortletException
public static boolean isCDNDynamicResourcesEnabled(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
public static boolean isCDNDynamicResourcesEnabled(long companyId)
public static boolean isCompanyAdmin(User user) throws java.lang.Exception
java.lang.Exception
public static boolean isCompanyControlPanelPortlet(java.lang.String portletId, java.lang.String category, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static boolean isCompanyControlPanelPortlet(java.lang.String portletId, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static boolean isControlPanelPortlet(java.lang.String portletId, java.lang.String category, ThemeDisplay themeDisplay)
public static boolean isControlPanelPortlet(java.lang.String portletId, ThemeDisplay themeDisplay)
public static boolean isCustomPortletMode(javax.portlet.PortletMode portletMode)
public static boolean isForwardedSecure(javax.servlet.http.HttpServletRequest request)
public static boolean isGroupAdmin(User user, long groupId) throws java.lang.Exception
java.lang.Exception
public static boolean isGroupFriendlyURL(java.lang.String fullURL, java.lang.String groupFriendlyURL, java.lang.String layoutFriendlyURL)
public static boolean isGroupOwner(User user, long groupId) throws java.lang.Exception
java.lang.Exception
public static boolean isLayoutDescendant(Layout layout, long layoutId) throws PortalException
PortalException
public static boolean isLayoutSitemapable(Layout layout)
public static boolean isLoginRedirectRequired(javax.servlet.http.HttpServletRequest request)
public static boolean isMethodGet(javax.portlet.PortletRequest portletRequest)
public static boolean isMethodPost(javax.portlet.PortletRequest portletRequest)
public static boolean isMultipartRequest(javax.servlet.http.HttpServletRequest request)
public static boolean isOmniadmin(long userId)
public static boolean isOmniadmin(User user)
public static boolean isReservedParameter(java.lang.String name)
public static boolean isRightToLeft(javax.servlet.http.HttpServletRequest request)
public static boolean isRSSFeedsEnabled()
public static boolean isSecure(javax.servlet.http.HttpServletRequest request)
public static boolean isSkipPortletContentProcesssing(Group group, javax.servlet.http.HttpServletRequest httpServletRequest, LayoutTypePortlet layoutTypePortlet, PortletDisplay portletDisplay, java.lang.String portletName) throws java.lang.Exception
java.lang.Exception
public static boolean isSkipPortletContentRendering(Group group, LayoutTypePortlet layoutTypePortlet, PortletDisplay portletDisplay, java.lang.String portletName)
public static boolean isSystemGroup(java.lang.String groupName)
public static boolean isSystemRole(java.lang.String roleName)
public static boolean isUpdateAvailable()
public static boolean isValidResourceId(java.lang.String resourceId)
public static boolean removePortalEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener)
public static void resetCDNHosts()
public static java.lang.String resetPortletParameters(java.lang.String url, java.lang.String portletId)
public static void sendError(java.lang.Exception e, javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws java.io.IOException
java.io.IOException
public static void sendError(java.lang.Exception e, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public static void sendError(int status, java.lang.Exception e, javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws java.io.IOException
java.io.IOException
public static void sendError(int status, java.lang.Exception e, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public static void sendRSSFeedsDisabledError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public static void sendRSSFeedsDisabledError(javax.portlet.PortletRequest portletRequest, javax.portlet.PortletResponse portletResponse) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public static void setPageDescription(java.lang.String description, javax.servlet.http.HttpServletRequest request)
public static void setPageKeywords(java.lang.String keywords, javax.servlet.http.HttpServletRequest request)
public static void setPageSubtitle(java.lang.String subtitle, javax.servlet.http.HttpServletRequest request)
public static void setPageTitle(java.lang.String title, javax.servlet.http.HttpServletRequest request)
public static void setPortalInetSocketAddresses(javax.servlet.http.HttpServletRequest request)
@Deprecated public static void setPortalPort(javax.servlet.http.HttpServletRequest request)
setPortalInetSocketAddresses(HttpServletRequest)
public static void storePreferences(javax.portlet.PortletPreferences portletPreferences) throws java.io.IOException, javax.portlet.ValidatorException
java.io.IOException
javax.portlet.ValidatorException
public static java.lang.String[] stripURLAnchor(java.lang.String url, java.lang.String separator)
public static java.lang.String transformCustomSQL(java.lang.String sql)
public static java.lang.String transformSQL(java.lang.String sql)
public static void updateImageId(BaseModel<?> baseModel, boolean hasImage, byte[] bytes, java.lang.String fieldName, long maxSize, int maxHeight, int maxWidth) throws PortalException
PortalException
public static javax.portlet.PortletMode updatePortletMode(java.lang.String portletId, User user, Layout layout, javax.portlet.PortletMode portletMode, javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
public static java.lang.String updateRedirect(java.lang.String redirect, java.lang.String oldPath, java.lang.String newPath)
public static javax.portlet.WindowState updateWindowState(java.lang.String portletId, User user, Layout layout, javax.portlet.WindowState windowState, javax.servlet.http.HttpServletRequest request)
@Deprecated public void removePortalPortEventListener(PortalPortEventListener portalPortEventListener)
removePortalEventListener(
PortalInetSocketAddressEventListener)
public void setPortal(Portal portal)