@ProviderType
public interface Portal
Modifier and Type | Field and Description |
---|---|
static String |
FRIENDLY_URL_SEPARATOR |
static String |
JSESSIONID |
static String |
PATH_IMAGE |
static String |
PATH_MAIN |
static String |
PATH_MODULE |
static String |
PATH_PORTAL_LAYOUT |
static String |
PORTAL_REALM |
static String |
PORTLET_XML_FILE_NAME_CUSTOM |
static String |
PORTLET_XML_FILE_NAME_STANDARD |
static String |
TEMP_OBFUSCATION_VALUE |
Modifier and Type | Method and Description |
---|---|
void |
addPageDescription(String description,
javax.servlet.http.HttpServletRequest request)
Appends the description to the current meta description of the page.
|
void |
addPageKeywords(String keywords,
javax.servlet.http.HttpServletRequest request)
Appends the keywords to the current meta keywords of the page.
|
void |
addPageSubtitle(String subtitle,
javax.servlet.http.HttpServletRequest request)
Appends the subtitle to the current subtitle of the page.
|
void |
addPageTitle(String title,
javax.servlet.http.HttpServletRequest request)
Appends the title to the current title of the page.
|
boolean |
addPortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener) |
void |
addPortalPortEventListener(PortalPortEventListener portalPortEventListener)
Deprecated.
As of Wilberforce (7.0.x), replaced by
addPortalInetSocketAddressEventListener(
PortalInetSocketAddressEventListener) |
void |
addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request,
String title,
String url)
Adds an entry to the portlet breadcrumbs for the page.
|
void |
addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request,
String title,
String url,
Map<String,Object> data)
Adds an entry to the portlet breadcrumbs for the page.
|
void |
addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request,
String title,
String url,
Map<String,Object> data,
boolean portletBreadcrumbEntry)
Adds an entry to the portlet breadcrumbs for the page.
|
void |
addPortletDefaultResource(javax.servlet.http.HttpServletRequest request,
Portlet portlet)
Adds the default resource permissions for the portlet to the page.
|
void |
addPortletDefaultResource(long companyId,
Layout layout,
Portlet portlet) |
String |
addPreservedParameters(ThemeDisplay themeDisplay,
Layout layout,
String url,
boolean doAsUser)
Adds the preserved parameters doAsGroupId and refererPlid to the URL,
optionally adding doAsUserId and doAsUserLanguageId as well.
|
String |
addPreservedParameters(ThemeDisplay themeDisplay,
String url)
Adds the preserved parameters doAsUserId, doAsUserLanguageId,
doAsGroupId, and refererPlid to the URL.
|
String |
addPreservedParameters(ThemeDisplay themeDisplay,
String url,
boolean typeControlPanel,
boolean doAsUser) |
void |
addUserLocaleOptionsMessage(javax.servlet.http.HttpServletRequest request) |
void |
clearRequestParameters(RenderRequest renderRequest)
Clears the render parameters in the request if the portlet is in the
action phase.
|
void |
copyRequestParameters(ActionRequest actionRequest,
ActionResponse actionResponse)
Copies the request parameters to the render parameters, unless a
parameter with that name already exists in the render parameters.
|
String |
escapeRedirect(String url)
Escapes the URL for use in a redirect and checks that security settings
allow the URL is allowed for redirects.
|
String |
generateRandomKey(javax.servlet.http.HttpServletRequest request,
String input)
Generates a random key to identify the request based on the input string.
|
String |
getAbsoluteURL(javax.servlet.http.HttpServletRequest request,
String url) |
LayoutQueryStringComposite |
getActualLayoutQueryStringComposite(long groupId,
boolean privateLayout,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext) |
String |
getActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext) |
String |
getAlternateURL(String canonicalURL,
ThemeDisplay themeDisplay,
Locale locale,
Layout layout)
Returns the alternate URL for the requested canonical URL in the given
locale.
|
Map<Locale,String> |
getAlternateURLs(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(String modelName,
String primKey)
Returns the base model instance for the model name and primary key.
|
long |
getBasicAuthUserId(javax.servlet.http.HttpServletRequest request)
Deprecated.
As of Wilberforce (7.0.x), replaced by
HttpAuthManagerUtil.getBasicUserId(
HttpServletRequest) |
long |
getBasicAuthUserId(javax.servlet.http.HttpServletRequest request,
long companyId)
Deprecated.
As of Wilberforce (7.0.x), replaced by
HttpAuthManagerUtil.getBasicUserId(
HttpServletRequest) |
List<Group> |
getBrowsableScopeGroups(long userId,
long companyId,
long groupId,
String portletId) |
String |
getCanonicalURL(String completeURL,
ThemeDisplay themeDisplay,
Layout layout)
Returns the canonical URL of the page, to distinguish it among its
translations.
|
String |
getCanonicalURL(String completeURL,
ThemeDisplay themeDisplay,
Layout layout,
boolean forceLayoutFriendlyURL)
Returns the canonical URL of the page, to distinguish it among its
translations.
|
String |
getCanonicalURL(String completeURL,
ThemeDisplay themeDisplay,
Layout layout,
boolean forceLayoutFriendlyURL,
boolean includeQueryString)
Returns the canonical URL of the page.
|
String |
getCDNHost(boolean secure)
Returns the secure (HTTPS) or insecure (HTTP) content distribution
network (CDN) host address for this portal.
|
String |
getCDNHost(javax.servlet.http.HttpServletRequest request) |
String |
getCDNHostHttp(long companyId)
Returns the insecure (HTTP) content distribution network (CDN) host
address
|
String |
getCDNHostHttps(long companyId)
Returns the secure (HTTPS) content distribution network (CDN) host
address
|
String |
getClassName(long classNameId)
Returns the fully qualified name of the class from its ID.
|
long |
getClassNameId(Class<?> clazz)
Returns the ID of the class from its class object.
|
long |
getClassNameId(String value)
Returns the ID of the class from its fully qualified name.
|
Company |
getCompany(javax.servlet.http.HttpServletRequest request) |
Company |
getCompany(PortletRequest portletRequest) |
long |
getCompanyId(javax.servlet.http.HttpServletRequest requestuest) |
long |
getCompanyId(PortletRequest portletRequest) |
long[] |
getCompanyIds() |
Set<String> |
getComputerAddresses() |
String |
getComputerName() |
String |
getControlPanelFullURL(long scopeGroupId,
String ppid,
Map<String,String[]> params) |
long |
getControlPanelPlid(long companyId) |
long |
getControlPanelPlid(PortletRequest portletRequest) |
PortletURL |
getControlPanelPortletURL(javax.servlet.http.HttpServletRequest request,
Group group,
String portletId,
long refererGroupId,
long refererPlid,
String lifecycle) |
PortletURL |
getControlPanelPortletURL(javax.servlet.http.HttpServletRequest request,
String portletId,
String lifecycle) |
PortletURL |
getControlPanelPortletURL(PortletRequest portletRequest,
Group group,
String portletId,
long refererGroupId,
long refererPlid,
String lifecycle) |
PortletURL |
getControlPanelPortletURL(PortletRequest portletRequest,
String portletId,
String lifecycle) |
String |
getCreateAccountURL(javax.servlet.http.HttpServletRequest request,
ThemeDisplay themeDisplay) |
long[] |
getCurrentAndAncestorSiteGroupIds(long groupId) |
long[] |
getCurrentAndAncestorSiteGroupIds(long[] groupIds) |
long[] |
getCurrentAndAncestorSiteGroupIds(long[] groupIds,
boolean checkContentSharingWithChildrenEnabled) |
long[] |
getCurrentAndAncestorSiteGroupIds(long groupId,
boolean checkContentSharingWithChildrenEnabled) |
List<Group> |
getCurrentAndAncestorSiteGroups(long groupId) |
List<Group> |
getCurrentAndAncestorSiteGroups(long[] groupIds) |
List<Group> |
getCurrentAndAncestorSiteGroups(long[] groupIds,
boolean checkContentSharingWithChildrenEnabled) |
List<Group> |
getCurrentAndAncestorSiteGroups(long groupId,
boolean checkContentSharingWithChildrenEnabled) |
String |
getCurrentCompleteURL(javax.servlet.http.HttpServletRequest request) |
String |
getCurrentURL(javax.servlet.http.HttpServletRequest request) |
String |
getCurrentURL(PortletRequest portletRequest) |
String |
getCustomSQLFunctionIsNotNull() |
String |
getCustomSQLFunctionIsNull() |
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. |
Date |
getDate(int month,
int day,
int year,
Class<? extends PortalException> clazz)
Returns the date object for the specified month, day, and year,
optionally throwing an exception if the date is invalid.
|
Date |
getDate(int month,
int day,
int year,
int hour,
int min,
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.
|
Date |
getDate(int month,
int day,
int year,
int hour,
int min,
TimeZone timeZone,
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.
|
Date |
getDate(int month,
int day,
int year,
TimeZone timeZone,
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() |
long |
getDigestAuthUserId(javax.servlet.http.HttpServletRequest request)
Deprecated.
As of Wilberforce (7.0.x), replaced by
HttpAuthManagerUtil.getDigestUserId(
HttpServletRequest) |
String |
getEmailFromAddress(PortletPreferences preferences,
long companyId,
String defaultValue) |
String |
getEmailFromName(PortletPreferences preferences,
long companyId,
String defaultValue) |
Map<String,Serializable> |
getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
javax.servlet.http.HttpServletRequest request) |
Map<String,Serializable> |
getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
PortletRequest portletRequest) |
Map<String,Serializable> |
getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
UploadPortletRequest uploadPortletRequest) |
Serializable |
getExpandoValue(javax.servlet.http.HttpServletRequest request,
String name,
int type,
String displayType) |
Serializable |
getExpandoValue(PortletRequest portletRequest,
String name,
int type,
String displayType) |
Serializable |
getExpandoValue(UploadPortletRequest uploadPortletRequest,
String name,
int type,
String displayType) |
String |
getFacebookURL(Portlet portlet,
String facebookCanvasPageURL,
ThemeDisplay themeDisplay) |
String |
getFirstPageLayoutTypes(javax.servlet.http.HttpServletRequest request) |
String |
getForwardedHost(javax.servlet.http.HttpServletRequest request) |
int |
getForwardedPort(javax.servlet.http.HttpServletRequest request) |
String |
getFullName(String firstName,
String middleName,
String lastName) |
String |
getGlobalLibDir() |
String |
getGoogleGadgetURL(Portlet portlet,
ThemeDisplay themeDisplay) |
String |
getGroupFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay) |
String |
getGroupFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay,
Locale locale) |
int[] |
getGroupFriendlyURLIndex(String requestURI) |
String[] |
getGroupPermissions(javax.servlet.http.HttpServletRequest request) |
String[] |
getGroupPermissions(javax.servlet.http.HttpServletRequest request,
String className) |
String[] |
getGroupPermissions(PortletRequest portletRequest) |
String[] |
getGroupPermissions(PortletRequest portletRequest,
String className) |
String[] |
getGuestPermissions(javax.servlet.http.HttpServletRequest request) |
String[] |
getGuestPermissions(javax.servlet.http.HttpServletRequest request,
String className) |
String[] |
getGuestPermissions(PortletRequest portletRequest) |
String[] |
getGuestPermissions(PortletRequest portletRequest,
String className) |
String |
getHomeURL(javax.servlet.http.HttpServletRequest request) |
String |
getHost(javax.servlet.http.HttpServletRequest request) |
String |
getHost(PortletRequest portletRequest) |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest(PortletRequest portletRequest) |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse(PortletResponse portletResponse) |
String |
getI18nPathLanguageId(Locale locale,
String defaultI18nPathLanguageId) |
String |
getJournalArticleActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
Layout |
getJournalArticleLayout(long groupId,
boolean privateLayout,
String friendlyURL)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
String |
getJsSafePortletId(String portletId) |
String |
getLayoutActualURL(Layout layout) |
String |
getLayoutActualURL(Layout layout,
String mainPath) |
String |
getLayoutActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL) |
String |
getLayoutActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext) |
String |
getLayoutFriendlyURL(Layout layout,
ThemeDisplay themeDisplay) |
String |
getLayoutFriendlyURL(Layout layout,
ThemeDisplay themeDisplay,
Locale locale) |
String |
getLayoutFriendlyURL(ThemeDisplay themeDisplay) |
LayoutFriendlyURLComposite |
getLayoutFriendlyURLComposite(long groupId,
boolean privateLayout,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
Deprecated.
As of Judson (7.1.x), replaced by
#getLayoutFriendlyURLSeparatorComposite(long, boolean,
String, Map |
LayoutFriendlyURLSeparatorComposite |
getLayoutFriendlyURLSeparatorComposite(long groupId,
boolean privateLayout,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext) |
String |
getLayoutFullURL(Layout layout,
ThemeDisplay themeDisplay) |
String |
getLayoutFullURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser) |
String |
getLayoutFullURL(long groupId,
String portletId) |
String |
getLayoutFullURL(long groupId,
String portletId,
boolean secure) |
String |
getLayoutFullURL(ThemeDisplay themeDisplay) |
String |
getLayoutRelativeURL(Layout layout,
ThemeDisplay themeDisplay) |
String |
getLayoutRelativeURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser) |
String |
getLayoutSetDisplayURL(LayoutSet layoutSet,
boolean secureConnection) |
String |
getLayoutSetFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay) |
String |
getLayoutTarget(Layout layout) |
String |
getLayoutURL(Layout layout,
ThemeDisplay themeDisplay) |
String |
getLayoutURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser) |
String |
getLayoutURL(Layout layout,
ThemeDisplay themeDisplay,
Locale locale) |
String |
getLayoutURL(ThemeDisplay themeDisplay) |
LiferayPortletRequest |
getLiferayPortletRequest(PortletRequest portletRequest) |
LiferayPortletResponse |
getLiferayPortletResponse(PortletResponse portletResponse) |
Locale |
getLocale(javax.servlet.http.HttpServletRequest request) |
Locale |
getLocale(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean initialize) |
Locale |
getLocale(PortletRequest portletRequest) |
String |
getLocalizedFriendlyURL(javax.servlet.http.HttpServletRequest request,
Layout layout,
Locale locale,
Locale originalLocale) |
String |
getMailId(String mx,
String popPortletPrefix,
Object... ids) |
String |
getNetvibesURL(Portlet portlet,
ThemeDisplay themeDisplay) |
String |
getNewPortletTitle(String portletTitle,
String oldScopeName,
String newScopeName) |
javax.servlet.http.HttpServletRequest |
getOriginalServletRequest(javax.servlet.http.HttpServletRequest request) |
String |
getPathContext() |
String |
getPathContext(javax.servlet.http.HttpServletRequest request) |
String |
getPathContext(PortletRequest portletRequest) |
String |
getPathContext(String contextPath) |
String |
getPathFriendlyURLPrivateGroup() |
String |
getPathFriendlyURLPrivateUser() |
String |
getPathFriendlyURLPublic() |
String |
getPathImage() |
String |
getPathMain() |
String |
getPathModule() |
String |
getPathProxy() |
long |
getPlidFromFriendlyURL(long companyId,
String friendlyURL) |
long |
getPlidFromPortletId(long groupId,
boolean privateLayout,
String portletId) |
long |
getPlidFromPortletId(long groupId,
String portletId) |
PortalInetSocketAddressEventListener[] |
getPortalInetSocketAddressEventListeners() |
String |
getPortalLibDir() |
InetAddress |
getPortalLocalInetAddress(boolean secure) |
int |
getPortalLocalPort(boolean secure) |
int |
getPortalPort(boolean secure)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getPortalServerPort(boolean) |
Properties |
getPortalProperties() |
InetAddress |
getPortalServerInetAddress(boolean secure) |
int |
getPortalServerPort(boolean secure) |
String |
getPortalURL(javax.servlet.http.HttpServletRequest request) |
String |
getPortalURL(javax.servlet.http.HttpServletRequest request,
boolean secure) |
String |
getPortalURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay) |
String |
getPortalURL(Layout layout,
ThemeDisplay themeDisplay) |
String |
getPortalURL(PortletRequest portletRequest) |
String |
getPortalURL(PortletRequest portletRequest,
boolean secure) |
String |
getPortalURL(String serverName,
int serverPort,
boolean secure) |
String |
getPortalURL(ThemeDisplay themeDisplay) |
String |
getPortalWebDir() |
List<BreadcrumbEntry> |
getPortletBreadcrumbs(javax.servlet.http.HttpServletRequest request)
Deprecated.
As of Wilberforce (7.0.x), replaced by
BreadcrumbUtil.getPortletBreadcrumbEntries(
HttpServletRequest) |
PortletConfig |
getPortletConfig(long companyId,
String portletId,
javax.servlet.ServletContext servletContext) |
String |
getPortletDescription(Portlet portlet,
javax.servlet.ServletContext servletContext,
Locale locale) |
String |
getPortletDescription(Portlet portlet,
User user) |
String |
getPortletDescription(String portletId,
Locale locale) |
String |
getPortletDescription(String portletId,
String languageId) |
String |
getPortletDescription(String portletId,
User user) |
String |
getPortletId(javax.servlet.http.HttpServletRequest request) |
String |
getPortletId(PortletRequest portletRequest) |
String |
getPortletLongTitle(Portlet portlet,
Locale locale) |
String |
getPortletLongTitle(Portlet portlet,
javax.servlet.ServletContext servletContext,
Locale locale) |
String |
getPortletLongTitle(Portlet portlet,
String languageId) |
String |
getPortletLongTitle(Portlet portlet,
User user) |
String |
getPortletLongTitle(String portletId,
Locale locale) |
String |
getPortletLongTitle(String portletId,
String languageId) |
String |
getPortletLongTitle(String portletId,
User user) |
String |
getPortletNamespace(String portletId) |
String |
getPortletTitle(Portlet portlet,
Locale locale) |
String |
getPortletTitle(PortletRequest portletRequest) |
String |
getPortletTitle(PortletResponse portletResponse) |
String |
getPortletTitle(Portlet portlet,
javax.servlet.ServletContext servletContext,
Locale locale) |
String |
getPortletTitle(Portlet portlet,
String languageId) |
String |
getPortletTitle(Portlet portlet,
User user) |
String |
getPortletTitle(String portletId,
Locale locale) |
String |
getPortletTitle(String portletId,
ResourceBundle resourceBundle) |
String |
getPortletTitle(String portletId,
String languageId) |
String |
getPortletTitle(String portletId,
User user) |
String |
getPortletXmlFileName() |
PortletPreferences |
getPreferences(javax.servlet.http.HttpServletRequest request) |
PreferencesValidator |
getPreferencesValidator(Portlet portlet) |
String |
getRelativeHomeURL(javax.servlet.http.HttpServletRequest request) |
ResourceBundle |
getResourceBundle(Locale locale) |
long |
getScopeGroupId(javax.servlet.http.HttpServletRequest request) |
long |
getScopeGroupId(javax.servlet.http.HttpServletRequest request,
String portletId) |
long |
getScopeGroupId(javax.servlet.http.HttpServletRequest request,
String portletId,
boolean checkStagingGroup) |
long |
getScopeGroupId(Layout layout) |
long |
getScopeGroupId(Layout layout,
String portletId) |
long |
getScopeGroupId(long plid) |
long |
getScopeGroupId(PortletRequest portletRequest) |
User |
getSelectedUser(javax.servlet.http.HttpServletRequest request) |
User |
getSelectedUser(javax.servlet.http.HttpServletRequest request,
boolean checkPermission) |
User |
getSelectedUser(PortletRequest portletRequest) |
User |
getSelectedUser(PortletRequest portletRequest,
boolean checkPermission) |
String |
getServletContextName() |
long[] |
getSharedContentSiteGroupIds(long companyId,
long groupId,
long userId) |
PortletURL |
getSiteAdministrationURL(javax.servlet.http.HttpServletRequest request,
ThemeDisplay themeDisplay,
String portletId)
Deprecated.
As of Wilberforce (7.0.x), replaced by
#getControlPanelPortletURL(PortletRequest, Group, String,
long, String) |
PortletURL |
getSiteAdministrationURL(PortletResponse portletResponse,
ThemeDisplay themeDisplay,
String portletName)
Deprecated.
As of Wilberforce (7.0.x), replaced by
#getControlPanelPortletURL(PortletRequest, Group, String,
long, String) |
String |
getSiteAdminURL(Company company,
Group group,
String ppid,
Map<String,String[]> params)
Deprecated.
As of Judson (7.1.x), replaced by
getSiteAdminURL(ThemeDisplay, String, Map) |
String |
getSiteAdminURL(Group group,
String ppid,
Map<String,String[]> params)
Deprecated.
As of Judson (7.1.x), replaced by
getSiteAdminURL(ThemeDisplay, String, Map) |
String |
getSiteAdminURL(ThemeDisplay themeDisplay,
String ppid,
Map<String,String[]> params) |
long[] |
getSiteAndCompanyGroupIds(long groupId)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getCurrentAndAncestorSiteGroupIds(long) |
long[] |
getSiteAndCompanyGroupIds(ThemeDisplay themeDisplay)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getCurrentAndAncestorSiteGroupIds(long) |
Locale |
getSiteDefaultLocale(Group group) |
Locale |
getSiteDefaultLocale(long groupId) |
long |
getSiteGroupId(long groupId) |
String |
getSiteLoginURL(ThemeDisplay themeDisplay)
Returns the URL of the login page for the current site if one is
available.
|
String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
String uri) |
String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
String uri,
long timestamp) |
String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
String uri,
String queryString) |
String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
String uri,
String queryString,
long timestamp) |
String |
getStrutsAction(javax.servlet.http.HttpServletRequest request) |
String[] |
getSystemGroups() |
String[] |
getSystemOrganizationRoles() |
String[] |
getSystemRoles() |
String[] |
getSystemSiteRoles() |
String |
getUniqueElementId(javax.servlet.http.HttpServletRequest request,
String namespace,
String id) |
String |
getUniqueElementId(PortletRequest request,
String namespace,
String id) |
UploadPortletRequest |
getUploadPortletRequest(PortletRequest portletRequest) |
UploadServletRequest |
getUploadServletRequest(javax.servlet.http.HttpServletRequest request) |
Date |
getUptime() |
String |
getURLWithSessionId(String url,
String sessionId) |
User |
getUser(javax.servlet.http.HttpServletRequest request) |
User |
getUser(PortletRequest portletRequest) |
String |
getUserEmailAddress(long userId) |
long |
getUserId(javax.servlet.http.HttpServletRequest request) |
long |
getUserId(PortletRequest portletRequest) |
String |
getUserName(BaseModel<?> baseModel) |
String |
getUserName(long userId,
String defaultUserName) |
String |
getUserName(long userId,
String defaultUserName,
javax.servlet.http.HttpServletRequest request) |
String |
getUserName(long userId,
String defaultUserName,
String userAttribute) |
String |
getUserName(long userId,
String defaultUserName,
String userAttribute,
javax.servlet.http.HttpServletRequest request) |
String |
getUserPassword(javax.servlet.http.HttpServletRequest request) |
String |
getUserPassword(javax.servlet.http.HttpSession session) |
String |
getUserPassword(PortletRequest portletRequest) |
String |
getUserValue(long userId,
String param,
String defaultValue)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
String |
getValidPortalDomain(long companyId,
String domain) |
long |
getValidUserId(long companyId,
long userId) |
String |
getVirtualHostname(LayoutSet layoutSet) |
String |
getVirtualLayoutActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
LayoutFriendlyURLComposite |
getVirtualLayoutFriendlyURLComposite(boolean privateLayout,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
String |
getWidgetURL(Portlet portlet,
ThemeDisplay themeDisplay) |
void |
initCustomSQL() |
User |
initUser(javax.servlet.http.HttpServletRequest request) |
void |
invokeTaglibDiscussion(PortletConfig portletConfig,
ActionRequest actionRequest,
ActionResponse actionResponse)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
void |
invokeTaglibDiscussionPagination(PortletConfig portletConfig,
ResourceRequest resourceRequest,
ResourceResponse resourceResponse)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
boolean |
isCDNDynamicResourcesEnabled(javax.servlet.http.HttpServletRequest request) |
boolean |
isCDNDynamicResourcesEnabled(long companyId) |
boolean |
isCompanyAdmin(User user) |
boolean |
isCompanyControlPanelPortlet(String portletId,
String category,
ThemeDisplay themeDisplay) |
boolean |
isCompanyControlPanelPortlet(String portletId,
ThemeDisplay themeDisplay) |
boolean |
isControlPanelPortlet(String portletId,
String category,
ThemeDisplay themeDisplay) |
boolean |
isControlPanelPortlet(String portletId,
ThemeDisplay themeDisplay) |
boolean |
isCustomPortletMode(PortletMode portletMode) |
boolean |
isForwardedSecure(javax.servlet.http.HttpServletRequest request) |
boolean |
isGroupAdmin(User user,
long groupId) |
boolean |
isGroupFriendlyURL(String fullURL,
String groupFriendlyURL,
String layoutFriendlyURL) |
boolean |
isGroupOwner(User user,
long groupId) |
boolean |
isLayoutDescendant(Layout layout,
long layoutId) |
boolean |
isLayoutSitemapable(Layout layout) |
boolean |
isLoginRedirectRequired(javax.servlet.http.HttpServletRequest request) |
boolean |
isMethodGet(PortletRequest portletRequest) |
boolean |
isMethodPost(PortletRequest portletRequest) |
boolean |
isMultipartRequest(javax.servlet.http.HttpServletRequest request) |
boolean |
isOmniadmin(long userId) |
boolean |
isOmniadmin(User user) |
boolean |
isReservedParameter(String name) |
boolean |
isRightToLeft(javax.servlet.http.HttpServletRequest request) |
boolean |
isRSSFeedsEnabled() |
boolean |
isSecure(javax.servlet.http.HttpServletRequest request) |
boolean |
isSkipPortletContentProcessing(Group group,
javax.servlet.http.HttpServletRequest httpServletRequest,
LayoutTypePortlet layoutTypePortlet,
PortletDisplay portletDisplay,
String portletName) |
boolean |
isSkipPortletContentRendering(Group group,
LayoutTypePortlet layoutTypePortlet,
PortletDisplay portletDisplay,
String portletName) |
boolean |
isSystemGroup(String groupName) |
boolean |
isSystemRole(String roleName) |
boolean |
isUpdateAvailable() |
boolean |
isValidResourceId(String resourceId) |
boolean |
removePortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener) |
void |
removePortalPortEventListener(PortalPortEventListener portalPortEventListener)
Deprecated.
As of Wilberforce (7.0.x), replaced by
removePortalInetSocketAddressEventListener(
PortalInetSocketAddressEventListener) |
void |
resetCDNHosts() |
String |
resetPortletParameters(String url,
String portletId) |
void |
sendError(Exception e,
ActionRequest actionRequest,
ActionResponse actionResponse) |
void |
sendError(Exception e,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
sendError(int status,
Exception e,
ActionRequest actionRequest,
ActionResponse actionResponse) |
void |
sendError(int status,
Exception e,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
sendRSSFeedsDisabledError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
sendRSSFeedsDisabledError(PortletRequest portletRequest,
PortletResponse portletResponse) |
void |
setPageDescription(String description,
javax.servlet.http.HttpServletRequest request)
Sets the description for the page, overriding the existing page
description.
|
void |
setPageKeywords(String keywords,
javax.servlet.http.HttpServletRequest request)
Sets the keywords for the page, overriding the existing page keywords.
|
void |
setPageSubtitle(String subtitle,
javax.servlet.http.HttpServletRequest request)
Sets the subtitle for the page, overriding the existing page subtitle.
|
void |
setPageTitle(String title,
javax.servlet.http.HttpServletRequest request)
Sets the whole title for the page, overriding the existing page whole
title.
|
void |
setPortalInetSocketAddresses(javax.servlet.http.HttpServletRequest request) |
void |
setPortalPort(javax.servlet.http.HttpServletRequest request)
Deprecated.
As of Wilberforce (7.0.x), replaced by
setPortalInetSocketAddresses(HttpServletRequest) |
void |
storePreferences(PortletPreferences portletPreferences) |
String[] |
stripURLAnchor(String url,
String separator) |
String |
transformCustomSQL(String sql) |
String |
transformSQL(String sql) |
void |
updateImageId(BaseModel<?> baseModel,
boolean image,
byte[] bytes,
String fieldName,
long maxSize,
int maxHeight,
int maxWidth) |
PortletMode |
updatePortletMode(String portletId,
User user,
Layout layout,
PortletMode portletMode,
javax.servlet.http.HttpServletRequest request) |
String |
updateRedirect(String redirect,
String oldPath,
String newPath) |
WindowState |
updateWindowState(String portletId,
User user,
Layout layout,
WindowState windowState,
javax.servlet.http.HttpServletRequest request) |
static final String FRIENDLY_URL_SEPARATOR
static final String JSESSIONID
static final String PATH_IMAGE
static final String PATH_MAIN
static final String PATH_MODULE
static final String PATH_PORTAL_LAYOUT
static final String PORTAL_REALM
static final String PORTLET_XML_FILE_NAME_CUSTOM
static final String PORTLET_XML_FILE_NAME_STANDARD
static final String TEMP_OBFUSCATION_VALUE
void addPageDescription(String description, javax.servlet.http.HttpServletRequest request)
description
- the description to append to the current meta
descriptionrequest
- the servlet request for the pagevoid addPageKeywords(String keywords, javax.servlet.http.HttpServletRequest request)
keywords
- the keywords to add to the current meta keywords
(comma-separated)request
- the servlet request for the pagevoid addPageSubtitle(String subtitle, javax.servlet.http.HttpServletRequest request)
subtitle
- the subtitle to append to the current subtitlerequest
- the servlet request for the pagevoid addPageTitle(String title, javax.servlet.http.HttpServletRequest request)
title
- the title to append to the current titlerequest
- the servlet request for the pageboolean addPortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener)
@Deprecated void addPortalPortEventListener(PortalPortEventListener portalPortEventListener)
addPortalInetSocketAddressEventListener(
PortalInetSocketAddressEventListener)
portalPortEventListener
- the portal port event listener to addvoid addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request, String title, String url)
request
- 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 request, String title, String url, Map<String,Object> data)
request
- 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 request, String title, String url, Map<String,Object> data, boolean portletBreadcrumbEntry)
request
- 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 request, Portlet portlet) throws PortalException
request
- the servlet request for the pageportlet
- the portletPortalException
- if a portal exception occurredvoid addPortletDefaultResource(long companyId, Layout layout, Portlet portlet) throws PortalException
PortalException
String addPreservedParameters(ThemeDisplay themeDisplay, Layout layout, 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.String addPreservedParameters(ThemeDisplay themeDisplay, String url)
themeDisplay
- the current theme displayurl
- the URLString addPreservedParameters(ThemeDisplay themeDisplay, String url, boolean typeControlPanel, boolean doAsUser)
void addUserLocaleOptionsMessage(javax.servlet.http.HttpServletRequest request)
void clearRequestParameters(RenderRequest renderRequest)
renderRequest
- the render requestvoid copyRequestParameters(ActionRequest actionRequest, ActionResponse actionResponse)
actionRequest
- the request from which to get the request parametersactionResponse
- the response to receive the render parametersString escapeRedirect(String url)
url
- the URL to escapenull
if the URL is not an
allowed for redirectsString generateRandomKey(javax.servlet.http.HttpServletRequest request, String input)
request
- the servlet request for the pageinput
- the input stringString getAbsoluteURL(javax.servlet.http.HttpServletRequest request, String url)
LayoutQueryStringComposite getActualLayoutQueryStringComposite(long groupId, boolean privateLayout, String friendlyURL, Map<String,String[]> params, Map<String,Object> requestContext) throws PortalException
PortalException
String getActualURL(long groupId, boolean privateLayout, String mainPath, String friendlyURL, Map<String,String[]> params, Map<String,Object> requestContext) throws PortalException
PortalException
String getAlternateURL(String canonicalURL, ThemeDisplay themeDisplay, 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 occurredMap<Locale,String> getAlternateURLs(String canonicalURL, ThemeDisplay themeDisplay, Layout layout) throws PortalException
PortalException
long[] getAncestorSiteGroupIds(long groupId) throws PortalException
PortalException
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(String modelName, 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 occurred@Deprecated long getBasicAuthUserId(javax.servlet.http.HttpServletRequest request) throws PortalException
HttpAuthManagerUtil.getBasicUserId(
HttpServletRequest)
PortalException
@Deprecated long getBasicAuthUserId(javax.servlet.http.HttpServletRequest request, long companyId) throws PortalException
HttpAuthManagerUtil.getBasicUserId(
HttpServletRequest)
PortalException
List<Group> getBrowsableScopeGroups(long userId, long companyId, long groupId, String portletId) throws PortalException
PortalException
String getCanonicalURL(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 occurredString getCanonicalURL(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 occurredString getCanonicalURL(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 occurredString getCDNHost(boolean secure)
secure
- whether to get the secure or insecure CDN host addressString getCDNHost(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
String getCDNHostHttp(long companyId)
companyId
- the company ID of a siteString getCDNHostHttps(long companyId)
companyId
- the company ID of a siteString getClassName(long classNameId)
classNameId
- the ID of the classlong getClassNameId(Class<?> clazz)
clazz
- the class objectlong getClassNameId(String value)
value
- the fully qualified name of the classCompany getCompany(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
Company getCompany(PortletRequest portletRequest) throws PortalException
PortalException
long getCompanyId(javax.servlet.http.HttpServletRequest requestuest)
long getCompanyId(PortletRequest portletRequest)
long[] getCompanyIds()
Set<String> getComputerAddresses()
String getComputerName()
String getControlPanelFullURL(long scopeGroupId, String ppid, Map<String,String[]> params) throws PortalException
PortalException
long getControlPanelPlid(long companyId) throws PortalException
PortalException
long getControlPanelPlid(PortletRequest portletRequest) throws PortalException
PortalException
PortletURL getControlPanelPortletURL(javax.servlet.http.HttpServletRequest request, Group group, String portletId, long refererGroupId, long refererPlid, String lifecycle)
PortletURL getControlPanelPortletURL(javax.servlet.http.HttpServletRequest request, String portletId, String lifecycle)
PortletURL getControlPanelPortletURL(PortletRequest portletRequest, Group group, String portletId, long refererGroupId, long refererPlid, String lifecycle)
PortletURL getControlPanelPortletURL(PortletRequest portletRequest, String portletId, String lifecycle)
String getCreateAccountURL(javax.servlet.http.HttpServletRequest request, ThemeDisplay themeDisplay) throws Exception
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
List<Group> getCurrentAndAncestorSiteGroups(long groupId) throws PortalException
PortalException
List<Group> getCurrentAndAncestorSiteGroups(long groupId, boolean checkContentSharingWithChildrenEnabled) throws PortalException
PortalException
List<Group> getCurrentAndAncestorSiteGroups(long[] groupIds) throws PortalException
PortalException
List<Group> getCurrentAndAncestorSiteGroups(long[] groupIds, boolean checkContentSharingWithChildrenEnabled) throws PortalException
PortalException
String getCurrentCompleteURL(javax.servlet.http.HttpServletRequest request)
String getCurrentURL(javax.servlet.http.HttpServletRequest request)
String getCurrentURL(PortletRequest portletRequest)
String getCustomSQLFunctionIsNotNull()
String getCustomSQLFunctionIsNull()
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 invalidDate getDate(int month, int day, int year, 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 occurredDate getDate(int month, int day, int year, int hour, int min, 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 occurredDate getDate(int month, int day, int year, int hour, int min, TimeZone timeZone, 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 occurredDate getDate(int month, int day, int year, TimeZone timeZone, 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()
@Deprecated long getDigestAuthUserId(javax.servlet.http.HttpServletRequest request) throws PortalException
HttpAuthManagerUtil.getDigestUserId(
HttpServletRequest)
PortalException
String getEmailFromAddress(PortletPreferences preferences, long companyId, String defaultValue)
String getEmailFromName(PortletPreferences preferences, long companyId, String defaultValue)
Map<String,Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge, javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
Map<String,Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge, PortletRequest portletRequest) throws PortalException
PortalException
Map<String,Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge, UploadPortletRequest uploadPortletRequest) throws PortalException
PortalException
Serializable getExpandoValue(javax.servlet.http.HttpServletRequest request, String name, int type, String displayType) throws PortalException
PortalException
Serializable getExpandoValue(PortletRequest portletRequest, String name, int type, String displayType) throws PortalException
PortalException
Serializable getExpandoValue(UploadPortletRequest uploadPortletRequest, String name, int type, String displayType) throws PortalException
PortalException
String getFacebookURL(Portlet portlet, String facebookCanvasPageURL, ThemeDisplay themeDisplay) throws PortalException
PortalException
String getFirstPageLayoutTypes(javax.servlet.http.HttpServletRequest request)
String getForwardedHost(javax.servlet.http.HttpServletRequest request)
int getForwardedPort(javax.servlet.http.HttpServletRequest request)
String getFullName(String firstName, String middleName, String lastName)
String getGlobalLibDir()
String getGoogleGadgetURL(Portlet portlet, ThemeDisplay themeDisplay) throws PortalException
PortalException
String getGroupFriendlyURL(LayoutSet layoutSet, ThemeDisplay themeDisplay) throws PortalException
PortalException
String getGroupFriendlyURL(LayoutSet layoutSet, ThemeDisplay themeDisplay, Locale locale) throws PortalException
PortalException
int[] getGroupFriendlyURLIndex(String requestURI)
String[] getGroupPermissions(javax.servlet.http.HttpServletRequest request)
String[] getGroupPermissions(javax.servlet.http.HttpServletRequest request, String className)
String[] getGroupPermissions(PortletRequest portletRequest)
String[] getGroupPermissions(PortletRequest portletRequest, String className)
String[] getGuestPermissions(javax.servlet.http.HttpServletRequest request)
String[] getGuestPermissions(javax.servlet.http.HttpServletRequest request, String className)
String[] getGuestPermissions(PortletRequest portletRequest)
String[] getGuestPermissions(PortletRequest portletRequest, String className)
String getHomeURL(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
String getHost(javax.servlet.http.HttpServletRequest request)
String getHost(PortletRequest portletRequest)
javax.servlet.http.HttpServletRequest getHttpServletRequest(PortletRequest portletRequest)
javax.servlet.http.HttpServletResponse getHttpServletResponse(PortletResponse portletResponse)
String getI18nPathLanguageId(Locale locale, String defaultI18nPathLanguageId)
@Deprecated String getJournalArticleActualURL(long groupId, boolean privateLayout, String mainPath, String friendlyURL, Map<String,String[]> params, Map<String,Object> requestContext) throws PortalException
PortalException
@Deprecated Layout getJournalArticleLayout(long groupId, boolean privateLayout, String friendlyURL) throws PortalException
PortalException
String getJsSafePortletId(String portletId)
String getLayoutActualURL(Layout layout)
String getLayoutActualURL(Layout layout, String mainPath)
String getLayoutActualURL(long groupId, boolean privateLayout, String mainPath, String friendlyURL) throws PortalException
PortalException
String getLayoutActualURL(long groupId, boolean privateLayout, String mainPath, String friendlyURL, Map<String,String[]> params, Map<String,Object> requestContext) throws PortalException
PortalException
String getLayoutFriendlyURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
String getLayoutFriendlyURL(Layout layout, ThemeDisplay themeDisplay, Locale locale) throws PortalException
PortalException
String getLayoutFriendlyURL(ThemeDisplay themeDisplay) throws PortalException
PortalException
@Deprecated LayoutFriendlyURLComposite getLayoutFriendlyURLComposite(long groupId, boolean privateLayout, String friendlyURL, Map<String,String[]> params, Map<String,Object> requestContext) throws PortalException
#getLayoutFriendlyURLSeparatorComposite(long, boolean,
String, Map, Map)
PortalException
LayoutFriendlyURLSeparatorComposite getLayoutFriendlyURLSeparatorComposite(long groupId, boolean privateLayout, String friendlyURL, Map<String,String[]> params, Map<String,Object> requestContext) throws PortalException
PortalException
String getLayoutFullURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
String getLayoutFullURL(Layout layout, ThemeDisplay themeDisplay, boolean doAsUser) throws PortalException
PortalException
String getLayoutFullURL(long groupId, String portletId) throws PortalException
PortalException
String getLayoutFullURL(long groupId, String portletId, boolean secure) throws PortalException
PortalException
String getLayoutFullURL(ThemeDisplay themeDisplay) throws PortalException
PortalException
String getLayoutRelativeURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
String getLayoutRelativeURL(Layout layout, ThemeDisplay themeDisplay, boolean doAsUser) throws PortalException
PortalException
String getLayoutSetDisplayURL(LayoutSet layoutSet, boolean secureConnection) throws PortalException
PortalException
String getLayoutSetFriendlyURL(LayoutSet layoutSet, ThemeDisplay themeDisplay) throws PortalException
PortalException
String getLayoutTarget(Layout layout)
String getLayoutURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
String getLayoutURL(Layout layout, ThemeDisplay themeDisplay, boolean doAsUser) throws PortalException
PortalException
String getLayoutURL(Layout layout, ThemeDisplay themeDisplay, Locale locale) throws PortalException
PortalException
String getLayoutURL(ThemeDisplay themeDisplay) throws PortalException
PortalException
LiferayPortletRequest getLiferayPortletRequest(PortletRequest portletRequest)
LiferayPortletResponse getLiferayPortletResponse(PortletResponse portletResponse)
Locale getLocale(javax.servlet.http.HttpServletRequest request)
Locale getLocale(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean initialize)
Locale getLocale(PortletRequest portletRequest)
String getLocalizedFriendlyURL(javax.servlet.http.HttpServletRequest request, Layout layout, Locale locale, Locale originalLocale) throws Exception
Exception
String getMailId(String mx, String popPortletPrefix, Object... ids)
String getNetvibesURL(Portlet portlet, ThemeDisplay themeDisplay) throws PortalException
PortalException
String getNewPortletTitle(String portletTitle, String oldScopeName, String newScopeName)
javax.servlet.http.HttpServletRequest getOriginalServletRequest(javax.servlet.http.HttpServletRequest request)
String getPathContext()
String getPathContext(javax.servlet.http.HttpServletRequest request)
String getPathContext(PortletRequest portletRequest)
String getPathContext(String contextPath)
String getPathFriendlyURLPrivateGroup()
String getPathFriendlyURLPrivateUser()
String getPathFriendlyURLPublic()
String getPathImage()
String getPathMain()
String getPathModule()
String getPathProxy()
long getPlidFromFriendlyURL(long companyId, String friendlyURL)
long getPlidFromPortletId(long groupId, boolean privateLayout, String portletId) throws PortalException
PortalException
long getPlidFromPortletId(long groupId, String portletId) throws PortalException
PortalException
PortalInetSocketAddressEventListener[] getPortalInetSocketAddressEventListeners()
String getPortalLibDir()
InetAddress getPortalLocalInetAddress(boolean secure)
int getPortalLocalPort(boolean secure)
@Deprecated int getPortalPort(boolean secure)
getPortalServerPort(boolean)
Properties getPortalProperties()
InetAddress getPortalServerInetAddress(boolean secure)
int getPortalServerPort(boolean secure)
String getPortalURL(javax.servlet.http.HttpServletRequest request)
String getPortalURL(javax.servlet.http.HttpServletRequest request, boolean secure)
String getPortalURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException
PortalException
String getPortalURL(LayoutSet layoutSet, ThemeDisplay themeDisplay)
String getPortalURL(PortletRequest portletRequest)
String getPortalURL(PortletRequest portletRequest, boolean secure)
String getPortalURL(String serverName, int serverPort, boolean secure)
String getPortalURL(ThemeDisplay themeDisplay) throws PortalException
PortalException
String getPortalWebDir()
@Deprecated List<BreadcrumbEntry> getPortletBreadcrumbs(javax.servlet.http.HttpServletRequest request)
BreadcrumbUtil.getPortletBreadcrumbEntries(
HttpServletRequest)
PortletConfig getPortletConfig(long companyId, String portletId, javax.servlet.ServletContext servletContext) throws PortletException
PortletException
String getPortletDescription(Portlet portlet, javax.servlet.ServletContext servletContext, Locale locale)
String getPortletDescription(String portletId, Locale locale)
String getPortletDescription(String portletId, String languageId)
String getPortletDescription(String portletId, User user)
String getPortletId(javax.servlet.http.HttpServletRequest request)
String getPortletId(PortletRequest portletRequest)
String getPortletLongTitle(Portlet portlet, Locale locale)
String getPortletLongTitle(Portlet portlet, javax.servlet.ServletContext servletContext, Locale locale)
String getPortletLongTitle(Portlet portlet, String languageId)
String getPortletLongTitle(String portletId, Locale locale)
String getPortletLongTitle(String portletId, String languageId)
String getPortletLongTitle(String portletId, User user)
String getPortletNamespace(String portletId)
String getPortletTitle(Portlet portlet, Locale locale)
String getPortletTitle(Portlet portlet, javax.servlet.ServletContext servletContext, Locale locale)
String getPortletTitle(Portlet portlet, String languageId)
String getPortletTitle(PortletRequest portletRequest)
String getPortletTitle(PortletResponse portletResponse)
String getPortletTitle(String portletId, Locale locale)
String getPortletTitle(String portletId, ResourceBundle resourceBundle)
String getPortletTitle(String portletId, String languageId)
String getPortletTitle(String portletId, User user)
String getPortletXmlFileName()
PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest request)
PreferencesValidator getPreferencesValidator(Portlet portlet)
String getRelativeHomeURL(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
ResourceBundle getResourceBundle(Locale locale)
long getScopeGroupId(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
long getScopeGroupId(javax.servlet.http.HttpServletRequest request, String portletId) throws PortalException
PortalException
long getScopeGroupId(javax.servlet.http.HttpServletRequest request, String portletId, boolean checkStagingGroup) throws PortalException
PortalException
long getScopeGroupId(Layout layout)
long getScopeGroupId(Layout layout, String portletId)
long getScopeGroupId(long plid)
long getScopeGroupId(PortletRequest portletRequest) throws PortalException
PortalException
User getSelectedUser(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
User getSelectedUser(javax.servlet.http.HttpServletRequest request, boolean checkPermission) throws PortalException
PortalException
User getSelectedUser(PortletRequest portletRequest) throws PortalException
PortalException
User getSelectedUser(PortletRequest portletRequest, boolean checkPermission) throws PortalException
PortalException
String getServletContextName()
long[] getSharedContentSiteGroupIds(long companyId, long groupId, long userId) throws PortalException
PortalException
@Deprecated PortletURL getSiteAdministrationURL(javax.servlet.http.HttpServletRequest request, ThemeDisplay themeDisplay, String portletId)
#getControlPanelPortletURL(PortletRequest, Group, String,
long, String)
@Deprecated PortletURL getSiteAdministrationURL(PortletResponse portletResponse, ThemeDisplay themeDisplay, String portletName)
#getControlPanelPortletURL(PortletRequest, Group, String,
long, String)
@Deprecated String getSiteAdminURL(Company company, Group group, String ppid, Map<String,String[]> params) throws PortalException
getSiteAdminURL(ThemeDisplay, String, Map)
PortalException
@Deprecated String getSiteAdminURL(Group group, String ppid, Map<String,String[]> params) throws PortalException
getSiteAdminURL(ThemeDisplay, String, Map)
PortalException
String getSiteAdminURL(ThemeDisplay themeDisplay, String ppid, Map<String,String[]> params) throws PortalException
PortalException
@Deprecated long[] getSiteAndCompanyGroupIds(long groupId) throws PortalException
getCurrentAndAncestorSiteGroupIds(long)
PortalException
@Deprecated long[] getSiteAndCompanyGroupIds(ThemeDisplay themeDisplay) throws PortalException
getCurrentAndAncestorSiteGroupIds(long)
PortalException
Locale getSiteDefaultLocale(Group group) throws PortalException
PortalException
Locale getSiteDefaultLocale(long groupId) throws PortalException
PortalException
long getSiteGroupId(long groupId)
String getSiteLoginURL(ThemeDisplay themeDisplay) throws PortalException
themeDisplay
- the theme display for the current pagenull
if one is not availablePortalException
- if a portal exception occurredString getStaticResourceURL(javax.servlet.http.HttpServletRequest request, String uri)
String getStaticResourceURL(javax.servlet.http.HttpServletRequest request, String uri, long timestamp)
String getStaticResourceURL(javax.servlet.http.HttpServletRequest request, String uri, String queryString)
String getStaticResourceURL(javax.servlet.http.HttpServletRequest request, String uri, String queryString, long timestamp)
String getStrutsAction(javax.servlet.http.HttpServletRequest request)
String[] getSystemGroups()
String[] getSystemOrganizationRoles()
String[] getSystemRoles()
String[] getSystemSiteRoles()
String getUniqueElementId(javax.servlet.http.HttpServletRequest request, String namespace, String id)
String getUniqueElementId(PortletRequest request, String namespace, String id)
UploadPortletRequest getUploadPortletRequest(PortletRequest portletRequest)
UploadServletRequest getUploadServletRequest(javax.servlet.http.HttpServletRequest request)
Date getUptime()
String getURLWithSessionId(String url, String sessionId)
User getUser(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
User getUser(PortletRequest portletRequest) throws PortalException
PortalException
String getUserEmailAddress(long userId)
long getUserId(javax.servlet.http.HttpServletRequest request)
long getUserId(PortletRequest portletRequest)
String getUserName(BaseModel<?> baseModel)
String getUserName(long userId, String defaultUserName)
String getUserName(long userId, String defaultUserName, javax.servlet.http.HttpServletRequest request)
String getUserName(long userId, String defaultUserName, String userAttribute)
String getUserName(long userId, String defaultUserName, String userAttribute, javax.servlet.http.HttpServletRequest request)
String getUserPassword(javax.servlet.http.HttpServletRequest request)
String getUserPassword(javax.servlet.http.HttpSession session)
String getUserPassword(PortletRequest portletRequest)
@Deprecated String getUserValue(long userId, String param, String defaultValue)
String getValidPortalDomain(long companyId, String domain)
long getValidUserId(long companyId, long userId) throws PortalException
PortalException
String getVirtualHostname(LayoutSet layoutSet)
@Deprecated String getVirtualLayoutActualURL(long groupId, boolean privateLayout, String mainPath, String friendlyURL, Map<String,String[]> params, Map<String,Object> requestContext) throws PortalException
PortalException
@Deprecated LayoutFriendlyURLComposite getVirtualLayoutFriendlyURLComposite(boolean privateLayout, String friendlyURL, Map<String,String[]> params, Map<String,Object> requestContext) throws PortalException
PortalException
String getWidgetURL(Portlet portlet, ThemeDisplay themeDisplay) throws PortalException
PortalException
void initCustomSQL()
User initUser(javax.servlet.http.HttpServletRequest request) throws Exception
Exception
@Deprecated void invokeTaglibDiscussion(PortletConfig portletConfig, ActionRequest actionRequest, ActionResponse actionResponse) throws Exception
Exception
@Deprecated void invokeTaglibDiscussionPagination(PortletConfig portletConfig, ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, PortletException
IOException
PortletException
boolean isCDNDynamicResourcesEnabled(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
boolean isCDNDynamicResourcesEnabled(long companyId)
boolean isCompanyAdmin(User user) throws Exception
Exception
boolean isCompanyControlPanelPortlet(String portletId, String category, ThemeDisplay themeDisplay) throws PortalException
PortalException
boolean isCompanyControlPanelPortlet(String portletId, ThemeDisplay themeDisplay) throws PortalException
PortalException
boolean isControlPanelPortlet(String portletId, String category, ThemeDisplay themeDisplay)
boolean isControlPanelPortlet(String portletId, ThemeDisplay themeDisplay)
boolean isCustomPortletMode(PortletMode portletMode)
boolean isForwardedSecure(javax.servlet.http.HttpServletRequest request)
boolean isGroupAdmin(User user, long groupId) throws Exception
Exception
boolean isGroupFriendlyURL(String fullURL, String groupFriendlyURL, String layoutFriendlyURL)
boolean isGroupOwner(User user, long groupId) throws Exception
Exception
boolean isLayoutDescendant(Layout layout, long layoutId) throws PortalException
PortalException
boolean isLayoutSitemapable(Layout layout)
boolean isLoginRedirectRequired(javax.servlet.http.HttpServletRequest request)
boolean isMethodGet(PortletRequest portletRequest)
boolean isMethodPost(PortletRequest portletRequest)
boolean isMultipartRequest(javax.servlet.http.HttpServletRequest request)
boolean isOmniadmin(long userId)
boolean isOmniadmin(User user)
boolean isReservedParameter(String name)
boolean isRightToLeft(javax.servlet.http.HttpServletRequest request)
boolean isRSSFeedsEnabled()
boolean isSecure(javax.servlet.http.HttpServletRequest request)
boolean isSkipPortletContentProcessing(Group group, javax.servlet.http.HttpServletRequest httpServletRequest, LayoutTypePortlet layoutTypePortlet, PortletDisplay portletDisplay, String portletName) throws Exception
Exception
boolean isSkipPortletContentRendering(Group group, LayoutTypePortlet layoutTypePortlet, PortletDisplay portletDisplay, String portletName)
boolean isSystemGroup(String groupName)
boolean isSystemRole(String roleName)
boolean isUpdateAvailable()
boolean isValidResourceId(String resourceId)
boolean removePortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener)
@Deprecated void removePortalPortEventListener(PortalPortEventListener portalPortEventListener)
removePortalInetSocketAddressEventListener(
PortalInetSocketAddressEventListener)
void resetCDNHosts()
String resetPortletParameters(String url, String portletId)
void sendError(Exception e, ActionRequest actionRequest, ActionResponse actionResponse) throws IOException
IOException
void sendError(Exception e, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
void sendError(int status, Exception e, ActionRequest actionRequest, ActionResponse actionResponse) throws IOException
IOException
void sendError(int status, Exception e, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
void sendRSSFeedsDisabledError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
void sendRSSFeedsDisabledError(PortletRequest portletRequest, PortletResponse portletResponse) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
void setPageDescription(String description, javax.servlet.http.HttpServletRequest request)
void setPageKeywords(String keywords, javax.servlet.http.HttpServletRequest request)
void setPageSubtitle(String subtitle, javax.servlet.http.HttpServletRequest request)
void setPageTitle(String title, javax.servlet.http.HttpServletRequest request)
void setPortalInetSocketAddresses(javax.servlet.http.HttpServletRequest request)
@Deprecated void setPortalPort(javax.servlet.http.HttpServletRequest request)
setPortalInetSocketAddresses(HttpServletRequest)
void storePreferences(PortletPreferences portletPreferences) throws IOException, ValidatorException
IOException
ValidatorException
String[] stripURLAnchor(String url, String separator)
String transformCustomSQL(String sql)
String transformSQL(String sql)
void updateImageId(BaseModel<?> baseModel, boolean image, byte[] bytes, String fieldName, long maxSize, int maxHeight, int maxWidth) throws PortalException
PortalException
PortletMode updatePortletMode(String portletId, User user, Layout layout, PortletMode portletMode, javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
String updateRedirect(String redirect, String oldPath, String newPath)
WindowState updateWindowState(String portletId, User user, Layout layout, WindowState windowState, javax.servlet.http.HttpServletRequest request)