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 httpServletRequest)
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 httpServletRequest)
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 httpServletRequest)
Appends the subtitle to the current subtitle of the page in the request.
|
static void |
addPageTitle(java.lang.String title,
javax.servlet.http.HttpServletRequest httpServletRequest)
Appends the title to the current title of the page in the request.
|
static void |
addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest httpServletRequest,
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 httpServletRequest,
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 httpServletRequest,
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 httpServletRequest,
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 |
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 httpServletRequest,
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 httpServletRequest,
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 java.util.Map<java.util.Locale,java.lang.String> |
getAlternateURLs(java.lang.String canonicalURL,
ThemeDisplay themeDisplay,
Layout layout,
java.util.Set<java.util.Locale> availableLocales) |
static long[] |
getAncestorSiteGroupIds(long groupId) |
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 httpServletRequest) |
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 httpServletRequest) |
static Company |
getCompany(javax.portlet.PortletRequest portletRequest) |
static long |
getCompanyId(javax.servlet.http.HttpServletRequest httpServletRequest) |
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 httpServletRequest,
Group group,
java.lang.String portletId,
long refererGroupId,
long refererPlid,
java.lang.String lifecycle) |
static javax.portlet.PortletURL |
getControlPanelPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest,
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 httpServletRequest,
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[] groupIds,
boolean checkContentSharingWithChildrenEnabled) |
static java.util.List<Group> |
getCurrentAndAncestorSiteGroups(long groupId,
boolean checkContentSharingWithChildrenEnabled) |
static java.lang.String |
getCurrentCompleteURL(javax.servlet.http.HttpServletRequest httpServletRequest) |
static java.lang.String |
getCurrentURL(javax.servlet.http.HttpServletRequest httpServletRequest) |
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 java.lang.String |
getEmailFromAddress(javax.portlet.PortletPreferences portletPreferences,
long companyId,
java.lang.String defaultValue) |
static java.lang.String |
getEmailFromName(javax.portlet.PortletPreferences portletPreferences,
long companyId,
java.lang.String defaultValue) |
static java.lang.String |
getForwardedHost(javax.servlet.http.HttpServletRequest httpServletRequest) |
static int |
getForwardedPort(javax.servlet.http.HttpServletRequest httpServletRequest) |
static java.lang.String |
getFullName(java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName) |
static java.lang.String |
getGoogleGadgetURL(Portlet portlet,
ThemeDisplay themeDisplay) |
static java.lang.String |
getGroupFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay,
boolean canonicalURL,
boolean controlPanel) |
static java.lang.String |
getGroupFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay,
java.util.Locale locale) |
static int[] |
getGroupFriendlyURLIndex(java.lang.String requestURI) |
static java.lang.String |
getHomeURL(javax.servlet.http.HttpServletRequest httpServletRequest) |
static java.lang.String |
getHost(javax.servlet.http.HttpServletRequest httpServletRequest) |
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 |
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,
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 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 httpServletRequest) |
static java.util.Locale |
getLocale(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
boolean initialize) |
static java.util.Locale |
getLocale(javax.portlet.PortletRequest portletRequest) |
static java.lang.String |
getLocalizedFriendlyURL(javax.servlet.http.HttpServletRequest httpServletRequest,
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 httpServletRequest) |
static java.lang.String |
getPathContext() |
static java.lang.String |
getPathContext(javax.servlet.http.HttpServletRequest httpServletRequest) |
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 int |
getPortalLocalPort(boolean secure) |
static java.util.Properties |
getPortalProperties() |
static int |
getPortalServerPort(boolean secure) |
static java.lang.String |
getPortalURL(javax.servlet.http.HttpServletRequest httpServletRequest) |
static java.lang.String |
getPortalURL(javax.servlet.http.HttpServletRequest httpServletRequest,
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 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 httpServletRequest) |
static java.lang.String |
getPortletId(javax.portlet.PortletRequest portletRequest) |
static java.lang.String |
getPortletLongTitle(Portlet portlet,
javax.servlet.ServletContext servletContext,
java.util.Locale locale) |
static java.lang.String |
getPortletLongTitle(java.lang.String portletId,
java.util.Locale locale) |
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 javax.portlet.PortletPreferences |
getPreferences(javax.servlet.http.HttpServletRequest httpServletRequest) |
static javax.portlet.PreferencesValidator |
getPreferencesValidator(Portlet portlet) |
static java.lang.String |
getRelativeHomeURL(javax.servlet.http.HttpServletRequest httpServletRequest) |
static java.util.ResourceBundle |
getResourceBundle(java.util.Locale locale) |
static long |
getScopeGroupId(javax.servlet.http.HttpServletRequest httpServletRequest) |
static long |
getScopeGroupId(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String portletId) |
static long |
getScopeGroupId(javax.servlet.http.HttpServletRequest httpServletRequest,
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 httpServletRequest) |
static User |
getSelectedUser(javax.servlet.http.HttpServletRequest httpServletRequest,
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 java.lang.String |
getSiteAdminURL(ThemeDisplay themeDisplay,
java.lang.String ppid,
java.util.Map<java.lang.String,java.lang.String[]> params) |
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 httpServletRequest,
java.lang.String uri) |
static java.lang.String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String uri,
long timestamp) |
static java.lang.String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String uri,
java.lang.String queryString) |
static java.lang.String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String uri,
java.lang.String queryString,
long timestamp) |
static java.lang.String |
getStrutsAction(javax.servlet.http.HttpServletRequest httpServletRequest) |
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 httpServletRequest,
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 httpServletRequest) |
static UploadServletRequest |
getUploadServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
int fileSizeThreshold,
java.lang.String location) |
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 httpServletRequest) |
static User |
getUser(javax.portlet.PortletRequest portletRequest) |
static java.lang.String |
getUserEmailAddress(long userId) |
static long |
getUserId(javax.servlet.http.HttpServletRequest httpServletRequest) |
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 httpServletRequest) |
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 httpServletRequest) |
static java.lang.String |
getUserPassword(javax.servlet.http.HttpServletRequest httpServletRequest) |
static java.lang.String |
getUserPassword(javax.servlet.http.HttpSession httpSession) |
static java.lang.String |
getUserPassword(javax.portlet.PortletRequest portletRequest) |
static java.lang.String |
getValidPortalDomain(long companyId,
java.lang.String domain) |
static long |
getValidUserId(long companyId,
long userId) |
static java.util.TreeMap<java.lang.String,java.lang.String> |
getVirtualHostnames(LayoutSet layoutSet) |
static java.lang.String |
getWidgetURL(Portlet portlet,
ThemeDisplay themeDisplay) |
static void |
initCustomSQL() |
static User |
initUser(javax.servlet.http.HttpServletRequest httpServletRequest) |
static boolean |
isCDNDynamicResourcesEnabled(javax.servlet.http.HttpServletRequest httpServletRequest) |
static boolean |
isCDNDynamicResourcesEnabled(long companyId) |
static boolean |
isCompanyAdmin(User user) |
static boolean |
isCustomPortletMode(javax.portlet.PortletMode portletMode) |
static boolean |
isForwardedSecure(javax.servlet.http.HttpServletRequest httpServletRequest) |
static boolean |
isGroupAdmin(User user,
long groupId) |
static boolean |
isGroupControlPanelPath(java.lang.String path) |
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 httpServletRequest) |
static boolean |
isMultipartRequest(javax.servlet.http.HttpServletRequest httpServletRequest) |
static boolean |
isOmniadmin(long userId) |
static boolean |
isOmniadmin(User user) |
static boolean |
isReservedParameter(java.lang.String name) |
static boolean |
isRightToLeft(javax.servlet.http.HttpServletRequest httpServletRequest) |
static boolean |
isRSSFeedsEnabled() |
static boolean |
isSecure(javax.servlet.http.HttpServletRequest httpServletRequest) |
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 |
isValidPortalDomain(long companyId,
java.lang.String domain) |
static boolean |
isValidResourceId(java.lang.String resourceId) |
static void |
resetCDNHosts() |
static void |
sendError(java.lang.Exception exception,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
static void |
sendError(java.lang.Exception exception,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
static void |
sendError(int status,
java.lang.Exception exception,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
static void |
sendError(int status,
java.lang.Exception exception,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
static void |
sendRSSFeedsDisabledError(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
static void |
sendRSSFeedsDisabledError(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse) |
static void |
setPageDescription(java.lang.String description,
javax.servlet.http.HttpServletRequest httpServletRequest)
Sets the description for a page.
|
static void |
setPageKeywords(java.lang.String keywords,
javax.servlet.http.HttpServletRequest httpServletRequest)
Sets the keywords for a page.
|
static void |
setPageSubtitle(java.lang.String subtitle,
javax.servlet.http.HttpServletRequest httpServletRequest)
Sets the subtitle for a page.
|
static void |
setPageTitle(java.lang.String title,
javax.servlet.http.HttpServletRequest httpServletRequest)
Sets the whole title for a page.
|
void |
setPortal(Portal portal) |
static void |
setPortalInetSocketAddresses(javax.servlet.http.HttpServletRequest httpServletRequest) |
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 httpServletRequest) |
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 httpServletRequest) |
public static void addPageDescription(java.lang.String description, javax.servlet.http.HttpServletRequest httpServletRequest)
description
- the description to append to the current meta
descriptionhttpServletRequest
- the servlet request for the pagepublic static void addPageKeywords(java.lang.String keywords, javax.servlet.http.HttpServletRequest httpServletRequest)
keywords
- the keywords to add to the current meta keywords
(comma-separated)httpServletRequest
- the servlet request for the pagepublic static void addPageSubtitle(java.lang.String subtitle, javax.servlet.http.HttpServletRequest httpServletRequest)
subtitle
- the subtitle to append to the current subtitlehttpServletRequest
- the servlet request for the pagepublic static void addPageTitle(java.lang.String title, javax.servlet.http.HttpServletRequest httpServletRequest)
title
- the title to append to the current titlehttpServletRequest
- the servlet request for the pagepublic static void addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String title, java.lang.String url)
httpServletRequest
- 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 httpServletRequest, java.lang.String title, java.lang.String url, java.util.Map<java.lang.String,java.lang.Object> data)
httpServletRequest
- 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 httpServletRequest, java.lang.String title, java.lang.String url, java.util.Map<java.lang.String,java.lang.Object> data, boolean portletBreadcrumbEntry)
httpServletRequest
- 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 httpServletRequest, Portlet portlet) throws PortalException
httpServletRequest
- 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 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 httpServletRequest, java.lang.String input)
httpServletRequest
- the servlet request for the pageinput
- the input stringpublic static java.lang.String getAbsoluteURL(javax.servlet.http.HttpServletRequest httpServletRequest, 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 java.util.Map<java.util.Locale,java.lang.String> getAlternateURLs(java.lang.String canonicalURL, ThemeDisplay themeDisplay, Layout layout, java.util.Set<java.util.Locale> availableLocales) throws PortalException
PortalException
public static long[] getAncestorSiteGroupIds(long groupId)
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 httpServletRequest) 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 httpServletRequest) throws PortalException
PortalException
public static Company getCompany(javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
public static long getCompanyId(javax.servlet.http.HttpServletRequest httpServletRequest)
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 httpServletRequest, Group group, java.lang.String portletId, long refererGroupId, long refererPlid, java.lang.String lifecycle)
public static javax.portlet.PortletURL getControlPanelPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest, 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 httpServletRequest, ThemeDisplay themeDisplay) throws java.lang.Exception
java.lang.Exception
public static long[] getCurrentAndAncestorSiteGroupIds(long groupId)
public static long[] getCurrentAndAncestorSiteGroupIds(long groupId, boolean checkContentSharingWithChildrenEnabled)
public static long[] getCurrentAndAncestorSiteGroupIds(long[] groupIds)
public static long[] getCurrentAndAncestorSiteGroupIds(long[] groupIds, boolean checkContentSharingWithChildrenEnabled)
public static java.util.List<Group> getCurrentAndAncestorSiteGroups(long groupId, boolean checkContentSharingWithChildrenEnabled)
public static java.util.List<Group> getCurrentAndAncestorSiteGroups(long[] groupIds, boolean checkContentSharingWithChildrenEnabled)
public static java.lang.String getCurrentCompleteURL(javax.servlet.http.HttpServletRequest httpServletRequest)
public static java.lang.String getCurrentURL(javax.servlet.http.HttpServletRequest httpServletRequest)
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()
public static java.lang.String getEmailFromAddress(javax.portlet.PortletPreferences portletPreferences, long companyId, java.lang.String defaultValue)
public static java.lang.String getEmailFromName(javax.portlet.PortletPreferences portletPreferences, long companyId, java.lang.String defaultValue)
public static java.lang.String getForwardedHost(javax.servlet.http.HttpServletRequest httpServletRequest)
public static int getForwardedPort(javax.servlet.http.HttpServletRequest httpServletRequest)
public static java.lang.String getFullName(java.lang.String firstName, java.lang.String middleName, java.lang.String lastName)
public static java.lang.String getGoogleGadgetURL(Portlet portlet, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getGroupFriendlyURL(LayoutSet layoutSet, ThemeDisplay themeDisplay, boolean canonicalURL, boolean controlPanel) 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 getHomeURL(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
PortalException
public static java.lang.String getHost(javax.servlet.http.HttpServletRequest httpServletRequest)
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)
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, 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
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 httpServletRequest)
public static java.util.Locale getLocale(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, boolean initialize)
public static java.util.Locale getLocale(javax.portlet.PortletRequest portletRequest)
public static java.lang.String getLocalizedFriendlyURL(javax.servlet.http.HttpServletRequest httpServletRequest, Layout layout, java.util.Locale locale, java.util.Locale originalLocale)
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 httpServletRequest)
public static java.lang.String getPathContext()
public static java.lang.String getPathContext(javax.servlet.http.HttpServletRequest httpServletRequest)
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 int getPortalLocalPort(boolean secure)
public static java.util.Properties getPortalProperties()
public static int getPortalServerPort(boolean secure)
public static java.lang.String getPortalURL(javax.servlet.http.HttpServletRequest httpServletRequest)
public static java.lang.String getPortalURL(javax.servlet.http.HttpServletRequest httpServletRequest, 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 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 httpServletRequest)
public static java.lang.String getPortletId(javax.portlet.PortletRequest portletRequest)
public static java.lang.String getPortletLongTitle(Portlet portlet, javax.servlet.ServletContext servletContext, java.util.Locale locale)
public static java.lang.String getPortletLongTitle(java.lang.String portletId, java.util.Locale locale)
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 javax.portlet.PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest httpServletRequest)
public static javax.portlet.PreferencesValidator getPreferencesValidator(Portlet portlet)
public static java.lang.String getRelativeHomeURL(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
PortalException
public static java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
public static long getScopeGroupId(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
PortalException
public static long getScopeGroupId(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String portletId) throws PortalException
PortalException
public static long getScopeGroupId(javax.servlet.http.HttpServletRequest httpServletRequest, 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 httpServletRequest) throws PortalException
PortalException
public static User getSelectedUser(javax.servlet.http.HttpServletRequest httpServletRequest, 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
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
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 httpServletRequest, java.lang.String uri)
public static java.lang.String getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String uri, long timestamp)
public static java.lang.String getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String uri, java.lang.String queryString)
public static java.lang.String getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String uri, java.lang.String queryString, long timestamp)
public static java.lang.String getStrutsAction(javax.servlet.http.HttpServletRequest httpServletRequest)
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 httpServletRequest, 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 httpServletRequest)
public static UploadServletRequest getUploadServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest, int fileSizeThreshold, java.lang.String location)
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 httpServletRequest) 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 httpServletRequest)
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 httpServletRequest)
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 httpServletRequest)
public static java.lang.String getUserPassword(javax.servlet.http.HttpServletRequest httpServletRequest)
public static java.lang.String getUserPassword(javax.servlet.http.HttpSession httpSession)
public static java.lang.String getUserPassword(javax.portlet.PortletRequest portletRequest)
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.util.TreeMap<java.lang.String,java.lang.String> getVirtualHostnames(LayoutSet layoutSet)
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 httpServletRequest) throws java.lang.Exception
java.lang.Exception
public static boolean isCDNDynamicResourcesEnabled(javax.servlet.http.HttpServletRequest httpServletRequest) 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 isCustomPortletMode(javax.portlet.PortletMode portletMode)
public static boolean isForwardedSecure(javax.servlet.http.HttpServletRequest httpServletRequest)
public static boolean isGroupAdmin(User user, long groupId) throws java.lang.Exception
java.lang.Exception
public static boolean isGroupControlPanelPath(java.lang.String path)
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 httpServletRequest)
public static boolean isMultipartRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
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 httpServletRequest)
public static boolean isRSSFeedsEnabled()
public static boolean isSecure(javax.servlet.http.HttpServletRequest httpServletRequest)
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 isValidPortalDomain(long companyId, java.lang.String domain)
public static boolean isValidResourceId(java.lang.String resourceId)
public static void resetCDNHosts()
public static void sendError(java.lang.Exception exception, javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws java.io.IOException
java.io.IOException
public static void sendError(java.lang.Exception exception, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public static void sendError(int status, java.lang.Exception exception, javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws java.io.IOException
java.io.IOException
public static void sendError(int status, java.lang.Exception exception, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public static void sendRSSFeedsDisabledError(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) 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 httpServletRequest)
public static void setPageKeywords(java.lang.String keywords, javax.servlet.http.HttpServletRequest httpServletRequest)
public static void setPageSubtitle(java.lang.String subtitle, javax.servlet.http.HttpServletRequest httpServletRequest)
public static void setPageTitle(java.lang.String title, javax.servlet.http.HttpServletRequest httpServletRequest)
public static void setPortalInetSocketAddresses(javax.servlet.http.HttpServletRequest httpServletRequest)
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 httpServletRequest) 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 httpServletRequest)
public void setPortal(Portal portal)