@ProviderType
public interface Portal
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FRIENDLY_URL_SEPARATOR |
static java.lang.String |
JSESSIONID |
static java.lang.String |
PATH_IMAGE |
static java.lang.String |
PATH_MAIN |
static java.lang.String |
PATH_MODULE |
static java.lang.String |
PATH_PORTAL_LAYOUT |
static java.lang.String |
PORTAL_REALM |
static java.lang.String |
PORTLET_XML_FILE_NAME_CUSTOM |
static java.lang.String |
PORTLET_XML_FILE_NAME_STANDARD |
static java.lang.String |
TEMP_OBFUSCATION_VALUE |
Modifier and Type | Method and Description |
---|---|
void |
addPageDescription(java.lang.String description,
javax.servlet.http.HttpServletRequest httpServletRequest)
Appends the description to the current meta description of the page.
|
void |
addPageKeywords(java.lang.String keywords,
javax.servlet.http.HttpServletRequest httpServletRequest)
Appends the keywords to the current meta keywords of the page.
|
void |
addPageSubtitle(java.lang.String subtitle,
javax.servlet.http.HttpServletRequest httpServletRequest)
Appends the subtitle to the current subtitle of the page.
|
void |
addPageTitle(java.lang.String title,
javax.servlet.http.HttpServletRequest httpServletRequest)
Appends the title to the current title of the page.
|
boolean |
addPortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener) |
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.
|
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.
|
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.
|
void |
addPortletDefaultResource(javax.servlet.http.HttpServletRequest httpServletRequest,
Portlet portlet)
Adds the default resource permissions for the portlet to the page.
|
void |
addPortletDefaultResource(long companyId,
Layout layout,
Portlet portlet) |
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.
|
java.lang.String |
addPreservedParameters(ThemeDisplay themeDisplay,
java.lang.String url)
Adds the preserved parameters doAsUserId, doAsUserLanguageId,
doAsGroupId, and refererPlid to the URL.
|
java.lang.String |
addPreservedParameters(ThemeDisplay themeDisplay,
java.lang.String url,
boolean typeControlPanel,
boolean doAsUser) |
void |
addUserLocaleOptionsMessage(javax.servlet.http.HttpServletRequest httpServletRequest)
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
void |
clearRequestParameters(javax.portlet.RenderRequest renderRequest)
Clears the render parameters in the request if the portlet is in the
action phase.
|
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.
|
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.
|
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.
|
java.lang.String |
getAbsoluteURL(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String url) |
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) |
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) |
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.
|
java.util.Map<java.util.Locale,java.lang.String> |
getAlternateURLs(java.lang.String canonicalURL,
ThemeDisplay themeDisplay,
Layout layout) |
long[] |
getAncestorSiteGroupIds(long groupId) |
BaseModel<?> |
getBaseModel(ResourcePermission resourcePermission)
Returns the base model instance for the resource permission.
|
BaseModel<?> |
getBaseModel(java.lang.String modelName,
java.lang.String primKey)
Returns the base model instance for the model name and primary key.
|
java.util.List<Group> |
getBrowsableScopeGroups(long userId,
long companyId,
long groupId,
java.lang.String portletId) |
java.lang.String |
getCanonicalURL(java.lang.String completeURL,
ThemeDisplay themeDisplay,
Layout layout)
Returns the canonical URL of the page, to distinguish it among its
translations.
|
java.lang.String |
getCanonicalURL(java.lang.String completeURL,
ThemeDisplay themeDisplay,
Layout layout,
boolean forceLayoutFriendlyURL)
Returns the canonical URL of the page, to distinguish it among its
translations.
|
java.lang.String |
getCanonicalURL(java.lang.String completeURL,
ThemeDisplay themeDisplay,
Layout layout,
boolean forceLayoutFriendlyURL,
boolean includeQueryString)
Returns the canonical URL of the page.
|
java.lang.String |
getCDNHost(boolean secure)
Returns the secure (HTTPS) or insecure (HTTP) content distribution
network (CDN) host address for this portal.
|
java.lang.String |
getCDNHost(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getCDNHostHttp(long companyId)
Returns the insecure (HTTP) content distribution network (CDN) host
address
|
java.lang.String |
getCDNHostHttps(long companyId)
Returns the secure (HTTPS) content distribution network (CDN) host
address
|
java.lang.String |
getClassName(long classNameId)
Returns the fully qualified name of the class from its ID.
|
long |
getClassNameId(java.lang.Class<?> clazz)
Returns the ID of the class from its class object.
|
long |
getClassNameId(java.lang.String value)
Returns the ID of the class from its fully qualified name.
|
Company |
getCompany(javax.servlet.http.HttpServletRequest httpServletRequest) |
Company |
getCompany(javax.portlet.PortletRequest portletRequest) |
long |
getCompanyId(javax.servlet.http.HttpServletRequest httpServletRequest) |
long |
getCompanyId(javax.portlet.PortletRequest portletRequest) |
long[] |
getCompanyIds() |
java.util.Set<java.lang.String> |
getComputerAddresses() |
java.lang.String |
getComputerName() |
java.lang.String |
getControlPanelFullURL(long scopeGroupId,
java.lang.String ppid,
java.util.Map<java.lang.String,java.lang.String[]> params) |
long |
getControlPanelPlid(long companyId) |
long |
getControlPanelPlid(javax.portlet.PortletRequest portletRequest) |
javax.portlet.PortletURL |
getControlPanelPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest,
Group group,
java.lang.String portletId,
long refererGroupId,
long refererPlid,
java.lang.String lifecycle) |
javax.portlet.PortletURL |
getControlPanelPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String portletId,
java.lang.String lifecycle) |
javax.portlet.PortletURL |
getControlPanelPortletURL(javax.portlet.PortletRequest portletRequest,
Group group,
java.lang.String portletId,
long refererGroupId,
long refererPlid,
java.lang.String lifecycle) |
javax.portlet.PortletURL |
getControlPanelPortletURL(javax.portlet.PortletRequest portletRequest,
java.lang.String portletId,
java.lang.String lifecycle) |
java.lang.String |
getCreateAccountURL(javax.servlet.http.HttpServletRequest httpServletRequest,
ThemeDisplay themeDisplay) |
long[] |
getCurrentAndAncestorSiteGroupIds(long groupId) |
long[] |
getCurrentAndAncestorSiteGroupIds(long[] groupIds) |
long[] |
getCurrentAndAncestorSiteGroupIds(long[] groupIds,
boolean checkContentSharingWithChildrenEnabled) |
long[] |
getCurrentAndAncestorSiteGroupIds(long groupId,
boolean checkContentSharingWithChildrenEnabled) |
java.util.List<Group> |
getCurrentAndAncestorSiteGroups(long groupId) |
java.util.List<Group> |
getCurrentAndAncestorSiteGroups(long[] groupIds) |
java.util.List<Group> |
getCurrentAndAncestorSiteGroups(long[] groupIds,
boolean checkContentSharingWithChildrenEnabled) |
java.util.List<Group> |
getCurrentAndAncestorSiteGroups(long groupId,
boolean checkContentSharingWithChildrenEnabled) |
java.lang.String |
getCurrentCompleteURL(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getCurrentURL(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getCurrentURL(javax.portlet.PortletRequest portletRequest) |
java.lang.String |
getCustomSQLFunctionIsNotNull() |
java.lang.String |
getCustomSQLFunctionIsNull() |
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. |
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.
|
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.
|
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.
|
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.
|
long |
getDefaultCompanyId() |
java.lang.String |
getEmailFromAddress(javax.portlet.PortletPreferences preferences,
long companyId,
java.lang.String defaultValue) |
java.lang.String |
getEmailFromName(javax.portlet.PortletPreferences preferences,
long companyId,
java.lang.String defaultValue) |
java.util.Map<java.lang.String,java.io.Serializable> |
getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
javax.servlet.http.HttpServletRequest httpServletRequest) |
java.util.Map<java.lang.String,java.io.Serializable> |
getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
javax.portlet.PortletRequest portletRequest) |
java.util.Map<java.lang.String,java.io.Serializable> |
getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
UploadPortletRequest uploadPortletRequest) |
java.io.Serializable |
getExpandoValue(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String name,
int type,
java.lang.String displayType) |
java.io.Serializable |
getExpandoValue(javax.portlet.PortletRequest portletRequest,
java.lang.String name,
int type,
java.lang.String displayType) |
java.io.Serializable |
getExpandoValue(UploadPortletRequest uploadPortletRequest,
java.lang.String name,
int type,
java.lang.String displayType) |
java.lang.String |
getFirstPageLayoutTypes(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getForwardedHost(javax.servlet.http.HttpServletRequest httpServletRequest) |
int |
getForwardedPort(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getFullName(java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName) |
java.lang.String |
getGlobalLibDir() |
java.lang.String |
getGoogleGadgetURL(Portlet portlet,
ThemeDisplay themeDisplay) |
java.lang.String |
getGroupFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay) |
java.lang.String |
getGroupFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay,
java.util.Locale locale) |
int[] |
getGroupFriendlyURLIndex(java.lang.String requestURI) |
java.lang.String |
getHomeURL(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getHost(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getHost(javax.portlet.PortletRequest portletRequest) |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest(javax.portlet.PortletRequest portletRequest) |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse(javax.portlet.PortletResponse portletResponse) |
java.lang.String |
getI18nPathLanguageId(java.util.Locale locale,
java.lang.String defaultI18nPathLanguageId) |
java.lang.String |
getJsSafePortletId(java.lang.String portletId) |
java.lang.String |
getLayoutActualURL(Layout layout) |
java.lang.String |
getLayoutActualURL(Layout layout,
java.lang.String mainPath) |
java.lang.String |
getLayoutActualURL(long groupId,
boolean privateLayout,
java.lang.String mainPath,
java.lang.String friendlyURL) |
java.lang.String |
getLayoutActualURL(long groupId,
boolean privateLayout,
java.lang.String mainPath,
java.lang.String friendlyURL,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.util.Map<java.lang.String,java.lang.Object> requestContext) |
java.lang.String |
getLayoutFriendlyURL(Layout layout,
ThemeDisplay themeDisplay) |
java.lang.String |
getLayoutFriendlyURL(Layout layout,
ThemeDisplay themeDisplay,
java.util.Locale locale) |
java.lang.String |
getLayoutFriendlyURL(ThemeDisplay themeDisplay) |
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) |
java.lang.String |
getLayoutFullURL(Layout layout,
ThemeDisplay themeDisplay) |
java.lang.String |
getLayoutFullURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser) |
java.lang.String |
getLayoutFullURL(long groupId,
java.lang.String portletId) |
java.lang.String |
getLayoutFullURL(long groupId,
java.lang.String portletId,
boolean secure) |
java.lang.String |
getLayoutFullURL(ThemeDisplay themeDisplay) |
java.lang.String |
getLayoutRelativeURL(Layout layout,
ThemeDisplay themeDisplay) |
java.lang.String |
getLayoutRelativeURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser) |
java.lang.String |
getLayoutSetDisplayURL(LayoutSet layoutSet,
boolean secureConnection) |
java.lang.String |
getLayoutSetFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay) |
java.lang.String |
getLayoutTarget(Layout layout) |
java.lang.String |
getLayoutURL(Layout layout,
ThemeDisplay themeDisplay) |
java.lang.String |
getLayoutURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser) |
java.lang.String |
getLayoutURL(Layout layout,
ThemeDisplay themeDisplay,
java.util.Locale locale) |
java.lang.String |
getLayoutURL(ThemeDisplay themeDisplay) |
LiferayPortletRequest |
getLiferayPortletRequest(javax.portlet.PortletRequest portletRequest) |
LiferayPortletResponse |
getLiferayPortletResponse(javax.portlet.PortletResponse portletResponse) |
java.util.Locale |
getLocale(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.util.Locale |
getLocale(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
boolean initialize) |
java.util.Locale |
getLocale(javax.portlet.PortletRequest portletRequest) |
java.lang.String |
getLocalizedFriendlyURL(javax.servlet.http.HttpServletRequest httpServletRequest,
Layout layout,
java.util.Locale locale,
java.util.Locale originalLocale) |
java.lang.String |
getMailId(java.lang.String mx,
java.lang.String popPortletPrefix,
java.lang.Object... ids) |
java.lang.String |
getNetvibesURL(Portlet portlet,
ThemeDisplay themeDisplay) |
java.lang.String |
getNewPortletTitle(java.lang.String portletTitle,
java.lang.String oldScopeName,
java.lang.String newScopeName) |
javax.servlet.http.HttpServletRequest |
getOriginalServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getPathContext() |
java.lang.String |
getPathContext(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getPathContext(javax.portlet.PortletRequest portletRequest) |
java.lang.String |
getPathContext(java.lang.String contextPath) |
java.lang.String |
getPathFriendlyURLPrivateGroup() |
java.lang.String |
getPathFriendlyURLPrivateUser() |
java.lang.String |
getPathFriendlyURLPublic() |
java.lang.String |
getPathImage() |
java.lang.String |
getPathMain() |
java.lang.String |
getPathModule() |
java.lang.String |
getPathProxy() |
long |
getPlidFromFriendlyURL(long companyId,
java.lang.String friendlyURL) |
long |
getPlidFromPortletId(long groupId,
boolean privateLayout,
java.lang.String portletId) |
long |
getPlidFromPortletId(long groupId,
java.lang.String portletId) |
PortalInetSocketAddressEventListener[] |
getPortalInetSocketAddressEventListeners() |
java.lang.String |
getPortalLibDir() |
java.net.InetAddress |
getPortalLocalInetAddress(boolean secure) |
int |
getPortalLocalPort(boolean secure) |
java.util.Properties |
getPortalProperties() |
java.net.InetAddress |
getPortalServerInetAddress(boolean secure) |
int |
getPortalServerPort(boolean secure) |
java.lang.String |
getPortalURL(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getPortalURL(javax.servlet.http.HttpServletRequest httpServletRequest,
boolean secure) |
java.lang.String |
getPortalURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay) |
java.lang.String |
getPortalURL(Layout layout,
ThemeDisplay themeDisplay) |
java.lang.String |
getPortalURL(javax.portlet.PortletRequest portletRequest) |
java.lang.String |
getPortalURL(javax.portlet.PortletRequest portletRequest,
boolean secure) |
java.lang.String |
getPortalURL(java.lang.String serverName,
int serverPort,
boolean secure) |
java.lang.String |
getPortalURL(ThemeDisplay themeDisplay) |
java.lang.String |
getPortalWebDir() |
javax.portlet.PortletConfig |
getPortletConfig(long companyId,
java.lang.String portletId,
javax.servlet.ServletContext servletContext) |
java.lang.String |
getPortletDescription(Portlet portlet,
javax.servlet.ServletContext servletContext,
java.util.Locale locale) |
java.lang.String |
getPortletDescription(Portlet portlet,
User user) |
java.lang.String |
getPortletDescription(java.lang.String portletId,
java.util.Locale locale) |
java.lang.String |
getPortletDescription(java.lang.String portletId,
java.lang.String languageId) |
java.lang.String |
getPortletDescription(java.lang.String portletId,
User user) |
java.lang.String |
getPortletId(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getPortletId(javax.portlet.PortletRequest portletRequest) |
java.lang.String |
getPortletLongTitle(Portlet portlet,
java.util.Locale locale) |
java.lang.String |
getPortletLongTitle(Portlet portlet,
javax.servlet.ServletContext servletContext,
java.util.Locale locale) |
java.lang.String |
getPortletLongTitle(Portlet portlet,
java.lang.String languageId) |
java.lang.String |
getPortletLongTitle(Portlet portlet,
User user) |
java.lang.String |
getPortletLongTitle(java.lang.String portletId,
java.util.Locale locale) |
java.lang.String |
getPortletLongTitle(java.lang.String portletId,
java.lang.String languageId) |
java.lang.String |
getPortletLongTitle(java.lang.String portletId,
User user) |
java.lang.String |
getPortletNamespace(java.lang.String portletId) |
java.lang.String |
getPortletTitle(Portlet portlet,
java.util.Locale locale) |
java.lang.String |
getPortletTitle(javax.portlet.PortletRequest portletRequest) |
java.lang.String |
getPortletTitle(javax.portlet.PortletResponse portletResponse) |
java.lang.String |
getPortletTitle(Portlet portlet,
javax.servlet.ServletContext servletContext,
java.util.Locale locale) |
java.lang.String |
getPortletTitle(Portlet portlet,
java.lang.String languageId) |
java.lang.String |
getPortletTitle(Portlet portlet,
User user) |
java.lang.String |
getPortletTitle(java.lang.String portletId,
java.util.Locale locale) |
java.lang.String |
getPortletTitle(java.lang.String portletId,
java.util.ResourceBundle resourceBundle) |
java.lang.String |
getPortletTitle(java.lang.String portletId,
java.lang.String languageId) |
java.lang.String |
getPortletTitle(java.lang.String portletId,
User user) |
java.lang.String |
getPortletXmlFileName() |
javax.portlet.PortletPreferences |
getPreferences(javax.servlet.http.HttpServletRequest httpServletRequest) |
javax.portlet.PreferencesValidator |
getPreferencesValidator(Portlet portlet) |
java.lang.String |
getRelativeHomeURL(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.util.ResourceBundle |
getResourceBundle(java.util.Locale locale) |
long |
getScopeGroupId(javax.servlet.http.HttpServletRequest httpServletRequest) |
long |
getScopeGroupId(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String portletId) |
long |
getScopeGroupId(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String portletId,
boolean checkStagingGroup) |
long |
getScopeGroupId(Layout layout) |
long |
getScopeGroupId(Layout layout,
java.lang.String portletId) |
long |
getScopeGroupId(long plid) |
long |
getScopeGroupId(javax.portlet.PortletRequest portletRequest) |
User |
getSelectedUser(javax.servlet.http.HttpServletRequest httpServletRequest) |
User |
getSelectedUser(javax.servlet.http.HttpServletRequest httpServletRequest,
boolean checkPermission) |
User |
getSelectedUser(javax.portlet.PortletRequest portletRequest) |
User |
getSelectedUser(javax.portlet.PortletRequest portletRequest,
boolean checkPermission) |
java.lang.String |
getServletContextName() |
long[] |
getSharedContentSiteGroupIds(long companyId,
long groupId,
long userId) |
java.lang.String |
getSiteAdminURL(java.lang.String portalURL,
Group group,
java.lang.String ppid,
java.util.Map<java.lang.String,java.lang.String[]> params) |
java.lang.String |
getSiteAdminURL(ThemeDisplay themeDisplay,
java.lang.String ppid,
java.util.Map<java.lang.String,java.lang.String[]> params) |
java.util.Locale |
getSiteDefaultLocale(Group group) |
java.util.Locale |
getSiteDefaultLocale(long groupId) |
long |
getSiteGroupId(long groupId) |
java.lang.String |
getSiteLoginURL(ThemeDisplay themeDisplay)
Returns the URL of the login page for the current site if one is
available.
|
java.lang.String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String uri) |
java.lang.String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String uri,
long timestamp) |
java.lang.String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String uri,
java.lang.String queryString) |
java.lang.String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String uri,
java.lang.String queryString,
long timestamp) |
java.lang.String |
getStrutsAction(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String[] |
getSystemGroups() |
java.lang.String[] |
getSystemOrganizationRoles() |
java.lang.String[] |
getSystemRoles() |
java.lang.String[] |
getSystemSiteRoles() |
java.lang.String |
getUniqueElementId(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String namespace,
java.lang.String id) |
java.lang.String |
getUniqueElementId(javax.portlet.PortletRequest request,
java.lang.String namespace,
java.lang.String id) |
UploadPortletRequest |
getUploadPortletRequest(javax.portlet.PortletRequest portletRequest) |
UploadServletRequest |
getUploadServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest) |
UploadServletRequest |
getUploadServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
int fileSizeThreshold,
java.lang.String location,
long maxRequestSize,
long maxFileSize) |
java.util.Date |
getUptime() |
java.lang.String |
getURLWithSessionId(java.lang.String url,
java.lang.String sessionId) |
User |
getUser(javax.servlet.http.HttpServletRequest httpServletRequest) |
User |
getUser(javax.portlet.PortletRequest portletRequest) |
java.lang.String |
getUserEmailAddress(long userId) |
long |
getUserId(javax.servlet.http.HttpServletRequest httpServletRequest) |
long |
getUserId(javax.portlet.PortletRequest portletRequest) |
java.lang.String |
getUserName(BaseModel<?> baseModel) |
java.lang.String |
getUserName(long userId,
java.lang.String defaultUserName) |
java.lang.String |
getUserName(long userId,
java.lang.String defaultUserName,
javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getUserName(long userId,
java.lang.String defaultUserName,
java.lang.String userAttribute) |
java.lang.String |
getUserName(long userId,
java.lang.String defaultUserName,
java.lang.String userAttribute,
javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getUserPassword(javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
getUserPassword(javax.servlet.http.HttpSession session) |
java.lang.String |
getUserPassword(javax.portlet.PortletRequest portletRequest) |
java.lang.String |
getValidPortalDomain(long companyId,
java.lang.String domain) |
long |
getValidUserId(long companyId,
long userId) |
java.lang.String |
getVirtualHostname(LayoutSet layoutSet)
Deprecated.
As of Mueller (7.2.x), replaced by
getVirtualHostnames(LayoutSet) |
java.util.TreeMap<java.lang.String,java.lang.String> |
getVirtualHostnames(LayoutSet layoutSet) |
java.lang.String |
getWidgetURL(Portlet portlet,
ThemeDisplay themeDisplay) |
void |
initCustomSQL() |
User |
initUser(javax.servlet.http.HttpServletRequest httpServletRequest) |
boolean |
isCDNDynamicResourcesEnabled(javax.servlet.http.HttpServletRequest httpServletRequest) |
boolean |
isCDNDynamicResourcesEnabled(long companyId) |
boolean |
isCompanyAdmin(User user) |
boolean |
isCompanyControlPanelPortlet(java.lang.String portletId,
java.lang.String category,
ThemeDisplay themeDisplay) |
boolean |
isCompanyControlPanelPortlet(java.lang.String portletId,
ThemeDisplay themeDisplay) |
boolean |
isControlPanelPortlet(java.lang.String portletId,
java.lang.String category,
ThemeDisplay themeDisplay) |
boolean |
isControlPanelPortlet(java.lang.String portletId,
ThemeDisplay themeDisplay) |
boolean |
isCustomPortletMode(javax.portlet.PortletMode portletMode) |
boolean |
isForwardedSecure(javax.servlet.http.HttpServletRequest httpServletRequest) |
boolean |
isGroupAdmin(User user,
long groupId) |
boolean |
isGroupControlPanelPath(java.lang.String path) |
boolean |
isGroupFriendlyURL(java.lang.String fullURL,
java.lang.String groupFriendlyURL,
java.lang.String layoutFriendlyURL) |
boolean |
isGroupOwner(User user,
long groupId) |
boolean |
isLayoutDescendant(Layout layout,
long layoutId) |
boolean |
isLayoutSitemapable(Layout layout) |
boolean |
isLoginRedirectRequired(javax.servlet.http.HttpServletRequest httpServletRequest) |
boolean |
isMethodGet(javax.portlet.PortletRequest portletRequest) |
boolean |
isMethodPost(javax.portlet.PortletRequest portletRequest) |
boolean |
isMultipartRequest(javax.servlet.http.HttpServletRequest httpServletRequest) |
boolean |
isOmniadmin(long userId) |
boolean |
isOmniadmin(User user) |
boolean |
isReservedParameter(java.lang.String name) |
boolean |
isRightToLeft(javax.servlet.http.HttpServletRequest httpServletRequest) |
boolean |
isRSSFeedsEnabled() |
boolean |
isSecure(javax.servlet.http.HttpServletRequest httpServletRequest) |
boolean |
isSkipPortletContentRendering(Group group,
LayoutTypePortlet layoutTypePortlet,
PortletDisplay portletDisplay,
java.lang.String portletName) |
boolean |
isSystemGroup(java.lang.String groupName) |
boolean |
isSystemRole(java.lang.String roleName) |
boolean |
isUpdateAvailable() |
boolean |
isValidResourceId(java.lang.String resourceId) |
boolean |
removePortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener) |
void |
resetCDNHosts() |
java.lang.String |
resetPortletParameters(java.lang.String url,
java.lang.String portletId) |
void |
sendError(java.lang.Exception exception,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
void |
sendError(java.lang.Exception exception,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
void |
sendError(int status,
java.lang.Exception exception,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
void |
sendError(int status,
java.lang.Exception exception,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
void |
sendRSSFeedsDisabledError(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
void |
sendRSSFeedsDisabledError(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse) |
void |
setPageDescription(java.lang.String description,
javax.servlet.http.HttpServletRequest httpServletRequest)
Sets the description for the page, overriding the existing page
description.
|
void |
setPageKeywords(java.lang.String keywords,
javax.servlet.http.HttpServletRequest httpServletRequest)
Sets the keywords for the page, overriding the existing page keywords.
|
void |
setPageSubtitle(java.lang.String subtitle,
javax.servlet.http.HttpServletRequest httpServletRequest)
Sets the subtitle for the page, overriding the existing page subtitle.
|
void |
setPageTitle(java.lang.String title,
javax.servlet.http.HttpServletRequest httpServletRequest)
Sets the whole title for the page, overriding the existing page whole
title.
|
void |
setPortalInetSocketAddresses(javax.servlet.http.HttpServletRequest httpServletRequest) |
void |
storePreferences(javax.portlet.PortletPreferences portletPreferences) |
java.lang.String[] |
stripURLAnchor(java.lang.String url,
java.lang.String separator) |
java.lang.String |
transformCustomSQL(java.lang.String sql) |
java.lang.String |
transformSQL(java.lang.String sql) |
void |
updateImageId(BaseModel<?> baseModel,
boolean image,
byte[] bytes,
java.lang.String fieldName,
long maxSize,
int maxHeight,
int maxWidth) |
javax.portlet.PortletMode |
updatePortletMode(java.lang.String portletId,
User user,
Layout layout,
javax.portlet.PortletMode portletMode,
javax.servlet.http.HttpServletRequest httpServletRequest) |
java.lang.String |
updateRedirect(java.lang.String redirect,
java.lang.String oldPath,
java.lang.String newPath) |
javax.portlet.WindowState |
updateWindowState(java.lang.String portletId,
User user,
Layout layout,
javax.portlet.WindowState windowState,
javax.servlet.http.HttpServletRequest httpServletRequest) |
static final java.lang.String FRIENDLY_URL_SEPARATOR
static final java.lang.String JSESSIONID
static final java.lang.String PATH_IMAGE
static final java.lang.String PATH_MAIN
static final java.lang.String PATH_MODULE
static final java.lang.String PATH_PORTAL_LAYOUT
static final java.lang.String PORTAL_REALM
static final java.lang.String PORTLET_XML_FILE_NAME_CUSTOM
static final java.lang.String PORTLET_XML_FILE_NAME_STANDARD
static final java.lang.String TEMP_OBFUSCATION_VALUE
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 pagevoid 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 pagevoid addPageSubtitle(java.lang.String subtitle, javax.servlet.http.HttpServletRequest httpServletRequest)
subtitle
- the subtitle to append to the current subtitlehttpServletRequest
- the servlet request for the pagevoid addPageTitle(java.lang.String title, javax.servlet.http.HttpServletRequest httpServletRequest)
title
- the title to append to the current titlehttpServletRequest
- the servlet request for the pageboolean addPortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener)
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 breakcrumb entryurl
- the URL of the new breadcrumb entryvoid 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 breakcrumb entryurl
- the URL of the new breadcrumb entrydata
- the HTML5 data parameters of the new breadcrumb entryvoid 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 breakcrumb entryurl
- the URL of the new breadcrumb entrydata
- the HTML5 data parameters of the new breadcrumb entryportletBreadcrumbEntry
- whether the entry is a portlet breadcrumb
entryvoid addPortletDefaultResource(javax.servlet.http.HttpServletRequest httpServletRequest, Portlet portlet) throws PortalException
httpServletRequest
- the servlet request for the pageportlet
- the portletPortalException
- if a portal exception occurredvoid addPortletDefaultResource(long companyId, Layout layout, Portlet portlet) throws PortalException
PortalException
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 layouturl
- the URLdoAsUser
- whether to include doAsUserId and doAsLanguageId in the
URL if they are available. If false
, doAsUserId and
doAsUserLanguageId will never be added.java.lang.String addPreservedParameters(ThemeDisplay themeDisplay, java.lang.String url)
themeDisplay
- the current theme displayurl
- the URLjava.lang.String addPreservedParameters(ThemeDisplay themeDisplay, java.lang.String url, boolean typeControlPanel, boolean doAsUser)
@Deprecated void addUserLocaleOptionsMessage(javax.servlet.http.HttpServletRequest httpServletRequest)
void clearRequestParameters(javax.portlet.RenderRequest renderRequest)
renderRequest
- the render requestvoid 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 parametersjava.lang.String escapeRedirect(java.lang.String url)
url
- the URL to escapenull
if the URL is not an
allowed for redirectsjava.lang.String generateRandomKey(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String input)
httpServletRequest
- the servlet request for the pageinput
- the input stringjava.lang.String getAbsoluteURL(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String url)
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
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
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 (translated) pagelayout
- the page being requestedPortalException
- if a portal exception occurredjava.util.Map<java.util.Locale,java.lang.String> getAlternateURLs(java.lang.String canonicalURL, ThemeDisplay themeDisplay, Layout layout) throws PortalException
PortalException
long[] getAncestorSiteGroupIds(long groupId)
BaseModel<?> getBaseModel(ResourcePermission resourcePermission) throws PortalException
resourcePermission
- the resource permissionnull
if the resource
permission does not have a base model instance (such as if its a
portlet)PortalException
- if a portal exception occurredBaseModel<?> 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 its a portlet)PortalException
- if a portal exception occurredjava.util.List<Group> getBrowsableScopeGroups(long userId, long companyId, long groupId, java.lang.String portletId) throws PortalException
PortalException
java.lang.String getCanonicalURL(java.lang.String completeURL, ThemeDisplay themeDisplay, Layout layout) throws PortalException
completeURL
- the complete URL of the pagethemeDisplay
- the current theme displaylayout
- the layout. If it is null
, then it is
generated for the current layoutPortalException
- if a portal exception occurredjava.lang.String getCanonicalURL(java.lang.String completeURL, ThemeDisplay themeDisplay, Layout layout, boolean forceLayoutFriendlyURL) throws PortalException
completeURL
- the complete URL of the pagethemeDisplay
- the current theme displaylayout
- the layout. If it is null
, then it is
generated for the current layoutforceLayoutFriendlyURL
- adds the page friendly URL to the
canonical URL even if it is not neededPortalException
- if a portal exception occurredjava.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 occurredjava.lang.String getCDNHost(boolean secure)
secure
- whether to get the secure or insecure CDN host addressjava.lang.String getCDNHost(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
PortalException
java.lang.String getCDNHostHttp(long companyId)
companyId
- the company ID of a sitejava.lang.String getCDNHostHttps(long companyId)
companyId
- the company ID of a sitejava.lang.String getClassName(long classNameId)
classNameId
- the ID of the classlong getClassNameId(java.lang.Class<?> clazz)
clazz
- the class objectlong getClassNameId(java.lang.String value)
value
- the fully qualified name of the classCompany getCompany(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
PortalException
Company getCompany(javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
long getCompanyId(javax.servlet.http.HttpServletRequest httpServletRequest)
long getCompanyId(javax.portlet.PortletRequest portletRequest)
long[] getCompanyIds()
java.util.Set<java.lang.String> getComputerAddresses()
java.lang.String getComputerName()
java.lang.String getControlPanelFullURL(long scopeGroupId, java.lang.String ppid, java.util.Map<java.lang.String,java.lang.String[]> params) throws PortalException
PortalException
long getControlPanelPlid(long companyId) throws PortalException
PortalException
long getControlPanelPlid(javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
javax.portlet.PortletURL getControlPanelPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest, Group group, java.lang.String portletId, long refererGroupId, long refererPlid, java.lang.String lifecycle)
javax.portlet.PortletURL getControlPanelPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String portletId, java.lang.String lifecycle)
javax.portlet.PortletURL getControlPanelPortletURL(javax.portlet.PortletRequest portletRequest, Group group, java.lang.String portletId, long refererGroupId, long refererPlid, java.lang.String lifecycle)
javax.portlet.PortletURL getControlPanelPortletURL(javax.portlet.PortletRequest portletRequest, java.lang.String portletId, java.lang.String lifecycle)
java.lang.String getCreateAccountURL(javax.servlet.http.HttpServletRequest httpServletRequest, ThemeDisplay themeDisplay) throws java.lang.Exception
java.lang.Exception
long[] getCurrentAndAncestorSiteGroupIds(long groupId) throws PortalException
PortalException
long[] getCurrentAndAncestorSiteGroupIds(long groupId, boolean checkContentSharingWithChildrenEnabled) throws PortalException
PortalException
long[] getCurrentAndAncestorSiteGroupIds(long[] groupIds) throws PortalException
PortalException
long[] getCurrentAndAncestorSiteGroupIds(long[] groupIds, boolean checkContentSharingWithChildrenEnabled) throws PortalException
PortalException
java.util.List<Group> getCurrentAndAncestorSiteGroups(long groupId) throws PortalException
PortalException
java.util.List<Group> getCurrentAndAncestorSiteGroups(long groupId, boolean checkContentSharingWithChildrenEnabled) throws PortalException
PortalException
java.util.List<Group> getCurrentAndAncestorSiteGroups(long[] groupIds) throws PortalException
PortalException
java.util.List<Group> getCurrentAndAncestorSiteGroups(long[] groupIds, boolean checkContentSharingWithChildrenEnabled) throws PortalException
PortalException
java.lang.String getCurrentCompleteURL(javax.servlet.http.HttpServletRequest httpServletRequest)
java.lang.String getCurrentURL(javax.servlet.http.HttpServletRequest httpServletRequest)
java.lang.String getCurrentURL(javax.portlet.PortletRequest portletRequest)
java.lang.String getCustomSQLFunctionIsNotNull()
java.lang.String getCustomSQLFunctionIsNull()
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 invalidjava.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 occurredjava.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 occurredjava.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 occurredjava.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 occurredlong getDefaultCompanyId()
java.lang.String getEmailFromAddress(javax.portlet.PortletPreferences preferences, long companyId, java.lang.String defaultValue)
java.lang.String getEmailFromName(javax.portlet.PortletPreferences preferences, long companyId, java.lang.String defaultValue)
java.util.Map<java.lang.String,java.io.Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge, javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
PortalException
java.util.Map<java.lang.String,java.io.Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge, javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
java.util.Map<java.lang.String,java.io.Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge, UploadPortletRequest uploadPortletRequest) throws PortalException
PortalException
java.io.Serializable getExpandoValue(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String name, int type, java.lang.String displayType) throws PortalException
PortalException
java.io.Serializable getExpandoValue(javax.portlet.PortletRequest portletRequest, java.lang.String name, int type, java.lang.String displayType) throws PortalException
PortalException
java.io.Serializable getExpandoValue(UploadPortletRequest uploadPortletRequest, java.lang.String name, int type, java.lang.String displayType) throws PortalException
PortalException
java.lang.String getFirstPageLayoutTypes(javax.servlet.http.HttpServletRequest httpServletRequest)
java.lang.String getForwardedHost(javax.servlet.http.HttpServletRequest httpServletRequest)
int getForwardedPort(javax.servlet.http.HttpServletRequest httpServletRequest)
java.lang.String getFullName(java.lang.String firstName, java.lang.String middleName, java.lang.String lastName)
java.lang.String getGlobalLibDir()
java.lang.String getGoogleGadgetURL(Portlet portlet, ThemeDisplay themeDisplay) throws PortalException
PortalException
java.lang.String getGroupFriendlyURL(LayoutSet layoutSet, ThemeDisplay themeDisplay) throws PortalException
PortalException
java.lang.String getGroupFriendlyURL(LayoutSet layoutSet, ThemeDisplay themeDisplay, java.util.Locale locale) throws PortalException
PortalException
int[] getGroupFriendlyURLIndex(java.lang.String requestURI)
java.lang.String getHomeURL(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
PortalException
java.lang.String getHost(javax.servlet.http.HttpServletRequest httpServletRequest)
java.lang.String getHost(javax.portlet.PortletRequest portletRequest)
javax.servlet.http.HttpServletRequest getHttpServletRequest(javax.portlet.PortletRequest portletRequest)
javax.servlet.http.HttpServletResponse getHttpServletResponse(javax.portlet.PortletResponse portletResponse)
java.lang.String getI18nPathLanguageId(java.util.Locale locale, java.lang.String defaultI18nPathLanguageId)
java.lang.String getJsSafePortletId(java.lang.String portletId)
java.lang.String getLayoutActualURL(Layout layout)
java.lang.String getLayoutActualURL(Layout layout, java.lang.String mainPath)
java.lang.String getLayoutActualURL(long groupId, boolean privateLayout, java.lang.String mainPath, java.lang.String friendlyURL) throws PortalException
PortalException
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
java.lang.String getLayoutFriendlyURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
java.lang.String getLayoutFriendlyURL(Layout layout, ThemeDisplay themeDisplay, java.util.Locale locale) throws PortalException
PortalException
java.lang.String getLayoutFriendlyURL(ThemeDisplay themeDisplay) throws PortalException
PortalException
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
java.lang.String getLayoutFullURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
java.lang.String getLayoutFullURL(Layout layout, ThemeDisplay themeDisplay, boolean doAsUser) throws PortalException
PortalException
java.lang.String getLayoutFullURL(long groupId, java.lang.String portletId) throws PortalException
PortalException
java.lang.String getLayoutFullURL(long groupId, java.lang.String portletId, boolean secure) throws PortalException
PortalException
java.lang.String getLayoutFullURL(ThemeDisplay themeDisplay) throws PortalException
PortalException
java.lang.String getLayoutRelativeURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
java.lang.String getLayoutRelativeURL(Layout layout, ThemeDisplay themeDisplay, boolean doAsUser) throws PortalException
PortalException
java.lang.String getLayoutSetDisplayURL(LayoutSet layoutSet, boolean secureConnection) throws PortalException
PortalException
java.lang.String getLayoutSetFriendlyURL(LayoutSet layoutSet, ThemeDisplay themeDisplay) throws PortalException
PortalException
java.lang.String getLayoutTarget(Layout layout)
java.lang.String getLayoutURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
java.lang.String getLayoutURL(Layout layout, ThemeDisplay themeDisplay, boolean doAsUser) throws PortalException
PortalException
java.lang.String getLayoutURL(Layout layout, ThemeDisplay themeDisplay, java.util.Locale locale) throws PortalException
PortalException
java.lang.String getLayoutURL(ThemeDisplay themeDisplay) throws PortalException
PortalException
LiferayPortletRequest getLiferayPortletRequest(javax.portlet.PortletRequest portletRequest)
LiferayPortletResponse getLiferayPortletResponse(javax.portlet.PortletResponse portletResponse)
java.util.Locale getLocale(javax.servlet.http.HttpServletRequest httpServletRequest)
java.util.Locale getLocale(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, boolean initialize)
java.util.Locale getLocale(javax.portlet.PortletRequest portletRequest)
java.lang.String getLocalizedFriendlyURL(javax.servlet.http.HttpServletRequest httpServletRequest, Layout layout, java.util.Locale locale, java.util.Locale originalLocale)
java.lang.String getMailId(java.lang.String mx, java.lang.String popPortletPrefix, java.lang.Object... ids)
java.lang.String getNetvibesURL(Portlet portlet, ThemeDisplay themeDisplay) throws PortalException
PortalException
java.lang.String getNewPortletTitle(java.lang.String portletTitle, java.lang.String oldScopeName, java.lang.String newScopeName)
javax.servlet.http.HttpServletRequest getOriginalServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
java.lang.String getPathContext()
java.lang.String getPathContext(javax.servlet.http.HttpServletRequest httpServletRequest)
java.lang.String getPathContext(javax.portlet.PortletRequest portletRequest)
java.lang.String getPathContext(java.lang.String contextPath)
java.lang.String getPathFriendlyURLPrivateGroup()
java.lang.String getPathFriendlyURLPrivateUser()
java.lang.String getPathFriendlyURLPublic()
java.lang.String getPathImage()
java.lang.String getPathMain()
java.lang.String getPathModule()
java.lang.String getPathProxy()
long getPlidFromFriendlyURL(long companyId, java.lang.String friendlyURL)
long getPlidFromPortletId(long groupId, boolean privateLayout, java.lang.String portletId) throws PortalException
PortalException
long getPlidFromPortletId(long groupId, java.lang.String portletId) throws PortalException
PortalException
PortalInetSocketAddressEventListener[] getPortalInetSocketAddressEventListeners()
java.lang.String getPortalLibDir()
java.net.InetAddress getPortalLocalInetAddress(boolean secure)
int getPortalLocalPort(boolean secure)
java.util.Properties getPortalProperties()
java.net.InetAddress getPortalServerInetAddress(boolean secure)
int getPortalServerPort(boolean secure)
java.lang.String getPortalURL(javax.servlet.http.HttpServletRequest httpServletRequest)
java.lang.String getPortalURL(javax.servlet.http.HttpServletRequest httpServletRequest, boolean secure)
java.lang.String getPortalURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
java.lang.String getPortalURL(LayoutSet layoutSet, ThemeDisplay themeDisplay)
java.lang.String getPortalURL(javax.portlet.PortletRequest portletRequest)
java.lang.String getPortalURL(javax.portlet.PortletRequest portletRequest, boolean secure)
java.lang.String getPortalURL(java.lang.String serverName, int serverPort, boolean secure)
java.lang.String getPortalURL(ThemeDisplay themeDisplay) throws PortalException
PortalException
java.lang.String getPortalWebDir()
javax.portlet.PortletConfig getPortletConfig(long companyId, java.lang.String portletId, javax.servlet.ServletContext servletContext) throws javax.portlet.PortletException
javax.portlet.PortletException
java.lang.String getPortletDescription(Portlet portlet, javax.servlet.ServletContext servletContext, java.util.Locale locale)
java.lang.String getPortletDescription(java.lang.String portletId, java.util.Locale locale)
java.lang.String getPortletDescription(java.lang.String portletId, java.lang.String languageId)
java.lang.String getPortletDescription(java.lang.String portletId, User user)
java.lang.String getPortletId(javax.servlet.http.HttpServletRequest httpServletRequest)
java.lang.String getPortletId(javax.portlet.PortletRequest portletRequest)
java.lang.String getPortletLongTitle(Portlet portlet, java.util.Locale locale)
java.lang.String getPortletLongTitle(Portlet portlet, javax.servlet.ServletContext servletContext, java.util.Locale locale)
java.lang.String getPortletLongTitle(Portlet portlet, java.lang.String languageId)
java.lang.String getPortletLongTitle(java.lang.String portletId, java.util.Locale locale)
java.lang.String getPortletLongTitle(java.lang.String portletId, java.lang.String languageId)
java.lang.String getPortletLongTitle(java.lang.String portletId, User user)
java.lang.String getPortletNamespace(java.lang.String portletId)
java.lang.String getPortletTitle(Portlet portlet, java.util.Locale locale)
java.lang.String getPortletTitle(Portlet portlet, javax.servlet.ServletContext servletContext, java.util.Locale locale)
java.lang.String getPortletTitle(Portlet portlet, java.lang.String languageId)
java.lang.String getPortletTitle(javax.portlet.PortletRequest portletRequest)
java.lang.String getPortletTitle(javax.portlet.PortletResponse portletResponse)
java.lang.String getPortletTitle(java.lang.String portletId, java.util.Locale locale)
java.lang.String getPortletTitle(java.lang.String portletId, java.util.ResourceBundle resourceBundle)
java.lang.String getPortletTitle(java.lang.String portletId, java.lang.String languageId)
java.lang.String getPortletTitle(java.lang.String portletId, User user)
java.lang.String getPortletXmlFileName()
javax.portlet.PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest httpServletRequest)
javax.portlet.PreferencesValidator getPreferencesValidator(Portlet portlet)
java.lang.String getRelativeHomeURL(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
PortalException
java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
long getScopeGroupId(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
PortalException
long getScopeGroupId(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String portletId) throws PortalException
PortalException
long getScopeGroupId(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String portletId, boolean checkStagingGroup) throws PortalException
PortalException
long getScopeGroupId(Layout layout)
long getScopeGroupId(Layout layout, java.lang.String portletId)
long getScopeGroupId(long plid)
long getScopeGroupId(javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
User getSelectedUser(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
PortalException
User getSelectedUser(javax.servlet.http.HttpServletRequest httpServletRequest, boolean checkPermission) throws PortalException
PortalException
User getSelectedUser(javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
User getSelectedUser(javax.portlet.PortletRequest portletRequest, boolean checkPermission) throws PortalException
PortalException
java.lang.String getServletContextName()
long[] getSharedContentSiteGroupIds(long companyId, long groupId, long userId) throws PortalException
PortalException
java.lang.String getSiteAdminURL(java.lang.String portalURL, Group group, java.lang.String ppid, java.util.Map<java.lang.String,java.lang.String[]> params) throws PortalException
PortalException
java.lang.String getSiteAdminURL(ThemeDisplay themeDisplay, java.lang.String ppid, java.util.Map<java.lang.String,java.lang.String[]> params) throws PortalException
PortalException
java.util.Locale getSiteDefaultLocale(Group group) throws PortalException
PortalException
java.util.Locale getSiteDefaultLocale(long groupId) throws PortalException
PortalException
long getSiteGroupId(long groupId)
java.lang.String getSiteLoginURL(ThemeDisplay themeDisplay) throws PortalException
themeDisplay
- the theme display for the current pagenull
if one is not availablePortalException
- if a portal exception occurredjava.lang.String getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String uri)
java.lang.String getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String uri, long timestamp)
java.lang.String getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String uri, java.lang.String queryString)
java.lang.String getStaticResourceURL(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String uri, java.lang.String queryString, long timestamp)
java.lang.String getStrutsAction(javax.servlet.http.HttpServletRequest httpServletRequest)
java.lang.String[] getSystemGroups()
java.lang.String[] getSystemOrganizationRoles()
java.lang.String[] getSystemRoles()
java.lang.String[] getSystemSiteRoles()
java.lang.String getUniqueElementId(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String namespace, java.lang.String id)
java.lang.String getUniqueElementId(javax.portlet.PortletRequest request, java.lang.String namespace, java.lang.String id)
UploadPortletRequest getUploadPortletRequest(javax.portlet.PortletRequest portletRequest)
UploadServletRequest getUploadServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
UploadServletRequest getUploadServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest, int fileSizeThreshold, java.lang.String location, long maxRequestSize, long maxFileSize)
java.util.Date getUptime()
java.lang.String getURLWithSessionId(java.lang.String url, java.lang.String sessionId)
User getUser(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
PortalException
User getUser(javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
java.lang.String getUserEmailAddress(long userId)
long getUserId(javax.servlet.http.HttpServletRequest httpServletRequest)
long getUserId(javax.portlet.PortletRequest portletRequest)
java.lang.String getUserName(BaseModel<?> baseModel)
java.lang.String getUserName(long userId, java.lang.String defaultUserName)
java.lang.String getUserName(long userId, java.lang.String defaultUserName, javax.servlet.http.HttpServletRequest httpServletRequest)
java.lang.String getUserName(long userId, java.lang.String defaultUserName, java.lang.String userAttribute)
java.lang.String getUserName(long userId, java.lang.String defaultUserName, java.lang.String userAttribute, javax.servlet.http.HttpServletRequest httpServletRequest)
java.lang.String getUserPassword(javax.servlet.http.HttpServletRequest httpServletRequest)
java.lang.String getUserPassword(javax.servlet.http.HttpSession session)
java.lang.String getUserPassword(javax.portlet.PortletRequest portletRequest)
java.lang.String getValidPortalDomain(long companyId, java.lang.String domain)
long getValidUserId(long companyId, long userId) throws PortalException
PortalException
@Deprecated java.lang.String getVirtualHostname(LayoutSet layoutSet)
getVirtualHostnames(LayoutSet)
java.util.TreeMap<java.lang.String,java.lang.String> getVirtualHostnames(LayoutSet layoutSet)
java.lang.String getWidgetURL(Portlet portlet, ThemeDisplay themeDisplay) throws PortalException
PortalException
void initCustomSQL()
User initUser(javax.servlet.http.HttpServletRequest httpServletRequest) throws java.lang.Exception
java.lang.Exception
boolean isCDNDynamicResourcesEnabled(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
PortalException
boolean isCDNDynamicResourcesEnabled(long companyId)
boolean isCompanyAdmin(User user) throws java.lang.Exception
java.lang.Exception
boolean isCompanyControlPanelPortlet(java.lang.String portletId, java.lang.String category, ThemeDisplay themeDisplay) throws PortalException
PortalException
boolean isCompanyControlPanelPortlet(java.lang.String portletId, ThemeDisplay themeDisplay) throws PortalException
PortalException
boolean isControlPanelPortlet(java.lang.String portletId, java.lang.String category, ThemeDisplay themeDisplay)
boolean isControlPanelPortlet(java.lang.String portletId, ThemeDisplay themeDisplay)
boolean isCustomPortletMode(javax.portlet.PortletMode portletMode)
boolean isForwardedSecure(javax.servlet.http.HttpServletRequest httpServletRequest)
boolean isGroupAdmin(User user, long groupId) throws java.lang.Exception
java.lang.Exception
boolean isGroupControlPanelPath(java.lang.String path)
boolean isGroupFriendlyURL(java.lang.String fullURL, java.lang.String groupFriendlyURL, java.lang.String layoutFriendlyURL)
boolean isGroupOwner(User user, long groupId) throws java.lang.Exception
java.lang.Exception
boolean isLayoutDescendant(Layout layout, long layoutId) throws PortalException
PortalException
boolean isLayoutSitemapable(Layout layout)
boolean isLoginRedirectRequired(javax.servlet.http.HttpServletRequest httpServletRequest)
boolean isMethodGet(javax.portlet.PortletRequest portletRequest)
boolean isMethodPost(javax.portlet.PortletRequest portletRequest)
boolean isMultipartRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
boolean isOmniadmin(long userId)
boolean isOmniadmin(User user)
boolean isReservedParameter(java.lang.String name)
boolean isRightToLeft(javax.servlet.http.HttpServletRequest httpServletRequest)
boolean isRSSFeedsEnabled()
boolean isSecure(javax.servlet.http.HttpServletRequest httpServletRequest)
boolean isSkipPortletContentRendering(Group group, LayoutTypePortlet layoutTypePortlet, PortletDisplay portletDisplay, java.lang.String portletName)
boolean isSystemGroup(java.lang.String groupName)
boolean isSystemRole(java.lang.String roleName)
boolean isUpdateAvailable()
boolean isValidResourceId(java.lang.String resourceId)
boolean removePortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener)
void resetCDNHosts()
java.lang.String resetPortletParameters(java.lang.String url, java.lang.String portletId)
void sendError(java.lang.Exception exception, javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws java.io.IOException
java.io.IOException
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
void sendError(int status, java.lang.Exception exception, javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws java.io.IOException
java.io.IOException
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
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
void sendRSSFeedsDisabledError(javax.portlet.PortletRequest portletRequest, javax.portlet.PortletResponse portletResponse) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
void setPageDescription(java.lang.String description, javax.servlet.http.HttpServletRequest httpServletRequest)
void setPageKeywords(java.lang.String keywords, javax.servlet.http.HttpServletRequest httpServletRequest)
void setPageSubtitle(java.lang.String subtitle, javax.servlet.http.HttpServletRequest httpServletRequest)
void setPageTitle(java.lang.String title, javax.servlet.http.HttpServletRequest httpServletRequest)
void setPortalInetSocketAddresses(javax.servlet.http.HttpServletRequest httpServletRequest)
void storePreferences(javax.portlet.PortletPreferences portletPreferences) throws java.io.IOException, javax.portlet.ValidatorException
java.io.IOException
javax.portlet.ValidatorException
java.lang.String[] stripURLAnchor(java.lang.String url, java.lang.String separator)
java.lang.String transformCustomSQL(java.lang.String sql)
java.lang.String transformSQL(java.lang.String sql)
void updateImageId(BaseModel<?> baseModel, boolean image, byte[] bytes, java.lang.String fieldName, long maxSize, int maxHeight, int maxWidth) throws PortalException
PortalException
javax.portlet.PortletMode updatePortletMode(java.lang.String portletId, User user, Layout layout, javax.portlet.PortletMode portletMode, javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
PortalException
java.lang.String updateRedirect(java.lang.String redirect, java.lang.String oldPath, java.lang.String newPath)