|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.util.PortalImpl
public class PortalImpl
| Field Summary |
|---|
| Fields inherited from interface com.liferay.portal.util.Portal |
|---|
FRIENDLY_URL_SEPARATOR, JSESSIONID, PATH_IMAGE, PATH_MAIN, PATH_MODULE, PATH_PORTAL_LAYOUT, PORTAL_REALM, PORTLET_XML_FILE_NAME_CUSTOM, PORTLET_XML_FILE_NAME_STANDARD, TEMP_OBFUSCATION_VALUE |
| Constructor Summary | |
|---|---|
PortalImpl()
|
|
| Method Summary | |
|---|---|
protected void |
addDefaultResource(long companyId,
Layout layout,
Portlet portlet,
boolean portletActions)
|
protected void |
addDefaultResource(long companyId,
long groupId,
Layout layout,
Portlet portlet,
boolean portletActions)
|
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 7.0.0, 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 |
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. |
void |
addUserLocaleOptionsMessage(javax.servlet.http.HttpServletRequest request)
|
protected String |
buildI18NPath(Locale locale)
|
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. |
protected Set<Group> |
doGetAncestorSiteGroups(long groupId,
boolean checkContentSharingWithChildrenEnabled)
|
protected Group |
doGetCurrentSiteGroup(long groupId)
|
protected long |
doGetPlidFromPortletId(long groupId,
boolean privateLayout,
String portletId)
|
String |
escapeRedirect(String url)
Escapes the URL for use in a redirect and checks that security settings allow the URL is allowed for redirects. |
protected List<Portlet> |
filterControlPanelPortlets(Set<Portlet> portlets,
ThemeDisplay themeDisplay)
|
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. |
long[] |
getAncestorSiteGroupIds(long groupId)
|
Set<String> |
getAuthTokenIgnoreActions()
Deprecated. As of 6.2.0, replaced by AuthTokenWhitelistUtil.getPortletCSRFWhitelistActions() |
Set<String> |
getAuthTokenIgnorePortlets()
Deprecated. As of 6.2.0, replaced by AuthTokenWhitelistUtil.getPortletCSRFWhitelist() |
protected Locale |
getAvailableLocale(long groupId,
Locale locale)
|
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 7.0.0, replaced by HttpAuthManagerUtil.getBasicUserId(HttpServletRequest) |
long |
getBasicAuthUserId(javax.servlet.http.HttpServletRequest request,
long companyId)
Deprecated. As of 7.0.0, replaced by HttpAuthManagerUtil.getBasicUserId(HttpServletRequest) |
protected Layout |
getBrowsableLayout(Layout layout)
|
List<Group> |
getBrowsableScopeGroups(long userId,
long companyId,
long groupId,
String portletId)
|
protected String |
getCanonicalDomain(String virtualHostname,
String portalDomain)
|
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 |
getCDNHost()
Deprecated. As of 6.1.0, replaced by getCDNHost(boolean) |
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 request)
|
long |
getCompanyId(PortletRequest portletRequest)
|
long[] |
getCompanyIds()
|
Set<String> |
getComputerAddresses()
|
String |
getComputerName()
|
protected String |
getContextPath(String contextPath)
|
protected Group |
getControlPanelDisplayGroup(long companyId,
long scopeGroupId,
long doAsGroupId,
String portletId)
|
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 7.0.0, replaced by HttpAuthManagerUtil.getDigestUserId(HttpServletRequest) |
protected long |
getDoAsUserId(javax.servlet.http.HttpServletRequest request,
String doAsUserIdString,
boolean alwaysAllowDoAsUser)
|
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 |
getFullName(String firstName,
String middleName,
String lastName)
|
String |
getGlobalLibDir()
|
String |
getGoogleGadgetURL(Portlet portlet,
ThemeDisplay themeDisplay)
|
String |
getGroupFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay)
|
protected String |
getGroupFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay,
boolean canonicalURL)
|
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)
|
protected String[] |
getGroupPermissions(String[] groupPermissions,
String className,
String inputPermissionsShowOptions)
|
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)
|
protected String[] |
getGuestPermissions(String[] guestPermissions,
String className,
String inputPermissionsShowOptions)
|
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 7.0.0, with no direct replacement |
Layout |
getJournalArticleLayout(long groupId,
boolean privateLayout,
String friendlyURL)
Deprecated. As of 7.0.0, 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)
|
LayoutFriendlyURLComposite |
getLayoutFriendlyURLComposite(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)
|
long |
getParentGroupId(long groupId)
Deprecated. As of 6.2.0 renamed to #getSiteGroupId(groupId) |
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()
Deprecated. As of 6.1.0, replaced by getPortalPort(boolean) |
int |
getPortalPort(boolean secure)
Deprecated. As of 7.0.0, 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(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()
|
Set<String> |
getPortletAddDefaultResourceCheckWhitelist()
Deprecated. As of 6.2.0, replaced by AuthTokenWhitelistUtil.getPortletInvocationWhitelist() |
Set<String> |
getPortletAddDefaultResourceCheckWhitelistActions()
Deprecated. As of 6.2.0, replaced by AuthTokenWhitelistUtil.getPortletInvocationWhitelistActions() |
List<BreadcrumbEntry> |
getPortletBreadcrumbList(javax.servlet.http.HttpServletRequest request)
Deprecated. As of 6.1.0, replaced by getPortletBreadcrumbs(HttpServletRequest) |
List<BreadcrumbEntry> |
getPortletBreadcrumbs(javax.servlet.http.HttpServletRequest request)
Deprecated. As of 7.0.0, 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)
|
LayoutQueryStringComposite |
getPortletFriendlyURLMapperLayoutQueryStringComposite(long groupId,
boolean privateLayout,
String url,
Map<String,String[]> params,
Map<String,Object> requestContext)
|
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)
|
protected String |
getPortletParam(javax.servlet.http.HttpServletRequest request,
String name)
|
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()
|
protected String |
getServletURL(Portlet portlet,
String servletPath,
ThemeDisplay themeDisplay)
|
long[] |
getSharedContentSiteGroupIds(long companyId,
long groupId,
long userId)
|
PortletURL |
getSiteAdministrationURL(javax.servlet.http.HttpServletRequest request,
ThemeDisplay themeDisplay,
String portletId)
Deprecated. As of 7.0.0, replaced by #getControlPanelPortletURL(PortletRequest, Group, String,
String) |
PortletURL |
getSiteAdministrationURL(PortletResponse portletResponse,
ThemeDisplay themeDisplay,
String portletName)
Deprecated. As of 7.0.0, replaced by #getControlPanelPortletURL(PortletRequest, Group, String,
String) |
long[] |
getSiteAndCompanyGroupIds(long groupId)
Deprecated. As of 7.0.0, replaced by getCurrentAndAncestorSiteGroupIds(long) |
long[] |
getSiteAndCompanyGroupIds(ThemeDisplay themeDisplay)
Deprecated. As of 7.0.0, replaced by getCurrentAndAncestorSiteGroupIds(long) |
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 elementId)
|
String |
getUniqueElementId(PortletRequest request,
String namespace,
String elementId)
|
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 7.0.0, 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 7.0.0, with no direct replacement |
LayoutFriendlyURLComposite |
getVirtualLayoutFriendlyURLComposite(boolean privateLayout,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
Deprecated. As of 7.0.0, 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 7.0.0, with no direct replacement |
void |
invokeTaglibDiscussionPagination(PortletConfig portletConfig,
ResourceRequest resourceRequest,
ResourceResponse resourceResponse)
Deprecated. As of 7.0.0, with no direct replacement |
boolean |
isAllowAddPortletDefaultResource(javax.servlet.http.HttpServletRequest request,
Portlet portlet)
Deprecated. As of 6.2.0, with no direct replacement |
protected boolean |
isAlwaysAllowDoAsUser(javax.servlet.http.HttpServletRequest request)
|
protected boolean |
isAlwaysAllowDoAsUser(String actionName,
String mvcRenderCommandName,
String path,
String strutsAction)
|
boolean |
isCDNDynamicResourcesEnabled(javax.servlet.http.HttpServletRequest request)
|
boolean |
isCDNDynamicResourcesEnabled(long companyId)
|
boolean |
isCommunityAdmin(User user,
long groupId)
Deprecated. As of 6.1.0, renamed to isGroupAdmin(User, long) |
boolean |
isCommunityOwner(User user,
long groupId)
Deprecated. As of 6.1.0, renamed to isGroupOwner(User, long) |
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 |
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)
|
protected boolean |
isPanelSelectedPortlet(ThemeDisplay themeDisplay,
String portletId)
Deprecated. As of 6.2.0, with no direct replacement |
boolean |
isReservedParameter(String name)
|
boolean |
isRightToLeft(javax.servlet.http.HttpServletRequest request)
|
boolean |
isRSSFeedsEnabled()
|
boolean |
isSecure(javax.servlet.http.HttpServletRequest request)
|
boolean |
isSystemGroup(String groupName)
|
boolean |
isSystemRole(String roleName)
|
boolean |
isUpdateAvailable()
|
protected boolean |
isValidPortalDomain(long companyId,
String domain)
|
protected boolean |
isValidPortalDomain(String domain)
|
boolean |
isValidResourceId(String resourceId)
|
protected boolean |
isValidVirtualHostname(String virtualHostname)
|
protected void |
notifyPortalInetSocketAddressEventListeners(InetSocketAddress inetSocketAddress,
boolean local,
boolean secure)
|
protected void |
notifyPortalPortEventListeners(int portalPort)
Deprecated. As of 7.0.0, replaced by notifyPortalInetSocketAddressEventListeners(
InetSocketAddress, boolean, boolean) |
boolean |
removePortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener)
|
void |
removePortalPortEventListener(PortalPortEventListener portalPortEventListener)
Deprecated. As of 7.0.0, replaced by removePortalInetSocketAddressEventListener(
PortalInetSocketAddressEventListener) |
protected String |
removeRedirectParameter(String url)
|
void |
resetCDNHosts()
|
Set<String> |
resetPortletAddDefaultResourceCheckWhitelist()
Deprecated. As of 6.2.0, replaced by AuthTokenWhitelistUtil.resetPortletInvocationWhitelist() |
Set<String> |
resetPortletAddDefaultResourceCheckWhitelistActions()
Deprecated. As of 6.2.0, replaced by AuthTokenWhitelistUtil.resetPortletInvocationWhitelistActions() |
String |
resetPortletParameters(String url,
String portletId)
|
protected void |
resetThemeDisplayI18n(ThemeDisplay themeDisplay,
String languageId,
String path,
Locale locale)
|
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)
|
protected void |
setLocale(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Locale locale)
|
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 7.0.0, replaced by setPortalInetSocketAddresses(HttpServletRequest) |
protected void |
setThemeDisplayI18n(ThemeDisplay themeDisplay,
Locale locale)
|
void |
storePreferences(PortletPreferences portletPreferences)
|
String[] |
stripURLAnchor(String url,
String separator)
|
String |
transformCustomSQL(String sql)
|
String |
transformSQL(String sql)
|
void |
updateImageId(BaseModel<?> baseModel,
boolean hasImage,
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortalImpl()
| Method Detail |
|---|
public void addPageDescription(String description,
javax.servlet.http.HttpServletRequest request)
Portal
addPageDescription in interface Portaldescription - the description to append to the current meta
descriptionrequest - the servlet request for the page
public void addPageKeywords(String keywords,
javax.servlet.http.HttpServletRequest request)
Portal
addPageKeywords in interface Portalkeywords - the keywords to add to the current meta keywords
(comma-separated)request - the servlet request for the page
public void addPageSubtitle(String subtitle,
javax.servlet.http.HttpServletRequest request)
Portal
addPageSubtitle in interface Portalsubtitle - the subtitle to append to the current subtitlerequest - the servlet request for the page
public void addPageTitle(String title,
javax.servlet.http.HttpServletRequest request)
Portal
addPageTitle in interface Portaltitle - the title to append to the current titlerequest - the servlet request for the pagepublic boolean addPortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener)
addPortalInetSocketAddressEventListener in interface Portal@Deprecated public void addPortalPortEventListener(PortalPortEventListener portalPortEventListener)
addPortalInetSocketAddressEventListener(
PortalInetSocketAddressEventListener)
addPortalPortEventListener in interface PortalportalPortEventListener - the portal port event listener to add
public void addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request,
String title,
String url)
Portal
addPortletBreadcrumbEntry in interface Portalrequest - the servlet request for the pagetitle - the title of the new breakcrumb entryurl - the URL of the new breadcrumb entry
public void addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request,
String title,
String url,
Map<String,Object> data)
Portal
addPortletBreadcrumbEntry in interface Portalrequest - 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 entry
public void addPortletDefaultResource(javax.servlet.http.HttpServletRequest request,
Portlet portlet)
throws PortalException
Portal
addPortletDefaultResource in interface Portalrequest - the servlet request for the pageportlet - the portlet
PortalException
public void addPortletDefaultResource(long companyId,
Layout layout,
Portlet portlet)
throws PortalException
addPortletDefaultResource in interface PortalPortalException
public String addPreservedParameters(ThemeDisplay themeDisplay,
Layout layout,
String url,
boolean doAsUser)
PortalPreserved parameters are parameters that should be sent with every request as the user navigates the portal.
addPreservedParameters in interface PortalthemeDisplay - 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.
public String addPreservedParameters(ThemeDisplay themeDisplay,
String url)
Portal
addPreservedParameters in interface PortalthemeDisplay - the current theme displayurl - the URL
public void addUserLocaleOptionsMessage(javax.servlet.http.HttpServletRequest request)
addUserLocaleOptionsMessage in interface Portalpublic void clearRequestParameters(RenderRequest renderRequest)
Portal
clearRequestParameters in interface PortalrenderRequest - the render request
public void copyRequestParameters(ActionRequest actionRequest,
ActionResponse actionResponse)
Portal
copyRequestParameters in interface PortalactionRequest - the request from which to get the request parametersactionResponse - the response to receive the render parameterspublic String escapeRedirect(String url)
Portal
escapeRedirect in interface Portalurl - the URL to escape
null if the URL is not an
allowed for redirects
public String generateRandomKey(javax.servlet.http.HttpServletRequest request,
String input)
Portal
generateRandomKey in interface Portalrequest - the servlet request for the pageinput - the input string
public String getAbsoluteURL(javax.servlet.http.HttpServletRequest request,
String url)
getAbsoluteURL in interface Portal
public LayoutQueryStringComposite getActualLayoutQueryStringComposite(long groupId,
boolean privateLayout,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
throws PortalException
getActualLayoutQueryStringComposite in interface PortalPortalException
public String getActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
throws PortalException
getActualURL in interface PortalPortalException
public String getAlternateURL(String canonicalURL,
ThemeDisplay themeDisplay,
Locale locale,
Layout layout)
throws PortalException
PortalThe 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.
getAlternateURL in interface PortalcanonicalURL - the canonical URL being requested. For more
information, see Portal.getCanonicalURL(java.lang.String, com.liferay.portal.theme.ThemeDisplay, com.liferay.portal.model.Layout).themeDisplay - the theme displaylocale - the locale of the alternate (translated) pagelayout - the page being requested
PortalException
public long[] getAncestorSiteGroupIds(long groupId)
throws PortalException
getAncestorSiteGroupIds in interface PortalPortalException@Deprecated public Set<String> getAuthTokenIgnoreActions()
AuthTokenWhitelistUtil.getPortletCSRFWhitelistActions()
Portal
getAuthTokenIgnoreActions in interface Portal@Deprecated public Set<String> getAuthTokenIgnorePortlets()
AuthTokenWhitelistUtil.getPortletCSRFWhitelist()
Portal
getAuthTokenIgnorePortlets in interface Portal
public BaseModel<?> getBaseModel(ResourcePermission resourcePermission)
throws PortalException
Portal
getBaseModel in interface PortalresourcePermission - the resource permission
null if the resource
permission does not have a base model instance (such as if its a
portlet)
PortalException
public BaseModel<?> getBaseModel(String modelName,
String primKey)
throws PortalException
Portal
getBaseModel in interface PortalmodelName - the fully qualified class name of the modelprimKey - the primary key of the model instance to get
null if the model does
not have a base model instance (such as if its a portlet)
PortalException
@Deprecated
public long getBasicAuthUserId(javax.servlet.http.HttpServletRequest request)
throws PortalException
HttpAuthManagerUtil.getBasicUserId(HttpServletRequest)
getBasicAuthUserId in interface PortalPortalException
@Deprecated
public long getBasicAuthUserId(javax.servlet.http.HttpServletRequest request,
long companyId)
throws PortalException
HttpAuthManagerUtil.getBasicUserId(HttpServletRequest)
getBasicAuthUserId in interface PortalPortalException
public List<Group> getBrowsableScopeGroups(long userId,
long companyId,
long groupId,
String portletId)
throws PortalException
getBrowsableScopeGroups in interface PortalPortalException
public String getCanonicalURL(String completeURL,
ThemeDisplay themeDisplay,
Layout layout)
throws PortalException
Portal
getCanonicalURL in interface PortalcompleteURL - the complete URL of the pagethemeDisplay - the current theme displaylayout - the layout. If it is null, then it is
generated for the current layout
PortalException
public String getCanonicalURL(String completeURL,
ThemeDisplay themeDisplay,
Layout layout,
boolean forceLayoutFriendlyURL)
throws PortalException
Portal
getCanonicalURL in interface PortalcompleteURL - 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 needed
PortalException@Deprecated public String getCDNHost()
getCDNHost(boolean)
getCDNHost in interface Portalpublic String getCDNHost(boolean secure)
Portal
getCDNHost in interface Portalsecure - whether to get the secure or insecure CDN host address
public String getCDNHost(javax.servlet.http.HttpServletRequest request)
throws PortalException
getCDNHost in interface PortalPortalExceptionpublic String getCDNHostHttp(long companyId)
Portal
getCDNHostHttp in interface PortalcompanyId - the company ID of a site
public String getCDNHostHttps(long companyId)
Portal
getCDNHostHttps in interface PortalcompanyId - the company ID of a site
public String getClassName(long classNameId)
Portal
getClassName in interface PortalclassNameId - the ID of the class
public long getClassNameId(Class<?> clazz)
Portal
getClassNameId in interface Portalclazz - the class object
public long getClassNameId(String value)
Portal
getClassNameId in interface Portalvalue - the fully qualified name of the class
public Company getCompany(javax.servlet.http.HttpServletRequest request)
throws PortalException
getCompany in interface PortalPortalException
public Company getCompany(PortletRequest portletRequest)
throws PortalException
getCompany in interface PortalPortalExceptionpublic long getCompanyId(javax.servlet.http.HttpServletRequest request)
getCompanyId in interface Portalpublic long getCompanyId(PortletRequest portletRequest)
getCompanyId in interface Portalpublic long[] getCompanyIds()
getCompanyIds in interface Portalpublic Set<String> getComputerAddresses()
getComputerAddresses in interface Portalpublic String getComputerName()
getComputerName in interface Portal
public String getControlPanelFullURL(long scopeGroupId,
String ppid,
Map<String,String[]> params)
throws PortalException
getControlPanelFullURL in interface PortalPortalException
public long getControlPanelPlid(long companyId)
throws PortalException
getControlPanelPlid in interface PortalPortalException
public long getControlPanelPlid(PortletRequest portletRequest)
throws PortalException
getControlPanelPlid in interface PortalPortalException
public PortletURL getControlPanelPortletURL(javax.servlet.http.HttpServletRequest request,
Group group,
String portletId,
long refererGroupId,
long refererPlid,
String lifecycle)
getControlPanelPortletURL in interface Portal
public PortletURL getControlPanelPortletURL(javax.servlet.http.HttpServletRequest request,
String portletId,
String lifecycle)
getControlPanelPortletURL in interface Portal
public PortletURL getControlPanelPortletURL(PortletRequest portletRequest,
Group group,
String portletId,
long refererGroupId,
long refererPlid,
String lifecycle)
getControlPanelPortletURL in interface Portal
public PortletURL getControlPanelPortletURL(PortletRequest portletRequest,
String portletId,
String lifecycle)
getControlPanelPortletURL in interface Portal
public String getCreateAccountURL(javax.servlet.http.HttpServletRequest request,
ThemeDisplay themeDisplay)
throws Exception
getCreateAccountURL in interface PortalException
public long[] getCurrentAndAncestorSiteGroupIds(long groupId)
throws PortalException
getCurrentAndAncestorSiteGroupIds in interface PortalPortalException
public long[] getCurrentAndAncestorSiteGroupIds(long groupId,
boolean checkContentSharingWithChildrenEnabled)
throws PortalException
getCurrentAndAncestorSiteGroupIds in interface PortalPortalException
public long[] getCurrentAndAncestorSiteGroupIds(long[] groupIds)
throws PortalException
getCurrentAndAncestorSiteGroupIds in interface PortalPortalException
public long[] getCurrentAndAncestorSiteGroupIds(long[] groupIds,
boolean checkContentSharingWithChildrenEnabled)
throws PortalException
getCurrentAndAncestorSiteGroupIds in interface PortalPortalException
public List<Group> getCurrentAndAncestorSiteGroups(long groupId)
throws PortalException
getCurrentAndAncestorSiteGroups in interface PortalPortalException
public List<Group> getCurrentAndAncestorSiteGroups(long groupId,
boolean checkContentSharingWithChildrenEnabled)
throws PortalException
getCurrentAndAncestorSiteGroups in interface PortalPortalException
public List<Group> getCurrentAndAncestorSiteGroups(long[] groupIds)
throws PortalException
getCurrentAndAncestorSiteGroups in interface PortalPortalException
public List<Group> getCurrentAndAncestorSiteGroups(long[] groupIds,
boolean checkContentSharingWithChildrenEnabled)
throws PortalException
getCurrentAndAncestorSiteGroups in interface PortalPortalExceptionpublic String getCurrentCompleteURL(javax.servlet.http.HttpServletRequest request)
getCurrentCompleteURL in interface Portalpublic String getCurrentURL(javax.servlet.http.HttpServletRequest request)
getCurrentURL in interface Portalpublic String getCurrentURL(PortletRequest portletRequest)
getCurrentURL in interface Portalpublic String getCustomSQLFunctionIsNotNull()
getCustomSQLFunctionIsNotNull in interface Portalpublic String getCustomSQLFunctionIsNull()
getCustomSQLFunctionIsNull in interface Portal
public Date getDate(int month,
int day,
int year)
Portalnull if the date is invalid.
getDate in interface Portalmonth - the month (0-based, meaning 0 for January)day - the day of the monthyear - the year
null if the date is invalid
public Date getDate(int month,
int day,
int year,
Class<? extends PortalException> clazz)
throws PortalException
Portal
getDate in interface Portalmonth - 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 provided
PortalException
public Date getDate(int month,
int day,
int year,
int hour,
int min,
Class<? extends PortalException> clazz)
throws PortalException
Portal
getDate in interface Portalmonth - 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 provided
PortalException
public Date getDate(int month,
int day,
int year,
int hour,
int min,
TimeZone timeZone,
Class<? extends PortalException> clazz)
throws PortalException
Portal
getDate in interface Portalmonth - 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 provided
PortalException
public Date getDate(int month,
int day,
int year,
TimeZone timeZone,
Class<? extends PortalException> clazz)
throws PortalException
Portal
getDate in interface Portalmonth - 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 provided
PortalExceptionpublic long getDefaultCompanyId()
getDefaultCompanyId in interface Portal
@Deprecated
public long getDigestAuthUserId(javax.servlet.http.HttpServletRequest request)
throws PortalException
HttpAuthManagerUtil.getDigestUserId(HttpServletRequest)
getDigestAuthUserId in interface PortalPortalException
public String getEmailFromAddress(PortletPreferences preferences,
long companyId,
String defaultValue)
getEmailFromAddress in interface Portal
public String getEmailFromName(PortletPreferences preferences,
long companyId,
String defaultValue)
getEmailFromName in interface Portal
public Map<String,Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
javax.servlet.http.HttpServletRequest request)
throws PortalException
getExpandoBridgeAttributes in interface PortalPortalException
public Map<String,Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
PortletRequest portletRequest)
throws PortalException
getExpandoBridgeAttributes in interface PortalPortalException
public Map<String,Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
UploadPortletRequest uploadPortletRequest)
throws PortalException
getExpandoBridgeAttributes in interface PortalPortalException
public Serializable getExpandoValue(javax.servlet.http.HttpServletRequest request,
String name,
int type,
String displayType)
throws PortalException
getExpandoValue in interface PortalPortalException
public Serializable getExpandoValue(PortletRequest portletRequest,
String name,
int type,
String displayType)
throws PortalException
getExpandoValue in interface PortalPortalException
public Serializable getExpandoValue(UploadPortletRequest uploadPortletRequest,
String name,
int type,
String displayType)
throws PortalException
getExpandoValue in interface PortalPortalException
public String getFacebookURL(Portlet portlet,
String facebookCanvasPageURL,
ThemeDisplay themeDisplay)
throws PortalException
getFacebookURL in interface PortalPortalExceptionpublic String getFirstPageLayoutTypes(javax.servlet.http.HttpServletRequest request)
getFirstPageLayoutTypes in interface Portal
public String getFullName(String firstName,
String middleName,
String lastName)
getFullName in interface Portalpublic String getGlobalLibDir()
getGlobalLibDir in interface Portal
public String getGoogleGadgetURL(Portlet portlet,
ThemeDisplay themeDisplay)
throws PortalException
getGoogleGadgetURL in interface PortalPortalException
public String getGroupFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay)
throws PortalException
getGroupFriendlyURL in interface PortalPortalException
public String getGroupFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay,
Locale locale)
throws PortalException
getGroupFriendlyURL in interface PortalPortalExceptionpublic int[] getGroupFriendlyURLIndex(String requestURI)
getGroupFriendlyURLIndex in interface Portalpublic String[] getGroupPermissions(javax.servlet.http.HttpServletRequest request)
getGroupPermissions in interface Portal
public String[] getGroupPermissions(javax.servlet.http.HttpServletRequest request,
String className)
getGroupPermissions in interface Portalpublic String[] getGroupPermissions(PortletRequest portletRequest)
getGroupPermissions in interface Portal
public String[] getGroupPermissions(PortletRequest portletRequest,
String className)
getGroupPermissions in interface Portalpublic String[] getGuestPermissions(javax.servlet.http.HttpServletRequest request)
getGuestPermissions in interface Portal
public String[] getGuestPermissions(javax.servlet.http.HttpServletRequest request,
String className)
getGuestPermissions in interface Portalpublic String[] getGuestPermissions(PortletRequest portletRequest)
getGuestPermissions in interface Portal
public String[] getGuestPermissions(PortletRequest portletRequest,
String className)
getGuestPermissions in interface Portal
public String getHomeURL(javax.servlet.http.HttpServletRequest request)
throws PortalException
getHomeURL in interface PortalPortalExceptionpublic String getHost(javax.servlet.http.HttpServletRequest request)
getHost in interface Portalpublic String getHost(PortletRequest portletRequest)
getHost in interface Portalpublic javax.servlet.http.HttpServletRequest getHttpServletRequest(PortletRequest portletRequest)
getHttpServletRequest in interface Portalpublic javax.servlet.http.HttpServletResponse getHttpServletResponse(PortletResponse portletResponse)
getHttpServletResponse in interface Portal
public String getI18nPathLanguageId(Locale locale,
String defaultI18nPathLanguageId)
getI18nPathLanguageId in interface Portal
@Deprecated
public String getJournalArticleActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
throws PortalException
getJournalArticleActualURL in interface PortalPortalException
@Deprecated
public Layout getJournalArticleLayout(long groupId,
boolean privateLayout,
String friendlyURL)
throws PortalException
getJournalArticleLayout in interface PortalPortalExceptionpublic String getJsSafePortletId(String portletId)
getJsSafePortletId in interface Portalpublic String getLayoutActualURL(Layout layout)
getLayoutActualURL in interface Portal
public String getLayoutActualURL(Layout layout,
String mainPath)
getLayoutActualURL in interface Portal
public String getLayoutActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL)
throws PortalException
getLayoutActualURL in interface PortalPortalException
public String getLayoutActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
throws PortalException
getLayoutActualURL in interface PortalPortalException
public String getLayoutFriendlyURL(Layout layout,
ThemeDisplay themeDisplay)
throws PortalException
getLayoutFriendlyURL in interface PortalPortalException
public String getLayoutFriendlyURL(Layout layout,
ThemeDisplay themeDisplay,
Locale locale)
throws PortalException
getLayoutFriendlyURL in interface PortalPortalException
public LayoutFriendlyURLComposite getLayoutFriendlyURLComposite(long groupId,
boolean privateLayout,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
throws PortalException
getLayoutFriendlyURLComposite in interface PortalPortalException
public String getLayoutFullURL(Layout layout,
ThemeDisplay themeDisplay)
throws PortalException
getLayoutFullURL in interface PortalPortalException
public String getLayoutFullURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser)
throws PortalException
getLayoutFullURL in interface PortalPortalException
public String getLayoutFullURL(long groupId,
String portletId)
throws PortalException
getLayoutFullURL in interface PortalPortalException
public String getLayoutFullURL(long groupId,
String portletId,
boolean secure)
throws PortalException
getLayoutFullURL in interface PortalPortalException
public String getLayoutFullURL(ThemeDisplay themeDisplay)
throws PortalException
getLayoutFullURL in interface PortalPortalException
public String getLayoutRelativeURL(Layout layout,
ThemeDisplay themeDisplay)
throws PortalException
getLayoutRelativeURL in interface PortalPortalException
public String getLayoutRelativeURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser)
throws PortalException
getLayoutRelativeURL in interface PortalPortalException
public String getLayoutSetDisplayURL(LayoutSet layoutSet,
boolean secureConnection)
throws PortalException
getLayoutSetDisplayURL in interface PortalPortalException
public String getLayoutSetFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay)
throws PortalException
getLayoutSetFriendlyURL in interface PortalPortalExceptionpublic String getLayoutTarget(Layout layout)
getLayoutTarget in interface Portal
public String getLayoutURL(Layout layout,
ThemeDisplay themeDisplay)
throws PortalException
getLayoutURL in interface PortalPortalException
public String getLayoutURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser)
throws PortalException
getLayoutURL in interface PortalPortalException
public String getLayoutURL(Layout layout,
ThemeDisplay themeDisplay,
Locale locale)
throws PortalException
getLayoutURL in interface PortalPortalException
public String getLayoutURL(ThemeDisplay themeDisplay)
throws PortalException
getLayoutURL in interface PortalPortalExceptionpublic LiferayPortletRequest getLiferayPortletRequest(PortletRequest portletRequest)
getLiferayPortletRequest in interface Portalpublic LiferayPortletResponse getLiferayPortletResponse(PortletResponse portletResponse)
getLiferayPortletResponse in interface Portalpublic Locale getLocale(javax.servlet.http.HttpServletRequest request)
getLocale in interface Portal
public Locale getLocale(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean initialize)
getLocale in interface Portalpublic Locale getLocale(PortletRequest portletRequest)
getLocale in interface Portal
public String getLocalizedFriendlyURL(javax.servlet.http.HttpServletRequest request,
Layout layout,
Locale locale,
Locale originalLocale)
throws Exception
getLocalizedFriendlyURL in interface PortalException
public String getMailId(String mx,
String popPortletPrefix,
Object... ids)
getMailId in interface Portal
public String getNetvibesURL(Portlet portlet,
ThemeDisplay themeDisplay)
throws PortalException
getNetvibesURL in interface PortalPortalException
public String getNewPortletTitle(String portletTitle,
String oldScopeName,
String newScopeName)
getNewPortletTitle in interface Portalpublic javax.servlet.http.HttpServletRequest getOriginalServletRequest(javax.servlet.http.HttpServletRequest request)
getOriginalServletRequest in interface Portal@Deprecated public long getParentGroupId(long groupId)
getParentGroupId in interface Portalpublic String getPathContext()
getPathContext in interface Portalpublic String getPathContext(javax.servlet.http.HttpServletRequest request)
getPathContext in interface Portalpublic String getPathContext(PortletRequest portletRequest)
getPathContext in interface Portalpublic String getPathContext(String contextPath)
getPathContext in interface Portalpublic String getPathFriendlyURLPrivateGroup()
getPathFriendlyURLPrivateGroup in interface Portalpublic String getPathFriendlyURLPrivateUser()
getPathFriendlyURLPrivateUser in interface Portalpublic String getPathFriendlyURLPublic()
getPathFriendlyURLPublic in interface Portalpublic String getPathImage()
getPathImage in interface Portalpublic String getPathMain()
getPathMain in interface Portalpublic String getPathModule()
getPathModule in interface Portalpublic String getPathProxy()
getPathProxy in interface Portal
public long getPlidFromFriendlyURL(long companyId,
String friendlyURL)
getPlidFromFriendlyURL in interface Portal
public long getPlidFromPortletId(long groupId,
boolean privateLayout,
String portletId)
getPlidFromPortletId in interface Portal
public long getPlidFromPortletId(long groupId,
String portletId)
getPlidFromPortletId in interface Portalpublic PortalInetSocketAddressEventListener[] getPortalInetSocketAddressEventListeners()
getPortalInetSocketAddressEventListeners in interface Portalpublic String getPortalLibDir()
getPortalLibDir in interface Portalpublic InetAddress getPortalLocalInetAddress(boolean secure)
getPortalLocalInetAddress in interface Portalpublic int getPortalLocalPort(boolean secure)
getPortalLocalPort in interface Portal@Deprecated public int getPortalPort()
getPortalPort(boolean)
getPortalPort in interface Portal@Deprecated public int getPortalPort(boolean secure)
getPortalServerPort(boolean)
getPortalPort in interface Portalpublic Properties getPortalProperties()
getPortalProperties in interface Portalpublic InetAddress getPortalServerInetAddress(boolean secure)
getPortalServerInetAddress in interface Portalpublic int getPortalServerPort(boolean secure)
getPortalServerPort in interface Portalpublic String getPortalURL(javax.servlet.http.HttpServletRequest request)
getPortalURL in interface Portal
public String getPortalURL(javax.servlet.http.HttpServletRequest request,
boolean secure)
getPortalURL in interface Portal
public String getPortalURL(Layout layout,
ThemeDisplay themeDisplay)
throws PortalException
getPortalURL in interface PortalPortalExceptionpublic String getPortalURL(PortletRequest portletRequest)
getPortalURL in interface Portal
public String getPortalURL(PortletRequest portletRequest,
boolean secure)
getPortalURL in interface Portal
public String getPortalURL(String serverName,
int serverPort,
boolean secure)
getPortalURL in interface Portal
public String getPortalURL(ThemeDisplay themeDisplay)
throws PortalException
getPortalURL in interface PortalPortalExceptionpublic String getPortalWebDir()
getPortalWebDir in interface Portal@Deprecated public Set<String> getPortletAddDefaultResourceCheckWhitelist()
AuthTokenWhitelistUtil.getPortletInvocationWhitelist()
getPortletAddDefaultResourceCheckWhitelist in interface Portal@Deprecated public Set<String> getPortletAddDefaultResourceCheckWhitelistActions()
AuthTokenWhitelistUtil.getPortletInvocationWhitelistActions()
getPortletAddDefaultResourceCheckWhitelistActions in interface Portal@Deprecated public List<BreadcrumbEntry> getPortletBreadcrumbList(javax.servlet.http.HttpServletRequest request)
getPortletBreadcrumbs(HttpServletRequest)
getPortletBreadcrumbList in interface Portal@Deprecated public List<BreadcrumbEntry> getPortletBreadcrumbs(javax.servlet.http.HttpServletRequest request)
BreadcrumbUtil.getPortletBreadcrumbEntries(
HttpServletRequest)
getPortletBreadcrumbs in interface Portal
public PortletConfig getPortletConfig(long companyId,
String portletId,
javax.servlet.ServletContext servletContext)
throws PortletException
getPortletConfig in interface PortalPortletException
public String getPortletDescription(Portlet portlet,
javax.servlet.ServletContext servletContext,
Locale locale)
getPortletDescription in interface Portal
public String getPortletDescription(Portlet portlet,
User user)
getPortletDescription in interface Portal
public String getPortletDescription(String portletId,
Locale locale)
getPortletDescription in interface Portal
public String getPortletDescription(String portletId,
String languageId)
getPortletDescription in interface Portal
public String getPortletDescription(String portletId,
User user)
getPortletDescription in interface Portal
public LayoutQueryStringComposite getPortletFriendlyURLMapperLayoutQueryStringComposite(long groupId,
boolean privateLayout,
String url,
Map<String,String[]> params,
Map<String,Object> requestContext)
throws PortalException
PortalExceptionpublic String getPortletId(javax.servlet.http.HttpServletRequest request)
getPortletId in interface Portalpublic String getPortletId(PortletRequest portletRequest)
getPortletId in interface Portal
public String getPortletLongTitle(Portlet portlet,
Locale locale)
getPortletLongTitle in interface Portal
public String getPortletLongTitle(Portlet portlet,
javax.servlet.ServletContext servletContext,
Locale locale)
getPortletLongTitle in interface Portal
public String getPortletLongTitle(Portlet portlet,
String languageId)
getPortletLongTitle in interface Portal
public String getPortletLongTitle(Portlet portlet,
User user)
getPortletLongTitle in interface Portal
public String getPortletLongTitle(String portletId,
Locale locale)
getPortletLongTitle in interface Portal
public String getPortletLongTitle(String portletId,
String languageId)
getPortletLongTitle in interface Portal
public String getPortletLongTitle(String portletId,
User user)
getPortletLongTitle in interface Portalpublic String getPortletNamespace(String portletId)
getPortletNamespace in interface Portal
public String getPortletTitle(Portlet portlet,
Locale locale)
getPortletTitle in interface Portal
public String getPortletTitle(Portlet portlet,
javax.servlet.ServletContext servletContext,
Locale locale)
getPortletTitle in interface Portal
public String getPortletTitle(Portlet portlet,
String languageId)
getPortletTitle in interface Portal
public String getPortletTitle(Portlet portlet,
User user)
getPortletTitle in interface Portalpublic String getPortletTitle(PortletRequest portletRequest)
getPortletTitle in interface Portalpublic String getPortletTitle(PortletResponse portletResponse)
getPortletTitle in interface Portal
public String getPortletTitle(String portletId,
Locale locale)
getPortletTitle in interface Portal
public String getPortletTitle(String portletId,
ResourceBundle resourceBundle)
getPortletTitle in interface Portal
public String getPortletTitle(String portletId,
String languageId)
getPortletTitle in interface Portal
public String getPortletTitle(String portletId,
User user)
getPortletTitle in interface Portalpublic String getPortletXmlFileName()
getPortletXmlFileName in interface Portalpublic PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest request)
getPreferences in interface Portalpublic PreferencesValidator getPreferencesValidator(Portlet portlet)
getPreferencesValidator in interface Portal
public String getRelativeHomeURL(javax.servlet.http.HttpServletRequest request)
throws PortalException
getRelativeHomeURL in interface PortalPortalExceptionpublic ResourceBundle getResourceBundle(Locale locale)
getResourceBundle in interface Portal
public long getScopeGroupId(javax.servlet.http.HttpServletRequest request)
throws PortalException
getScopeGroupId in interface PortalPortalException
public long getScopeGroupId(javax.servlet.http.HttpServletRequest request,
String portletId)
throws PortalException
getScopeGroupId in interface PortalPortalException
public long getScopeGroupId(javax.servlet.http.HttpServletRequest request,
String portletId,
boolean checkStagingGroup)
throws PortalException
getScopeGroupId in interface PortalPortalExceptionpublic long getScopeGroupId(Layout layout)
getScopeGroupId in interface Portal
public long getScopeGroupId(Layout layout,
String portletId)
getScopeGroupId in interface Portalpublic long getScopeGroupId(long plid)
getScopeGroupId in interface Portal
public long getScopeGroupId(PortletRequest portletRequest)
throws PortalException
getScopeGroupId in interface PortalPortalException
public User getSelectedUser(javax.servlet.http.HttpServletRequest request)
throws PortalException
getSelectedUser in interface PortalPortalException
public User getSelectedUser(javax.servlet.http.HttpServletRequest request,
boolean checkPermission)
throws PortalException
getSelectedUser in interface PortalPortalException
public User getSelectedUser(PortletRequest portletRequest)
throws PortalException
getSelectedUser in interface PortalPortalException
public User getSelectedUser(PortletRequest portletRequest,
boolean checkPermission)
throws PortalException
getSelectedUser in interface PortalPortalExceptionpublic String getServletContextName()
getServletContextName in interface Portal
public long[] getSharedContentSiteGroupIds(long companyId,
long groupId,
long userId)
throws PortalException
getSharedContentSiteGroupIds in interface PortalPortalException
@Deprecated
public PortletURL getSiteAdministrationURL(javax.servlet.http.HttpServletRequest request,
ThemeDisplay themeDisplay,
String portletId)
#getControlPanelPortletURL(PortletRequest, Group, String,
String)
getSiteAdministrationURL in interface Portal
@Deprecated
public PortletURL getSiteAdministrationURL(PortletResponse portletResponse,
ThemeDisplay themeDisplay,
String portletName)
#getControlPanelPortletURL(PortletRequest, Group, String,
String)
getSiteAdministrationURL in interface Portal
@Deprecated
public long[] getSiteAndCompanyGroupIds(long groupId)
throws PortalException
getCurrentAndAncestorSiteGroupIds(long)
getSiteAndCompanyGroupIds in interface PortalPortalException
@Deprecated
public long[] getSiteAndCompanyGroupIds(ThemeDisplay themeDisplay)
throws PortalException
getCurrentAndAncestorSiteGroupIds(long)
getSiteAndCompanyGroupIds in interface PortalPortalException
public Locale getSiteDefaultLocale(long groupId)
throws PortalException
getSiteDefaultLocale in interface PortalPortalExceptionpublic long getSiteGroupId(long groupId)
getSiteGroupId in interface Portal
public String getSiteLoginURL(ThemeDisplay themeDisplay)
throws PortalException
Portal
getSiteLoginURL in interface PortalthemeDisplay - the theme display for the current page
null if one is not available
PortalException
public String getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
String uri)
getStaticResourceURL in interface Portal
public String getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
String uri,
long timestamp)
getStaticResourceURL in interface Portal
public String getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
String uri,
String queryString)
getStaticResourceURL in interface Portal
public String getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
String uri,
String queryString,
long timestamp)
getStaticResourceURL in interface Portalpublic String getStrutsAction(javax.servlet.http.HttpServletRequest request)
getStrutsAction in interface Portalpublic String[] getSystemGroups()
getSystemGroups in interface Portalpublic String[] getSystemOrganizationRoles()
getSystemOrganizationRoles in interface Portalpublic String[] getSystemRoles()
getSystemRoles in interface Portalpublic String[] getSystemSiteRoles()
getSystemSiteRoles in interface Portal
public String getUniqueElementId(javax.servlet.http.HttpServletRequest request,
String namespace,
String elementId)
getUniqueElementId in interface Portal
public String getUniqueElementId(PortletRequest request,
String namespace,
String elementId)
getUniqueElementId in interface Portalpublic UploadPortletRequest getUploadPortletRequest(PortletRequest portletRequest)
getUploadPortletRequest in interface Portalpublic UploadServletRequest getUploadServletRequest(javax.servlet.http.HttpServletRequest request)
getUploadServletRequest in interface Portalpublic Date getUptime()
getUptime in interface Portal
public String getURLWithSessionId(String url,
String sessionId)
getURLWithSessionId in interface Portal
public User getUser(javax.servlet.http.HttpServletRequest request)
throws PortalException
getUser in interface PortalPortalException
public User getUser(PortletRequest portletRequest)
throws PortalException
getUser in interface PortalPortalExceptionpublic String getUserEmailAddress(long userId)
getUserEmailAddress in interface Portalpublic long getUserId(javax.servlet.http.HttpServletRequest request)
getUserId in interface Portalpublic long getUserId(PortletRequest portletRequest)
getUserId in interface Portalpublic String getUserName(BaseModel<?> baseModel)
getUserName in interface Portal
public String getUserName(long userId,
String defaultUserName)
getUserName in interface Portal
public String getUserName(long userId,
String defaultUserName,
javax.servlet.http.HttpServletRequest request)
getUserName in interface Portal
public String getUserName(long userId,
String defaultUserName,
String userAttribute)
getUserName in interface Portal
public String getUserName(long userId,
String defaultUserName,
String userAttribute,
javax.servlet.http.HttpServletRequest request)
getUserName in interface Portalpublic String getUserPassword(javax.servlet.http.HttpServletRequest request)
getUserPassword in interface Portalpublic String getUserPassword(javax.servlet.http.HttpSession session)
getUserPassword in interface Portalpublic String getUserPassword(PortletRequest portletRequest)
getUserPassword in interface Portal
@Deprecated
public String getUserValue(long userId,
String param,
String defaultValue)
getUserValue in interface Portal
public String getValidPortalDomain(long companyId,
String domain)
getValidPortalDomain in interface Portal
public long getValidUserId(long companyId,
long userId)
throws PortalException
getValidUserId in interface PortalPortalExceptionpublic String getVirtualHostname(LayoutSet layoutSet)
getVirtualHostname in interface Portal
@Deprecated
public String getVirtualLayoutActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
throws PortalException
getVirtualLayoutActualURL in interface PortalPortalException
@Deprecated
public LayoutFriendlyURLComposite getVirtualLayoutFriendlyURLComposite(boolean privateLayout,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
throws PortalException
getVirtualLayoutFriendlyURLComposite in interface PortalPortalException
public String getWidgetURL(Portlet portlet,
ThemeDisplay themeDisplay)
throws PortalException
getWidgetURL in interface PortalPortalExceptionpublic void initCustomSQL()
initCustomSQL in interface Portal
public User initUser(javax.servlet.http.HttpServletRequest request)
throws Exception
initUser in interface PortalException
@Deprecated
public void invokeTaglibDiscussion(PortletConfig portletConfig,
ActionRequest actionRequest,
ActionResponse actionResponse)
throws Exception
invokeTaglibDiscussion in interface PortalException
@Deprecated
public void invokeTaglibDiscussionPagination(PortletConfig portletConfig,
ResourceRequest resourceRequest,
ResourceResponse resourceResponse)
throws IOException,
PortletException
invokeTaglibDiscussionPagination in interface PortalIOException
PortletException
@Deprecated
public boolean isAllowAddPortletDefaultResource(javax.servlet.http.HttpServletRequest request,
Portlet portlet)
throws PortalException
isAllowAddPortletDefaultResource in interface PortalPortalException
public boolean isCDNDynamicResourcesEnabled(javax.servlet.http.HttpServletRequest request)
throws PortalException
isCDNDynamicResourcesEnabled in interface PortalPortalExceptionpublic boolean isCDNDynamicResourcesEnabled(long companyId)
isCDNDynamicResourcesEnabled in interface Portal
@Deprecated
public boolean isCommunityAdmin(User user,
long groupId)
throws Exception
isGroupAdmin(User, long)
isCommunityAdmin in interface PortalException
@Deprecated
public boolean isCommunityOwner(User user,
long groupId)
throws Exception
isGroupOwner(User, long)
isCommunityOwner in interface PortalException
public boolean isCompanyAdmin(User user)
throws Exception
isCompanyAdmin in interface PortalException
public boolean isCompanyControlPanelPortlet(String portletId,
String category,
ThemeDisplay themeDisplay)
throws PortalException
isCompanyControlPanelPortlet in interface PortalPortalException
public boolean isCompanyControlPanelPortlet(String portletId,
ThemeDisplay themeDisplay)
throws PortalException
isCompanyControlPanelPortlet in interface PortalPortalException
public boolean isControlPanelPortlet(String portletId,
String category,
ThemeDisplay themeDisplay)
isControlPanelPortlet in interface Portal
public boolean isControlPanelPortlet(String portletId,
ThemeDisplay themeDisplay)
isControlPanelPortlet in interface Portal
public boolean isGroupAdmin(User user,
long groupId)
throws Exception
isGroupAdmin in interface PortalException
public boolean isGroupFriendlyURL(String fullURL,
String groupFriendlyURL,
String layoutFriendlyURL)
isGroupFriendlyURL in interface Portal
public boolean isGroupOwner(User user,
long groupId)
throws Exception
isGroupOwner in interface PortalException
public boolean isLayoutDescendant(Layout layout,
long layoutId)
throws PortalException
isLayoutDescendant in interface PortalPortalExceptionpublic boolean isLayoutSitemapable(Layout layout)
isLayoutSitemapable in interface Portalpublic boolean isLoginRedirectRequired(javax.servlet.http.HttpServletRequest request)
isLoginRedirectRequired in interface Portalpublic boolean isMethodGet(PortletRequest portletRequest)
isMethodGet in interface Portalpublic boolean isMethodPost(PortletRequest portletRequest)
isMethodPost in interface Portalpublic boolean isMultipartRequest(javax.servlet.http.HttpServletRequest request)
isMultipartRequest in interface Portalpublic boolean isOmniadmin(long userId)
isOmniadmin in interface Portalpublic boolean isOmniadmin(User user)
isOmniadmin in interface Portalpublic boolean isReservedParameter(String name)
isReservedParameter in interface Portalpublic boolean isRightToLeft(javax.servlet.http.HttpServletRequest request)
isRightToLeft in interface Portalpublic boolean isRSSFeedsEnabled()
isRSSFeedsEnabled in interface Portalpublic boolean isSecure(javax.servlet.http.HttpServletRequest request)
isSecure in interface Portalpublic boolean isSystemGroup(String groupName)
isSystemGroup in interface Portalpublic boolean isSystemRole(String roleName)
isSystemRole in interface Portalpublic boolean isUpdateAvailable()
isUpdateAvailable in interface Portalpublic boolean isValidResourceId(String resourceId)
isValidResourceId in interface Portalpublic boolean removePortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener)
removePortalInetSocketAddressEventListener in interface Portal@Deprecated public void removePortalPortEventListener(PortalPortEventListener portalPortEventListener)
removePortalInetSocketAddressEventListener(
PortalInetSocketAddressEventListener)
removePortalPortEventListener in interface Portalpublic void resetCDNHosts()
resetCDNHosts in interface Portal@Deprecated public Set<String> resetPortletAddDefaultResourceCheckWhitelist()
AuthTokenWhitelistUtil.resetPortletInvocationWhitelist()
resetPortletAddDefaultResourceCheckWhitelist in interface Portal@Deprecated public Set<String> resetPortletAddDefaultResourceCheckWhitelistActions()
AuthTokenWhitelistUtil.resetPortletInvocationWhitelistActions()
resetPortletAddDefaultResourceCheckWhitelistActions in interface Portal
public String resetPortletParameters(String url,
String portletId)
resetPortletParameters in interface Portal
public void sendError(Exception e,
ActionRequest actionRequest,
ActionResponse actionResponse)
throws IOException
sendError in interface PortalIOException
public void sendError(Exception e,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
sendError in interface PortalIOException
javax.servlet.ServletException
public void sendError(int status,
Exception e,
ActionRequest actionRequest,
ActionResponse actionResponse)
throws IOException
sendError in interface PortalIOException
public void sendError(int status,
Exception e,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
sendError in interface PortalIOException
javax.servlet.ServletException
public void sendRSSFeedsDisabledError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
sendRSSFeedsDisabledError in interface PortalIOException
javax.servlet.ServletException
public void sendRSSFeedsDisabledError(PortletRequest portletRequest,
PortletResponse portletResponse)
throws IOException,
javax.servlet.ServletException
sendRSSFeedsDisabledError in interface PortalIOException
javax.servlet.ServletException
public void setPageDescription(String description,
javax.servlet.http.HttpServletRequest request)
Portal
setPageDescription in interface Portal
public void setPageKeywords(String keywords,
javax.servlet.http.HttpServletRequest request)
Portal
setPageKeywords in interface Portal
public void setPageSubtitle(String subtitle,
javax.servlet.http.HttpServletRequest request)
Portal
setPageSubtitle in interface Portal
public void setPageTitle(String title,
javax.servlet.http.HttpServletRequest request)
Portal
setPageTitle in interface Portalpublic void setPortalInetSocketAddresses(javax.servlet.http.HttpServletRequest request)
setPortalInetSocketAddresses in interface Portal@Deprecated public void setPortalPort(javax.servlet.http.HttpServletRequest request)
setPortalInetSocketAddresses(HttpServletRequest)
setPortalPort in interface Portal
public void storePreferences(PortletPreferences portletPreferences)
throws IOException,
ValidatorException
storePreferences in interface PortalIOException
ValidatorException
public String[] stripURLAnchor(String url,
String separator)
stripURLAnchor in interface Portalpublic String transformCustomSQL(String sql)
transformCustomSQL in interface Portalpublic String transformSQL(String sql)
transformSQL in interface Portal
public void updateImageId(BaseModel<?> baseModel,
boolean hasImage,
byte[] bytes,
String fieldName,
long maxSize,
int maxHeight,
int maxWidth)
throws PortalException
updateImageId in interface PortalPortalException
public PortletMode updatePortletMode(String portletId,
User user,
Layout layout,
PortletMode portletMode,
javax.servlet.http.HttpServletRequest request)
throws PortalException
updatePortletMode in interface PortalPortalException
public String updateRedirect(String redirect,
String oldPath,
String newPath)
updateRedirect in interface Portal
public WindowState updateWindowState(String portletId,
User user,
Layout layout,
WindowState windowState,
javax.servlet.http.HttpServletRequest request)
updateWindowState in interface Portal
protected void addDefaultResource(long companyId,
Layout layout,
Portlet portlet,
boolean portletActions)
throws PortalException
PortalException
protected void addDefaultResource(long companyId,
long groupId,
Layout layout,
Portlet portlet,
boolean portletActions)
throws PortalException
PortalExceptionprotected String buildI18NPath(Locale locale)
protected Set<Group> doGetAncestorSiteGroups(long groupId,
boolean checkContentSharingWithChildrenEnabled)
throws PortalException
PortalException
protected Group doGetCurrentSiteGroup(long groupId)
throws PortalException
PortalException
protected long doGetPlidFromPortletId(long groupId,
boolean privateLayout,
String portletId)
protected List<Portlet> filterControlPanelPortlets(Set<Portlet> portlets,
ThemeDisplay themeDisplay)
protected Locale getAvailableLocale(long groupId,
Locale locale)
protected Layout getBrowsableLayout(Layout layout)
protected String getCanonicalDomain(String virtualHostname,
String portalDomain)
protected String getContextPath(String contextPath)
protected Group getControlPanelDisplayGroup(long companyId,
long scopeGroupId,
long doAsGroupId,
String portletId)
protected long getDoAsUserId(javax.servlet.http.HttpServletRequest request,
String doAsUserIdString,
boolean alwaysAllowDoAsUser)
throws Exception
Exception
protected String getGroupFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay,
boolean canonicalURL)
throws PortalException
PortalException
protected String[] getGroupPermissions(String[] groupPermissions,
String className,
String inputPermissionsShowOptions)
protected String[] getGuestPermissions(String[] guestPermissions,
String className,
String inputPermissionsShowOptions)
protected String getPortletParam(javax.servlet.http.HttpServletRequest request,
String name)
protected String getServletURL(Portlet portlet,
String servletPath,
ThemeDisplay themeDisplay)
throws PortalException
PortalException
protected boolean isAlwaysAllowDoAsUser(javax.servlet.http.HttpServletRequest request)
throws Exception
Exception
protected boolean isAlwaysAllowDoAsUser(String actionName,
String mvcRenderCommandName,
String path,
String strutsAction)
@Deprecated
protected boolean isPanelSelectedPortlet(ThemeDisplay themeDisplay,
String portletId)
protected boolean isValidPortalDomain(long companyId,
String domain)
protected boolean isValidPortalDomain(String domain)
protected boolean isValidVirtualHostname(String virtualHostname)
protected void notifyPortalInetSocketAddressEventListeners(InetSocketAddress inetSocketAddress,
boolean local,
boolean secure)
@Deprecated protected void notifyPortalPortEventListeners(int portalPort)
notifyPortalInetSocketAddressEventListeners(
InetSocketAddress, boolean, boolean)
protected String removeRedirectParameter(String url)
protected void resetThemeDisplayI18n(ThemeDisplay themeDisplay,
String languageId,
String path,
Locale locale)
protected void setLocale(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Locale locale)
protected void setThemeDisplayI18n(ThemeDisplay themeDisplay,
Locale locale)
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||