Liferay 7.0-ce-b4

com.liferay.portal.util
Class PortalImpl

java.lang.Object
  extended by com.liferay.portal.util.PortalImpl
All Implemented Interfaces:
Portal

public class PortalImpl
extends Object
implements Portal


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

PortalImpl

public PortalImpl()
Method Detail

addPageDescription

public void addPageDescription(String description,
                               javax.servlet.http.HttpServletRequest request)
Description copied from interface: Portal
Appends the description to the current meta description of the page.

Specified by:
addPageDescription in interface Portal
Parameters:
description - the description to append to the current meta description
request - the servlet request for the page

addPageKeywords

public void addPageKeywords(String keywords,
                            javax.servlet.http.HttpServletRequest request)
Description copied from interface: Portal
Appends the keywords to the current meta keywords of the page.

Specified by:
addPageKeywords in interface Portal
Parameters:
keywords - the keywords to add to the current meta keywords (comma-separated)
request - the servlet request for the page

addPageSubtitle

public void addPageSubtitle(String subtitle,
                            javax.servlet.http.HttpServletRequest request)
Description copied from interface: Portal
Appends the subtitle to the current subtitle of the page.

Specified by:
addPageSubtitle in interface Portal
Parameters:
subtitle - the subtitle to append to the current subtitle
request - the servlet request for the page

addPageTitle

public void addPageTitle(String title,
                         javax.servlet.http.HttpServletRequest request)
Description copied from interface: Portal
Appends the title to the current title of the page.

Specified by:
addPageTitle in interface Portal
Parameters:
title - the title to append to the current title
request - the servlet request for the page

addPortalInetSocketAddressEventListener

public boolean addPortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener)
Specified by:
addPortalInetSocketAddressEventListener in interface Portal

addPortalPortEventListener

@Deprecated
public void addPortalPortEventListener(PortalPortEventListener portalPortEventListener)
Deprecated. As of 7.0.0, replaced by addPortalInetSocketAddressEventListener( PortalInetSocketAddressEventListener)

Adds the portal port event listener to the portal. The listener will be notified whenever the portal port is set.

Specified by:
addPortalPortEventListener in interface Portal
Parameters:
portalPortEventListener - the portal port event listener to add

addPortletBreadcrumbEntry

public void addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request,
                                      String title,
                                      String url)
Description copied from interface: Portal
Adds an entry to the portlet breadcrumbs for the page.

Specified by:
addPortletBreadcrumbEntry in interface Portal
Parameters:
request - the servlet request for the page
title - the title of the new breakcrumb entry
url - the URL of the new breadcrumb entry

addPortletBreadcrumbEntry

public void addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request,
                                      String title,
                                      String url,
                                      Map<String,Object> data)
Description copied from interface: Portal
Adds an entry to the portlet breadcrumbs for the page.

Specified by:
addPortletBreadcrumbEntry in interface Portal
Parameters:
request - the servlet request for the page
title - the title of the new breakcrumb entry
url - the URL of the new breadcrumb entry
data - the HTML5 data parameters of the new breadcrumb entry

addPortletDefaultResource

public void addPortletDefaultResource(javax.servlet.http.HttpServletRequest request,
                                      Portlet portlet)
                               throws PortalException
Description copied from interface: Portal
Adds the default resource permissions for the portlet to the page.

Specified by:
addPortletDefaultResource in interface Portal
Parameters:
request - the servlet request for the page
portlet - the portlet
Throws:
PortalException

addPortletDefaultResource

public void addPortletDefaultResource(long companyId,
                                      Layout layout,
                                      Portlet portlet)
                               throws PortalException
Specified by:
addPortletDefaultResource in interface Portal
Throws:
PortalException

addPreservedParameters

public String addPreservedParameters(ThemeDisplay themeDisplay,
                                     Layout layout,
                                     String url,
                                     boolean doAsUser)
Description copied from interface: Portal
Adds the preserved parameters doAsGroupId and refererPlid to the URL, optionally adding doAsUserId and doAsUserLanguageId as well.

Preserved parameters are parameters that should be sent with every request as the user navigates the portal.

Specified by:
addPreservedParameters in interface Portal
Parameters:
themeDisplay - the current theme display
layout - the current layout
url - the URL
doAsUser - whether to include doAsUserId and doAsLanguageId in the URL if they are available. If false, doAsUserId and doAsUserLanguageId will never be added.
Returns:
the URL with the preserved parameters added

addPreservedParameters

public String addPreservedParameters(ThemeDisplay themeDisplay,
                                     String url)
Description copied from interface: Portal
Adds the preserved parameters doAsUserId, doAsUserLanguageId, doAsGroupId, and refererPlid to the URL.

Specified by:
addPreservedParameters in interface Portal
Parameters:
themeDisplay - the current theme display
url - the URL
Returns:
the URL with the preserved parameters added

addUserLocaleOptionsMessage

public void addUserLocaleOptionsMessage(javax.servlet.http.HttpServletRequest request)
Specified by:
addUserLocaleOptionsMessage in interface Portal

clearRequestParameters

public void clearRequestParameters(RenderRequest renderRequest)
Description copied from interface: Portal
Clears the render parameters in the request if the portlet is in the action phase.

Specified by:
clearRequestParameters in interface Portal
Parameters:
renderRequest - the render request

copyRequestParameters

public void copyRequestParameters(ActionRequest actionRequest,
                                  ActionResponse actionResponse)
Description copied from interface: Portal
Copies the request parameters to the render parameters, unless a parameter with that name already exists in the render parameters.

Specified by:
copyRequestParameters in interface Portal
Parameters:
actionRequest - the request from which to get the request parameters
actionResponse - the response to receive the render parameters

escapeRedirect

public String escapeRedirect(String url)
Description copied from interface: Portal
Escapes the URL for use in a redirect and checks that security settings allow the URL is allowed for redirects.

Specified by:
escapeRedirect in interface Portal
Parameters:
url - the URL to escape
Returns:
the escaped URL, or null if the URL is not an allowed for redirects

generateRandomKey

public String generateRandomKey(javax.servlet.http.HttpServletRequest request,
                                String input)
Description copied from interface: Portal
Generates a random key to identify the request based on the input string.

Specified by:
generateRandomKey in interface Portal
Parameters:
request - the servlet request for the page
input - the input string
Returns:
the generated key

getAbsoluteURL

public String getAbsoluteURL(javax.servlet.http.HttpServletRequest request,
                             String url)
Specified by:
getAbsoluteURL in interface Portal

getActualLayoutQueryStringComposite

public LayoutQueryStringComposite getActualLayoutQueryStringComposite(long groupId,
                                                                      boolean privateLayout,
                                                                      String friendlyURL,
                                                                      Map<String,String[]> params,
                                                                      Map<String,Object> requestContext)
                                                               throws PortalException
Specified by:
getActualLayoutQueryStringComposite in interface Portal
Throws:
PortalException

getActualURL

public String getActualURL(long groupId,
                           boolean privateLayout,
                           String mainPath,
                           String friendlyURL,
                           Map<String,String[]> params,
                           Map<String,Object> requestContext)
                    throws PortalException
Specified by:
getActualURL in interface Portal
Throws:
PortalException

getAlternateURL

public String getAlternateURL(String canonicalURL,
                              ThemeDisplay themeDisplay,
                              Locale locale,
                              Layout layout)
                       throws PortalException
Description copied from interface: Portal
Returns the alternate URL for the requested canonical URL in the given locale.

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.

Specified by:
getAlternateURL in interface Portal
Parameters:
canonicalURL - 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 display
locale - the locale of the alternate (translated) page
layout - the page being requested
Returns:
the alternate URL for the requested canonical URL in the given locale
Throws:
PortalException

getAncestorSiteGroupIds

public long[] getAncestorSiteGroupIds(long groupId)
                               throws PortalException
Specified by:
getAncestorSiteGroupIds in interface Portal
Throws:
PortalException

getAuthTokenIgnoreActions

@Deprecated
public Set<String> getAuthTokenIgnoreActions()
Deprecated. As of 6.2.0, replaced by AuthTokenWhitelistUtil.getPortletCSRFWhitelistActions()

Description copied from interface: Portal
Returns the set of struts actions that should not be checked for an authentication token.

Specified by:
getAuthTokenIgnoreActions in interface Portal
Returns:
the set of struts actions that should not be checked for an authentication token

getAuthTokenIgnorePortlets

@Deprecated
public Set<String> getAuthTokenIgnorePortlets()
Deprecated. As of 6.2.0, replaced by AuthTokenWhitelistUtil.getPortletCSRFWhitelist()

Description copied from interface: Portal
Returns the set of IDs of portlets that should not be checked for an authentication token.

Specified by:
getAuthTokenIgnorePortlets in interface Portal
Returns:
the set of IDs of portlets that should not be checked for an authentication token

getBaseModel

public BaseModel<?> getBaseModel(ResourcePermission resourcePermission)
                          throws PortalException
Description copied from interface: Portal
Returns the base model instance for the resource permission.

Specified by:
getBaseModel in interface Portal
Parameters:
resourcePermission - the resource permission
Returns:
the base model instance, or null if the resource permission does not have a base model instance (such as if its a portlet)
Throws:
PortalException

getBaseModel

public BaseModel<?> getBaseModel(String modelName,
                                 String primKey)
                          throws PortalException
Description copied from interface: Portal
Returns the base model instance for the model name and primary key.

Specified by:
getBaseModel in interface Portal
Parameters:
modelName - the fully qualified class name of the model
primKey - the primary key of the model instance to get
Returns:
the base model instance, or null if the model does not have a base model instance (such as if its a portlet)
Throws:
PortalException

getBasicAuthUserId

@Deprecated
public long getBasicAuthUserId(javax.servlet.http.HttpServletRequest request)
                        throws PortalException
Deprecated. As of 7.0.0, replaced by HttpAuthManagerUtil.getBasicUserId(HttpServletRequest)

Specified by:
getBasicAuthUserId in interface Portal
Throws:
PortalException

getBasicAuthUserId

@Deprecated
public long getBasicAuthUserId(javax.servlet.http.HttpServletRequest request,
                                          long companyId)
                        throws PortalException
Deprecated. As of 7.0.0, replaced by HttpAuthManagerUtil.getBasicUserId(HttpServletRequest)

Specified by:
getBasicAuthUserId in interface Portal
Throws:
PortalException

getBrowsableScopeGroups

public List<Group> getBrowsableScopeGroups(long userId,
                                           long companyId,
                                           long groupId,
                                           String portletId)
                                    throws PortalException
Specified by:
getBrowsableScopeGroups in interface Portal
Throws:
PortalException

getCanonicalURL

public String getCanonicalURL(String completeURL,
                              ThemeDisplay themeDisplay,
                              Layout layout)
                       throws PortalException
Description copied from interface: Portal
Returns the canonical URL of the page, to distinguish it among its translations.

Specified by:
getCanonicalURL in interface Portal
Parameters:
completeURL - the complete URL of the page
themeDisplay - the current theme display
layout - the layout. If it is null, then it is generated for the current layout
Returns:
the canonical URL
Throws:
PortalException

getCanonicalURL

public String getCanonicalURL(String completeURL,
                              ThemeDisplay themeDisplay,
                              Layout layout,
                              boolean forceLayoutFriendlyURL)
                       throws PortalException
Description copied from interface: Portal
Returns the canonical URL of the page, to distinguish it among its translations.

Specified by:
getCanonicalURL in interface Portal
Parameters:
completeURL - the complete URL of the page
themeDisplay - the current theme display
layout - the layout. If it is null, then it is generated for the current layout
forceLayoutFriendlyURL - adds the page friendly URL to the canonical URL even if it is not needed
Returns:
the canonical URL
Throws:
PortalException

getCDNHost

@Deprecated
public String getCDNHost()
Deprecated. As of 6.1.0, replaced by getCDNHost(boolean)

Specified by:
getCDNHost in interface Portal

getCDNHost

public String getCDNHost(boolean secure)
Description copied from interface: Portal
Returns the secure (HTTPS) or insecure (HTTP) content distribution network (CDN) host address for this portal.

Specified by:
getCDNHost in interface Portal
Parameters:
secure - whether to get the secure or insecure CDN host address
Returns:
the CDN host address

getCDNHost

public String getCDNHost(javax.servlet.http.HttpServletRequest request)
                  throws PortalException
Specified by:
getCDNHost in interface Portal
Throws:
PortalException

getCDNHostHttp

public String getCDNHostHttp(long companyId)
Description copied from interface: Portal
Returns the insecure (HTTP) content distribution network (CDN) host address

Specified by:
getCDNHostHttp in interface Portal
Parameters:
companyId - the company ID of a site
Returns:
the CDN host address

getCDNHostHttps

public String getCDNHostHttps(long companyId)
Description copied from interface: Portal
Returns the secure (HTTPS) content distribution network (CDN) host address

Specified by:
getCDNHostHttps in interface Portal
Parameters:
companyId - the company ID of a site
Returns:
the CDN host address

getClassName

public String getClassName(long classNameId)
Description copied from interface: Portal
Returns the fully qualified name of the class from its ID.

Specified by:
getClassName in interface Portal
Parameters:
classNameId - the ID of the class
Returns:
the fully qualified name of the class

getClassNameId

public long getClassNameId(Class<?> clazz)
Description copied from interface: Portal
Returns the ID of the class from its class object.

Specified by:
getClassNameId in interface Portal
Parameters:
clazz - the class object
Returns:
the ID of the class

getClassNameId

public long getClassNameId(String value)
Description copied from interface: Portal
Returns the ID of the class from its fully qualified name.

Specified by:
getClassNameId in interface Portal
Parameters:
value - the fully qualified name of the class
Returns:
the ID of the class

getCompany

public Company getCompany(javax.servlet.http.HttpServletRequest request)
                   throws PortalException
Specified by:
getCompany in interface Portal
Throws:
PortalException

getCompany

public Company getCompany(PortletRequest portletRequest)
                   throws PortalException
Specified by:
getCompany in interface Portal
Throws:
PortalException

getCompanyId

public long getCompanyId(javax.servlet.http.HttpServletRequest request)
Specified by:
getCompanyId in interface Portal

getCompanyId

public long getCompanyId(PortletRequest portletRequest)
Specified by:
getCompanyId in interface Portal

getCompanyIds

public long[] getCompanyIds()
Specified by:
getCompanyIds in interface Portal

getComputerAddresses

public Set<String> getComputerAddresses()
Specified by:
getComputerAddresses in interface Portal

getComputerName

public String getComputerName()
Specified by:
getComputerName in interface Portal

getControlPanelFullURL

public String getControlPanelFullURL(long scopeGroupId,
                                     String ppid,
                                     Map<String,String[]> params)
                              throws PortalException
Specified by:
getControlPanelFullURL in interface Portal
Throws:
PortalException

getControlPanelPlid

public long getControlPanelPlid(long companyId)
                         throws PortalException
Specified by:
getControlPanelPlid in interface Portal
Throws:
PortalException

getControlPanelPlid

public long getControlPanelPlid(PortletRequest portletRequest)
                         throws PortalException
Specified by:
getControlPanelPlid in interface Portal
Throws:
PortalException

getControlPanelPortletURL

public PortletURL getControlPanelPortletURL(javax.servlet.http.HttpServletRequest request,
                                            Group group,
                                            String portletId,
                                            long refererGroupId,
                                            long refererPlid,
                                            String lifecycle)
Specified by:
getControlPanelPortletURL in interface Portal

getControlPanelPortletURL

public PortletURL getControlPanelPortletURL(javax.servlet.http.HttpServletRequest request,
                                            String portletId,
                                            String lifecycle)
Specified by:
getControlPanelPortletURL in interface Portal

getControlPanelPortletURL

public PortletURL getControlPanelPortletURL(PortletRequest portletRequest,
                                            Group group,
                                            String portletId,
                                            long refererGroupId,
                                            long refererPlid,
                                            String lifecycle)
Specified by:
getControlPanelPortletURL in interface Portal

getControlPanelPortletURL

public PortletURL getControlPanelPortletURL(PortletRequest portletRequest,
                                            String portletId,
                                            String lifecycle)
Specified by:
getControlPanelPortletURL in interface Portal

getCreateAccountURL

public String getCreateAccountURL(javax.servlet.http.HttpServletRequest request,
                                  ThemeDisplay themeDisplay)
                           throws Exception
Specified by:
getCreateAccountURL in interface Portal
Throws:
Exception

getCurrentAndAncestorSiteGroupIds

public long[] getCurrentAndAncestorSiteGroupIds(long groupId)
                                         throws PortalException
Specified by:
getCurrentAndAncestorSiteGroupIds in interface Portal
Throws:
PortalException

getCurrentAndAncestorSiteGroupIds

public long[] getCurrentAndAncestorSiteGroupIds(long groupId,
                                                boolean checkContentSharingWithChildrenEnabled)
                                         throws PortalException
Specified by:
getCurrentAndAncestorSiteGroupIds in interface Portal
Throws:
PortalException

getCurrentAndAncestorSiteGroupIds

public long[] getCurrentAndAncestorSiteGroupIds(long[] groupIds)
                                         throws PortalException
Specified by:
getCurrentAndAncestorSiteGroupIds in interface Portal
Throws:
PortalException

getCurrentAndAncestorSiteGroupIds

public long[] getCurrentAndAncestorSiteGroupIds(long[] groupIds,
                                                boolean checkContentSharingWithChildrenEnabled)
                                         throws PortalException
Specified by:
getCurrentAndAncestorSiteGroupIds in interface Portal
Throws:
PortalException

getCurrentAndAncestorSiteGroups

public List<Group> getCurrentAndAncestorSiteGroups(long groupId)
                                            throws PortalException
Specified by:
getCurrentAndAncestorSiteGroups in interface Portal
Throws:
PortalException

getCurrentAndAncestorSiteGroups

public List<Group> getCurrentAndAncestorSiteGroups(long groupId,
                                                   boolean checkContentSharingWithChildrenEnabled)
                                            throws PortalException
Specified by:
getCurrentAndAncestorSiteGroups in interface Portal
Throws:
PortalException

getCurrentAndAncestorSiteGroups

public List<Group> getCurrentAndAncestorSiteGroups(long[] groupIds)
                                            throws PortalException
Specified by:
getCurrentAndAncestorSiteGroups in interface Portal
Throws:
PortalException

getCurrentAndAncestorSiteGroups

public List<Group> getCurrentAndAncestorSiteGroups(long[] groupIds,
                                                   boolean checkContentSharingWithChildrenEnabled)
                                            throws PortalException
Specified by:
getCurrentAndAncestorSiteGroups in interface Portal
Throws:
PortalException

getCurrentCompleteURL

public String getCurrentCompleteURL(javax.servlet.http.HttpServletRequest request)
Specified by:
getCurrentCompleteURL in interface Portal

getCurrentURL

public String getCurrentURL(javax.servlet.http.HttpServletRequest request)
Specified by:
getCurrentURL in interface Portal

getCurrentURL

public String getCurrentURL(PortletRequest portletRequest)
Specified by:
getCurrentURL in interface Portal

getCustomSQLFunctionIsNotNull

public String getCustomSQLFunctionIsNotNull()
Specified by:
getCustomSQLFunctionIsNotNull in interface Portal

getCustomSQLFunctionIsNull

public String getCustomSQLFunctionIsNull()
Specified by:
getCustomSQLFunctionIsNull in interface Portal

getDate

public Date getDate(int month,
                    int day,
                    int year)
Description copied from interface: Portal
Returns the date object for the specified month, day, and year, or null if the date is invalid.

Specified by:
getDate in interface Portal
Parameters:
month - the month (0-based, meaning 0 for January)
day - the day of the month
year - the year
Returns:
the date object, or null if the date is invalid

getDate

public Date getDate(int month,
                    int day,
                    int year,
                    Class<? extends PortalException> clazz)
             throws PortalException
Description copied from interface: Portal
Returns the date object for the specified month, day, and year, optionally throwing an exception if the date is invalid.

Specified by:
getDate in interface Portal
Parameters:
month - the month (0-based, meaning 0 for January)
day - the day of the month
year - the year
clazz - the exception class to throw if the date is invalid. If null, no exception will be thrown for an invalid date.
Returns:
the date object, or null if the date is invalid and no exception to throw was provided
Throws:
PortalException

getDate

public Date getDate(int month,
                    int day,
                    int year,
                    int hour,
                    int min,
                    Class<? extends PortalException> clazz)
             throws PortalException
Description copied from interface: Portal
Returns the date object for the specified month, day, year, hour, and minute, optionally throwing an exception if the date is invalid.

Specified by:
getDate in interface Portal
Parameters:
month - the month (0-based, meaning 0 for January)
day - the day of the month
year - the year
hour - the hour (0-24)
min - the minute of the hour
clazz - the exception class to throw if the date is invalid. If null, no exception will be thrown for an invalid date.
Returns:
the date object, or null if the date is invalid and no exception to throw was provided
Throws:
PortalException

getDate

public Date getDate(int month,
                    int day,
                    int year,
                    int hour,
                    int min,
                    TimeZone timeZone,
                    Class<? extends PortalException> clazz)
             throws PortalException
Description copied from interface: Portal
Returns the date object for the specified month, day, year, hour, minute, and time zone, optionally throwing an exception if the date is invalid.

Specified by:
getDate in interface Portal
Parameters:
month - the month (0-based, meaning 0 for January)
day - the day of the month
year - the year
hour - the hour (0-24)
min - the minute of the hour
timeZone - the time zone of the date
clazz - the exception class to throw if the date is invalid. If null, no exception will be thrown for an invalid date.
Returns:
the date object, or null if the date is invalid and no exception to throw was provided
Throws:
PortalException

getDate

public Date getDate(int month,
                    int day,
                    int year,
                    TimeZone timeZone,
                    Class<? extends PortalException> clazz)
             throws PortalException
Description copied from interface: Portal
Returns the date object for the specified month, day, year, and time zone, optionally throwing an exception if the date is invalid.

Specified by:
getDate in interface Portal
Parameters:
month - the month (0-based, meaning 0 for January)
day - the day of the month
year - the year
timeZone - the time zone of the date
clazz - the exception class to throw if the date is invalid. If null, no exception will be thrown for an invalid date.
Returns:
the date object, or null if the date is invalid and no exception to throw was provided
Throws:
PortalException

getDefaultCompanyId

public long getDefaultCompanyId()
Specified by:
getDefaultCompanyId in interface Portal

getDigestAuthUserId

@Deprecated
public long getDigestAuthUserId(javax.servlet.http.HttpServletRequest request)
                         throws PortalException
Deprecated. As of 7.0.0, replaced by HttpAuthManagerUtil.getDigestUserId(HttpServletRequest)

Specified by:
getDigestAuthUserId in interface Portal
Throws:
PortalException

getEmailFromAddress

public String getEmailFromAddress(PortletPreferences preferences,
                                  long companyId,
                                  String defaultValue)
Specified by:
getEmailFromAddress in interface Portal

getEmailFromName

public String getEmailFromName(PortletPreferences preferences,
                               long companyId,
                               String defaultValue)
Specified by:
getEmailFromName in interface Portal

getExpandoBridgeAttributes

public Map<String,Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
                                                           javax.servlet.http.HttpServletRequest request)
                                                    throws PortalException
Specified by:
getExpandoBridgeAttributes in interface Portal
Throws:
PortalException

getExpandoBridgeAttributes

public Map<String,Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
                                                           PortletRequest portletRequest)
                                                    throws PortalException
Specified by:
getExpandoBridgeAttributes in interface Portal
Throws:
PortalException

getExpandoBridgeAttributes

public Map<String,Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
                                                           UploadPortletRequest uploadPortletRequest)
                                                    throws PortalException
Specified by:
getExpandoBridgeAttributes in interface Portal
Throws:
PortalException

getExpandoValue

public Serializable getExpandoValue(javax.servlet.http.HttpServletRequest request,
                                    String name,
                                    int type,
                                    String displayType)
                             throws PortalException
Specified by:
getExpandoValue in interface Portal
Throws:
PortalException

getExpandoValue

public Serializable getExpandoValue(PortletRequest portletRequest,
                                    String name,
                                    int type,
                                    String displayType)
                             throws PortalException
Specified by:
getExpandoValue in interface Portal
Throws:
PortalException

getExpandoValue

public Serializable getExpandoValue(UploadPortletRequest uploadPortletRequest,
                                    String name,
                                    int type,
                                    String displayType)
                             throws PortalException
Specified by:
getExpandoValue in interface Portal
Throws:
PortalException

getFacebookURL

public String getFacebookURL(Portlet portlet,
                             String facebookCanvasPageURL,
                             ThemeDisplay themeDisplay)
                      throws PortalException
Specified by:
getFacebookURL in interface Portal
Throws:
PortalException

getFirstPageLayoutTypes

public String getFirstPageLayoutTypes(javax.servlet.http.HttpServletRequest request)
Specified by:
getFirstPageLayoutTypes in interface Portal

getFullName

public String getFullName(String firstName,
                          String middleName,
                          String lastName)
Specified by:
getFullName in interface Portal

getGlobalLibDir

public String getGlobalLibDir()
Specified by:
getGlobalLibDir in interface Portal

getGoogleGadgetURL

public String getGoogleGadgetURL(Portlet portlet,
                                 ThemeDisplay themeDisplay)
                          throws PortalException
Specified by:
getGoogleGadgetURL in interface Portal
Throws:
PortalException

getGroupFriendlyURL

public String getGroupFriendlyURL(LayoutSet layoutSet,
                                  ThemeDisplay themeDisplay)
                           throws PortalException
Specified by:
getGroupFriendlyURL in interface Portal
Throws:
PortalException

getGroupFriendlyURL

public String getGroupFriendlyURL(LayoutSet layoutSet,
                                  ThemeDisplay themeDisplay,
                                  Locale locale)
                           throws PortalException
Specified by:
getGroupFriendlyURL in interface Portal
Throws:
PortalException

getGroupFriendlyURLIndex

public int[] getGroupFriendlyURLIndex(String requestURI)
Specified by:
getGroupFriendlyURLIndex in interface Portal

getGroupPermissions

public String[] getGroupPermissions(javax.servlet.http.HttpServletRequest request)
Specified by:
getGroupPermissions in interface Portal

getGroupPermissions

public String[] getGroupPermissions(javax.servlet.http.HttpServletRequest request,
                                    String className)
Specified by:
getGroupPermissions in interface Portal

getGroupPermissions

public String[] getGroupPermissions(PortletRequest portletRequest)
Specified by:
getGroupPermissions in interface Portal

getGroupPermissions

public String[] getGroupPermissions(PortletRequest portletRequest,
                                    String className)
Specified by:
getGroupPermissions in interface Portal

getGuestPermissions

public String[] getGuestPermissions(javax.servlet.http.HttpServletRequest request)
Specified by:
getGuestPermissions in interface Portal

getGuestPermissions

public String[] getGuestPermissions(javax.servlet.http.HttpServletRequest request,
                                    String className)
Specified by:
getGuestPermissions in interface Portal

getGuestPermissions

public String[] getGuestPermissions(PortletRequest portletRequest)
Specified by:
getGuestPermissions in interface Portal

getGuestPermissions

public String[] getGuestPermissions(PortletRequest portletRequest,
                                    String className)
Specified by:
getGuestPermissions in interface Portal

getHomeURL

public String getHomeURL(javax.servlet.http.HttpServletRequest request)
                  throws PortalException
Specified by:
getHomeURL in interface Portal
Throws:
PortalException

getHost

public String getHost(javax.servlet.http.HttpServletRequest request)
Specified by:
getHost in interface Portal

getHost

public String getHost(PortletRequest portletRequest)
Specified by:
getHost in interface Portal

getHttpServletRequest

public javax.servlet.http.HttpServletRequest getHttpServletRequest(PortletRequest portletRequest)
Specified by:
getHttpServletRequest in interface Portal

getHttpServletResponse

public javax.servlet.http.HttpServletResponse getHttpServletResponse(PortletResponse portletResponse)
Specified by:
getHttpServletResponse in interface Portal

getI18nPathLanguageId

public String getI18nPathLanguageId(Locale locale,
                                    String defaultI18nPathLanguageId)
Specified by:
getI18nPathLanguageId in interface Portal

getJournalArticleActualURL

@Deprecated
public String getJournalArticleActualURL(long groupId,
                                                    boolean privateLayout,
                                                    String mainPath,
                                                    String friendlyURL,
                                                    Map<String,String[]> params,
                                                    Map<String,Object> requestContext)
                                  throws PortalException
Deprecated. As of 7.0.0, with no direct replacement

Specified by:
getJournalArticleActualURL in interface Portal
Throws:
PortalException

getJournalArticleLayout

@Deprecated
public Layout getJournalArticleLayout(long groupId,
                                                 boolean privateLayout,
                                                 String friendlyURL)
                               throws PortalException
Deprecated. As of 7.0.0, with no direct replacement

Specified by:
getJournalArticleLayout in interface Portal
Throws:
PortalException

getJsSafePortletId

public String getJsSafePortletId(String portletId)
Specified by:
getJsSafePortletId in interface Portal

getLayoutActualURL

public String getLayoutActualURL(Layout layout)
Specified by:
getLayoutActualURL in interface Portal

getLayoutActualURL

public String getLayoutActualURL(Layout layout,
                                 String mainPath)
Specified by:
getLayoutActualURL in interface Portal

getLayoutActualURL

public String getLayoutActualURL(long groupId,
                                 boolean privateLayout,
                                 String mainPath,
                                 String friendlyURL)
                          throws PortalException
Specified by:
getLayoutActualURL in interface Portal
Throws:
PortalException

getLayoutActualURL

public String getLayoutActualURL(long groupId,
                                 boolean privateLayout,
                                 String mainPath,
                                 String friendlyURL,
                                 Map<String,String[]> params,
                                 Map<String,Object> requestContext)
                          throws PortalException
Specified by:
getLayoutActualURL in interface Portal
Throws:
PortalException

getLayoutFriendlyURL

public String getLayoutFriendlyURL(Layout layout,
                                   ThemeDisplay themeDisplay)
                            throws PortalException
Specified by:
getLayoutFriendlyURL in interface Portal
Throws:
PortalException

getLayoutFriendlyURL

public String getLayoutFriendlyURL(Layout layout,
                                   ThemeDisplay themeDisplay,
                                   Locale locale)
                            throws PortalException
Specified by:
getLayoutFriendlyURL in interface Portal
Throws:
PortalException

getLayoutFriendlyURLComposite

public LayoutFriendlyURLComposite getLayoutFriendlyURLComposite(long groupId,
                                                                boolean privateLayout,
                                                                String friendlyURL,
                                                                Map<String,String[]> params,
                                                                Map<String,Object> requestContext)
                                                         throws PortalException
Specified by:
getLayoutFriendlyURLComposite in interface Portal
Throws:
PortalException

getLayoutFullURL

public String getLayoutFullURL(Layout layout,
                               ThemeDisplay themeDisplay)
                        throws PortalException
Specified by:
getLayoutFullURL in interface Portal
Throws:
PortalException

getLayoutFullURL

public String getLayoutFullURL(Layout layout,
                               ThemeDisplay themeDisplay,
                               boolean doAsUser)
                        throws PortalException
Specified by:
getLayoutFullURL in interface Portal
Throws:
PortalException

getLayoutFullURL

public String getLayoutFullURL(long groupId,
                               String portletId)
                        throws PortalException
Specified by:
getLayoutFullURL in interface Portal
Throws:
PortalException

getLayoutFullURL

public String getLayoutFullURL(long groupId,
                               String portletId,
                               boolean secure)
                        throws PortalException
Specified by:
getLayoutFullURL in interface Portal
Throws:
PortalException

getLayoutFullURL

public String getLayoutFullURL(ThemeDisplay themeDisplay)
                        throws PortalException
Specified by:
getLayoutFullURL in interface Portal
Throws:
PortalException

getLayoutRelativeURL

public String getLayoutRelativeURL(Layout layout,
                                   ThemeDisplay themeDisplay)
                            throws PortalException
Specified by:
getLayoutRelativeURL in interface Portal
Throws:
PortalException

getLayoutRelativeURL

public String getLayoutRelativeURL(Layout layout,
                                   ThemeDisplay themeDisplay,
                                   boolean doAsUser)
                            throws PortalException
Specified by:
getLayoutRelativeURL in interface Portal
Throws:
PortalException

getLayoutSetDisplayURL

public String getLayoutSetDisplayURL(LayoutSet layoutSet,
                                     boolean secureConnection)
                              throws PortalException
Specified by:
getLayoutSetDisplayURL in interface Portal
Throws:
PortalException

getLayoutSetFriendlyURL

public String getLayoutSetFriendlyURL(LayoutSet layoutSet,
                                      ThemeDisplay themeDisplay)
                               throws PortalException
Specified by:
getLayoutSetFriendlyURL in interface Portal
Throws:
PortalException

getLayoutTarget

public String getLayoutTarget(Layout layout)
Specified by:
getLayoutTarget in interface Portal

getLayoutURL

public String getLayoutURL(Layout layout,
                           ThemeDisplay themeDisplay)
                    throws PortalException
Specified by:
getLayoutURL in interface Portal
Throws:
PortalException

getLayoutURL

public String getLayoutURL(Layout layout,
                           ThemeDisplay themeDisplay,
                           boolean doAsUser)
                    throws PortalException
Specified by:
getLayoutURL in interface Portal
Throws:
PortalException

getLayoutURL

public String getLayoutURL(Layout layout,
                           ThemeDisplay themeDisplay,
                           Locale locale)
                    throws PortalException
Specified by:
getLayoutURL in interface Portal
Throws:
PortalException

getLayoutURL

public String getLayoutURL(ThemeDisplay themeDisplay)
                    throws PortalException
Specified by:
getLayoutURL in interface Portal
Throws:
PortalException

getLiferayPortletRequest

public LiferayPortletRequest getLiferayPortletRequest(PortletRequest portletRequest)
Specified by:
getLiferayPortletRequest in interface Portal

getLiferayPortletResponse

public LiferayPortletResponse getLiferayPortletResponse(PortletResponse portletResponse)
Specified by:
getLiferayPortletResponse in interface Portal

getLocale

public Locale getLocale(javax.servlet.http.HttpServletRequest request)
Specified by:
getLocale in interface Portal

getLocale

public Locale getLocale(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response,
                        boolean initialize)
Specified by:
getLocale in interface Portal

getLocale

public Locale getLocale(PortletRequest portletRequest)
Specified by:
getLocale in interface Portal

getLocalizedFriendlyURL

public String getLocalizedFriendlyURL(javax.servlet.http.HttpServletRequest request,
                                      Layout layout,
                                      Locale locale,
                                      Locale originalLocale)
                               throws Exception
Specified by:
getLocalizedFriendlyURL in interface Portal
Throws:
Exception

getMailId

public String getMailId(String mx,
                        String popPortletPrefix,
                        Object... ids)
Specified by:
getMailId in interface Portal

getNetvibesURL

public String getNetvibesURL(Portlet portlet,
                             ThemeDisplay themeDisplay)
                      throws PortalException
Specified by:
getNetvibesURL in interface Portal
Throws:
PortalException

getNewPortletTitle

public String getNewPortletTitle(String portletTitle,
                                 String oldScopeName,
                                 String newScopeName)
Specified by:
getNewPortletTitle in interface Portal

getOriginalServletRequest

public javax.servlet.http.HttpServletRequest getOriginalServletRequest(javax.servlet.http.HttpServletRequest request)
Specified by:
getOriginalServletRequest in interface Portal

getParentGroupId

@Deprecated
public long getParentGroupId(long groupId)
Deprecated. As of 6.2.0 renamed to #getSiteGroupId(groupId)

Specified by:
getParentGroupId in interface Portal

getPathContext

public String getPathContext()
Specified by:
getPathContext in interface Portal

getPathContext

public String getPathContext(javax.servlet.http.HttpServletRequest request)
Specified by:
getPathContext in interface Portal

getPathContext

public String getPathContext(PortletRequest portletRequest)
Specified by:
getPathContext in interface Portal

getPathContext

public String getPathContext(String contextPath)
Specified by:
getPathContext in interface Portal

getPathFriendlyURLPrivateGroup

public String getPathFriendlyURLPrivateGroup()
Specified by:
getPathFriendlyURLPrivateGroup in interface Portal

getPathFriendlyURLPrivateUser

public String getPathFriendlyURLPrivateUser()
Specified by:
getPathFriendlyURLPrivateUser in interface Portal

getPathFriendlyURLPublic

public String getPathFriendlyURLPublic()
Specified by:
getPathFriendlyURLPublic in interface Portal

getPathImage

public String getPathImage()
Specified by:
getPathImage in interface Portal

getPathMain

public String getPathMain()
Specified by:
getPathMain in interface Portal

getPathModule

public String getPathModule()
Specified by:
getPathModule in interface Portal

getPathProxy

public String getPathProxy()
Specified by:
getPathProxy in interface Portal

getPlidFromFriendlyURL

public long getPlidFromFriendlyURL(long companyId,
                                   String friendlyURL)
Specified by:
getPlidFromFriendlyURL in interface Portal

getPlidFromPortletId

public long getPlidFromPortletId(long groupId,
                                 boolean privateLayout,
                                 String portletId)
Specified by:
getPlidFromPortletId in interface Portal

getPlidFromPortletId

public long getPlidFromPortletId(long groupId,
                                 String portletId)
Specified by:
getPlidFromPortletId in interface Portal

getPortalInetSocketAddressEventListeners

public PortalInetSocketAddressEventListener[] getPortalInetSocketAddressEventListeners()
Specified by:
getPortalInetSocketAddressEventListeners in interface Portal

getPortalLibDir

public String getPortalLibDir()
Specified by:
getPortalLibDir in interface Portal

getPortalLocalInetAddress

public InetAddress getPortalLocalInetAddress(boolean secure)
Specified by:
getPortalLocalInetAddress in interface Portal

getPortalLocalPort

public int getPortalLocalPort(boolean secure)
Specified by:
getPortalLocalPort in interface Portal

getPortalPort

@Deprecated
public int getPortalPort()
Deprecated. As of 6.1.0, replaced by getPortalPort(boolean)

Specified by:
getPortalPort in interface Portal

getPortalPort

@Deprecated
public int getPortalPort(boolean secure)
Deprecated. As of 7.0.0, replaced by getPortalServerPort(boolean)

Specified by:
getPortalPort in interface Portal

getPortalProperties

public Properties getPortalProperties()
Specified by:
getPortalProperties in interface Portal

getPortalServerInetAddress

public InetAddress getPortalServerInetAddress(boolean secure)
Specified by:
getPortalServerInetAddress in interface Portal

getPortalServerPort

public int getPortalServerPort(boolean secure)
Specified by:
getPortalServerPort in interface Portal

getPortalURL

public String getPortalURL(javax.servlet.http.HttpServletRequest request)
Specified by:
getPortalURL in interface Portal

getPortalURL

public String getPortalURL(javax.servlet.http.HttpServletRequest request,
                           boolean secure)
Specified by:
getPortalURL in interface Portal

getPortalURL

public String getPortalURL(Layout layout,
                           ThemeDisplay themeDisplay)
                    throws PortalException
Specified by:
getPortalURL in interface Portal
Throws:
PortalException

getPortalURL

public String getPortalURL(PortletRequest portletRequest)
Specified by:
getPortalURL in interface Portal

getPortalURL

public String getPortalURL(PortletRequest portletRequest,
                           boolean secure)
Specified by:
getPortalURL in interface Portal

getPortalURL

public String getPortalURL(String serverName,
                           int serverPort,
                           boolean secure)
Specified by:
getPortalURL in interface Portal

getPortalURL

public String getPortalURL(ThemeDisplay themeDisplay)
                    throws PortalException
Specified by:
getPortalURL in interface Portal
Throws:
PortalException

getPortalWebDir

public String getPortalWebDir()
Specified by:
getPortalWebDir in interface Portal

getPortletAddDefaultResourceCheckWhitelist

@Deprecated
public Set<String> getPortletAddDefaultResourceCheckWhitelist()
Deprecated. As of 6.2.0, replaced by AuthTokenWhitelistUtil.getPortletInvocationWhitelist()

Specified by:
getPortletAddDefaultResourceCheckWhitelist in interface Portal

getPortletAddDefaultResourceCheckWhitelistActions

@Deprecated
public Set<String> getPortletAddDefaultResourceCheckWhitelistActions()
Deprecated. As of 6.2.0, replaced by AuthTokenWhitelistUtil.getPortletInvocationWhitelistActions()

Specified by:
getPortletAddDefaultResourceCheckWhitelistActions in interface Portal

getPortletBreadcrumbList

@Deprecated
public List<BreadcrumbEntry> getPortletBreadcrumbList(javax.servlet.http.HttpServletRequest request)
Deprecated. As of 6.1.0, replaced by getPortletBreadcrumbs(HttpServletRequest)

Specified by:
getPortletBreadcrumbList in interface Portal

getPortletBreadcrumbs

@Deprecated
public List<BreadcrumbEntry> getPortletBreadcrumbs(javax.servlet.http.HttpServletRequest request)
Deprecated. As of 7.0.0, replaced by BreadcrumbUtil.getPortletBreadcrumbEntries( HttpServletRequest)

Specified by:
getPortletBreadcrumbs in interface Portal

getPortletConfig

public PortletConfig getPortletConfig(long companyId,
                                      String portletId,
                                      javax.servlet.ServletContext servletContext)
                               throws PortletException
Specified by:
getPortletConfig in interface Portal
Throws:
PortletException

getPortletDescription

public String getPortletDescription(Portlet portlet,
                                    javax.servlet.ServletContext servletContext,
                                    Locale locale)
Specified by:
getPortletDescription in interface Portal

getPortletDescription

public String getPortletDescription(Portlet portlet,
                                    User user)
Specified by:
getPortletDescription in interface Portal

getPortletDescription

public String getPortletDescription(String portletId,
                                    Locale locale)
Specified by:
getPortletDescription in interface Portal

getPortletDescription

public String getPortletDescription(String portletId,
                                    String languageId)
Specified by:
getPortletDescription in interface Portal

getPortletDescription

public String getPortletDescription(String portletId,
                                    User user)
Specified by:
getPortletDescription in interface Portal

getPortletFriendlyURLMapperLayoutQueryStringComposite

public LayoutQueryStringComposite getPortletFriendlyURLMapperLayoutQueryStringComposite(long groupId,
                                                                                        boolean privateLayout,
                                                                                        String url,
                                                                                        Map<String,String[]> params,
                                                                                        Map<String,Object> requestContext)
                                                                                 throws PortalException
Throws:
PortalException

getPortletId

public String getPortletId(javax.servlet.http.HttpServletRequest request)
Specified by:
getPortletId in interface Portal

getPortletId

public String getPortletId(PortletRequest portletRequest)
Specified by:
getPortletId in interface Portal

getPortletLongTitle

public String getPortletLongTitle(Portlet portlet,
                                  Locale locale)
Specified by:
getPortletLongTitle in interface Portal

getPortletLongTitle

public String getPortletLongTitle(Portlet portlet,
                                  javax.servlet.ServletContext servletContext,
                                  Locale locale)
Specified by:
getPortletLongTitle in interface Portal

getPortletLongTitle

public String getPortletLongTitle(Portlet portlet,
                                  String languageId)
Specified by:
getPortletLongTitle in interface Portal

getPortletLongTitle

public String getPortletLongTitle(Portlet portlet,
                                  User user)
Specified by:
getPortletLongTitle in interface Portal

getPortletLongTitle

public String getPortletLongTitle(String portletId,
                                  Locale locale)
Specified by:
getPortletLongTitle in interface Portal

getPortletLongTitle

public String getPortletLongTitle(String portletId,
                                  String languageId)
Specified by:
getPortletLongTitle in interface Portal

getPortletLongTitle

public String getPortletLongTitle(String portletId,
                                  User user)
Specified by:
getPortletLongTitle in interface Portal

getPortletNamespace

public String getPortletNamespace(String portletId)
Specified by:
getPortletNamespace in interface Portal

getPortletTitle

public String getPortletTitle(Portlet portlet,
                              Locale locale)
Specified by:
getPortletTitle in interface Portal

getPortletTitle

public String getPortletTitle(Portlet portlet,
                              javax.servlet.ServletContext servletContext,
                              Locale locale)
Specified by:
getPortletTitle in interface Portal

getPortletTitle

public String getPortletTitle(Portlet portlet,
                              String languageId)
Specified by:
getPortletTitle in interface Portal

getPortletTitle

public String getPortletTitle(Portlet portlet,
                              User user)
Specified by:
getPortletTitle in interface Portal

getPortletTitle

public String getPortletTitle(PortletRequest portletRequest)
Specified by:
getPortletTitle in interface Portal

getPortletTitle

public String getPortletTitle(PortletResponse portletResponse)
Specified by:
getPortletTitle in interface Portal

getPortletTitle

public String getPortletTitle(String portletId,
                              Locale locale)
Specified by:
getPortletTitle in interface Portal

getPortletTitle

public String getPortletTitle(String portletId,
                              ResourceBundle resourceBundle)
Specified by:
getPortletTitle in interface Portal

getPortletTitle

public String getPortletTitle(String portletId,
                              String languageId)
Specified by:
getPortletTitle in interface Portal

getPortletTitle

public String getPortletTitle(String portletId,
                              User user)
Specified by:
getPortletTitle in interface Portal

getPortletXmlFileName

public String getPortletXmlFileName()
Specified by:
getPortletXmlFileName in interface Portal

getPreferences

public PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest request)
Specified by:
getPreferences in interface Portal

getPreferencesValidator

public PreferencesValidator getPreferencesValidator(Portlet portlet)
Specified by:
getPreferencesValidator in interface Portal

getRelativeHomeURL

public String getRelativeHomeURL(javax.servlet.http.HttpServletRequest request)
                          throws PortalException
Specified by:
getRelativeHomeURL in interface Portal
Throws:
PortalException

getResourceBundle

public ResourceBundle getResourceBundle(Locale locale)
Specified by:
getResourceBundle in interface Portal

getScopeGroupId

public long getScopeGroupId(javax.servlet.http.HttpServletRequest request)
                     throws PortalException
Specified by:
getScopeGroupId in interface Portal
Throws:
PortalException

getScopeGroupId

public long getScopeGroupId(javax.servlet.http.HttpServletRequest request,
                            String portletId)
                     throws PortalException
Specified by:
getScopeGroupId in interface Portal
Throws:
PortalException

getScopeGroupId

public long getScopeGroupId(javax.servlet.http.HttpServletRequest request,
                            String portletId,
                            boolean checkStagingGroup)
                     throws PortalException
Specified by:
getScopeGroupId in interface Portal
Throws:
PortalException

getScopeGroupId

public long getScopeGroupId(Layout layout)
Specified by:
getScopeGroupId in interface Portal

getScopeGroupId

public long getScopeGroupId(Layout layout,
                            String portletId)
Specified by:
getScopeGroupId in interface Portal

getScopeGroupId

public long getScopeGroupId(long plid)
Specified by:
getScopeGroupId in interface Portal

getScopeGroupId

public long getScopeGroupId(PortletRequest portletRequest)
                     throws PortalException
Specified by:
getScopeGroupId in interface Portal
Throws:
PortalException

getSelectedUser

public User getSelectedUser(javax.servlet.http.HttpServletRequest request)
                     throws PortalException
Specified by:
getSelectedUser in interface Portal
Throws:
PortalException

getSelectedUser

public User getSelectedUser(javax.servlet.http.HttpServletRequest request,
                            boolean checkPermission)
                     throws PortalException
Specified by:
getSelectedUser in interface Portal
Throws:
PortalException

getSelectedUser

public User getSelectedUser(PortletRequest portletRequest)
                     throws PortalException
Specified by:
getSelectedUser in interface Portal
Throws:
PortalException

getSelectedUser

public User getSelectedUser(PortletRequest portletRequest,
                            boolean checkPermission)
                     throws PortalException
Specified by:
getSelectedUser in interface Portal
Throws:
PortalException

getServletContextName

public String getServletContextName()
Specified by:
getServletContextName in interface Portal

getSharedContentSiteGroupIds

public long[] getSharedContentSiteGroupIds(long companyId,
                                           long groupId,
                                           long userId)
                                    throws PortalException
Specified by:
getSharedContentSiteGroupIds in interface Portal
Throws:
PortalException

getSiteAdministrationURL

@Deprecated
public PortletURL getSiteAdministrationURL(javax.servlet.http.HttpServletRequest request,
                                                      ThemeDisplay themeDisplay,
                                                      String portletId)
Deprecated. As of 7.0.0, replaced by #getControlPanelPortletURL(PortletRequest, Group, String, String)

Specified by:
getSiteAdministrationURL in interface Portal

getSiteAdministrationURL

@Deprecated
public PortletURL getSiteAdministrationURL(PortletResponse portletResponse,
                                                      ThemeDisplay themeDisplay,
                                                      String portletName)
Deprecated. As of 7.0.0, replaced by #getControlPanelPortletURL(PortletRequest, Group, String, String)

Specified by:
getSiteAdministrationURL in interface Portal

getSiteAndCompanyGroupIds

@Deprecated
public long[] getSiteAndCompanyGroupIds(long groupId)
                                 throws PortalException
Deprecated. As of 7.0.0, replaced by getCurrentAndAncestorSiteGroupIds(long)

Specified by:
getSiteAndCompanyGroupIds in interface Portal
Throws:
PortalException

getSiteAndCompanyGroupIds

@Deprecated
public long[] getSiteAndCompanyGroupIds(ThemeDisplay themeDisplay)
                                 throws PortalException
Deprecated. As of 7.0.0, replaced by getCurrentAndAncestorSiteGroupIds(long)

Specified by:
getSiteAndCompanyGroupIds in interface Portal
Throws:
PortalException

getSiteDefaultLocale

public Locale getSiteDefaultLocale(long groupId)
                            throws PortalException
Specified by:
getSiteDefaultLocale in interface Portal
Throws:
PortalException

getSiteGroupId

public long getSiteGroupId(long groupId)
Specified by:
getSiteGroupId in interface Portal

getSiteLoginURL

public String getSiteLoginURL(ThemeDisplay themeDisplay)
                       throws PortalException
Description copied from interface: Portal
Returns the URL of the login page for the current site if one is available.

Specified by:
getSiteLoginURL in interface Portal
Parameters:
themeDisplay - the theme display for the current page
Returns:
the URL of the login page for the current site, or null if one is not available
Throws:
PortalException

getStaticResourceURL

public String getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
                                   String uri)
Specified by:
getStaticResourceURL in interface Portal

getStaticResourceURL

public String getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
                                   String uri,
                                   long timestamp)
Specified by:
getStaticResourceURL in interface Portal

getStaticResourceURL

public String getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
                                   String uri,
                                   String queryString)
Specified by:
getStaticResourceURL in interface Portal

getStaticResourceURL

public String getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
                                   String uri,
                                   String queryString,
                                   long timestamp)
Specified by:
getStaticResourceURL in interface Portal

getStrutsAction

public String getStrutsAction(javax.servlet.http.HttpServletRequest request)
Specified by:
getStrutsAction in interface Portal

getSystemGroups

public String[] getSystemGroups()
Specified by:
getSystemGroups in interface Portal

getSystemOrganizationRoles

public String[] getSystemOrganizationRoles()
Specified by:
getSystemOrganizationRoles in interface Portal

getSystemRoles

public String[] getSystemRoles()
Specified by:
getSystemRoles in interface Portal

getSystemSiteRoles

public String[] getSystemSiteRoles()
Specified by:
getSystemSiteRoles in interface Portal

getUniqueElementId

public String getUniqueElementId(javax.servlet.http.HttpServletRequest request,
                                 String namespace,
                                 String elementId)
Specified by:
getUniqueElementId in interface Portal

getUniqueElementId

public String getUniqueElementId(PortletRequest request,
                                 String namespace,
                                 String elementId)
Specified by:
getUniqueElementId in interface Portal

getUploadPortletRequest

public UploadPortletRequest getUploadPortletRequest(PortletRequest portletRequest)
Specified by:
getUploadPortletRequest in interface Portal

getUploadServletRequest

public UploadServletRequest getUploadServletRequest(javax.servlet.http.HttpServletRequest request)
Specified by:
getUploadServletRequest in interface Portal

getUptime

public Date getUptime()
Specified by:
getUptime in interface Portal

getURLWithSessionId

public String getURLWithSessionId(String url,
                                  String sessionId)
Specified by:
getURLWithSessionId in interface Portal

getUser

public User getUser(javax.servlet.http.HttpServletRequest request)
             throws PortalException
Specified by:
getUser in interface Portal
Throws:
PortalException

getUser

public User getUser(PortletRequest portletRequest)
             throws PortalException
Specified by:
getUser in interface Portal
Throws:
PortalException

getUserEmailAddress

public String getUserEmailAddress(long userId)
Specified by:
getUserEmailAddress in interface Portal

getUserId

public long getUserId(javax.servlet.http.HttpServletRequest request)
Specified by:
getUserId in interface Portal

getUserId

public long getUserId(PortletRequest portletRequest)
Specified by:
getUserId in interface Portal

getUserName

public String getUserName(BaseModel<?> baseModel)
Specified by:
getUserName in interface Portal

getUserName

public String getUserName(long userId,
                          String defaultUserName)
Specified by:
getUserName in interface Portal

getUserName

public String getUserName(long userId,
                          String defaultUserName,
                          javax.servlet.http.HttpServletRequest request)
Specified by:
getUserName in interface Portal

getUserName

public String getUserName(long userId,
                          String defaultUserName,
                          String userAttribute)
Specified by:
getUserName in interface Portal

getUserName

public String getUserName(long userId,
                          String defaultUserName,
                          String userAttribute,
                          javax.servlet.http.HttpServletRequest request)
Specified by:
getUserName in interface Portal

getUserPassword

public String getUserPassword(javax.servlet.http.HttpServletRequest request)
Specified by:
getUserPassword in interface Portal

getUserPassword

public String getUserPassword(javax.servlet.http.HttpSession session)
Specified by:
getUserPassword in interface Portal

getUserPassword

public String getUserPassword(PortletRequest portletRequest)
Specified by:
getUserPassword in interface Portal

getUserValue

@Deprecated
public String getUserValue(long userId,
                                      String param,
                                      String defaultValue)
Deprecated. As of 7.0.0, with no direct replacement

Specified by:
getUserValue in interface Portal

getValidPortalDomain

public String getValidPortalDomain(long companyId,
                                   String domain)
Specified by:
getValidPortalDomain in interface Portal

getValidUserId

public long getValidUserId(long companyId,
                           long userId)
                    throws PortalException
Specified by:
getValidUserId in interface Portal
Throws:
PortalException

getVirtualHostname

public String getVirtualHostname(LayoutSet layoutSet)
Specified by:
getVirtualHostname in interface Portal

getVirtualLayoutActualURL

@Deprecated
public String getVirtualLayoutActualURL(long groupId,
                                                   boolean privateLayout,
                                                   String mainPath,
                                                   String friendlyURL,
                                                   Map<String,String[]> params,
                                                   Map<String,Object> requestContext)
                                 throws PortalException
Deprecated. As of 7.0.0, with no direct replacement

Specified by:
getVirtualLayoutActualURL in interface Portal
Throws:
PortalException

getVirtualLayoutFriendlyURLComposite

@Deprecated
public LayoutFriendlyURLComposite getVirtualLayoutFriendlyURLComposite(boolean privateLayout,
                                                                                  String friendlyURL,
                                                                                  Map<String,String[]> params,
                                                                                  Map<String,Object> requestContext)
                                                                throws PortalException
Deprecated. As of 7.0.0, with no direct replacement

Specified by:
getVirtualLayoutFriendlyURLComposite in interface Portal
Throws:
PortalException

getWidgetURL

public String getWidgetURL(Portlet portlet,
                           ThemeDisplay themeDisplay)
                    throws PortalException
Specified by:
getWidgetURL in interface Portal
Throws:
PortalException

initCustomSQL

public void initCustomSQL()
Specified by:
initCustomSQL in interface Portal

initUser

public User initUser(javax.servlet.http.HttpServletRequest request)
              throws Exception
Specified by:
initUser in interface Portal
Throws:
Exception

invokeTaglibDiscussion

@Deprecated
public void invokeTaglibDiscussion(PortletConfig portletConfig,
                                              ActionRequest actionRequest,
                                              ActionResponse actionResponse)
                            throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Specified by:
invokeTaglibDiscussion in interface Portal
Throws:
Exception

invokeTaglibDiscussionPagination

@Deprecated
public void invokeTaglibDiscussionPagination(PortletConfig portletConfig,
                                                        ResourceRequest resourceRequest,
                                                        ResourceResponse resourceResponse)
                                      throws IOException,
                                             PortletException
Deprecated. As of 7.0.0, with no direct replacement

Specified by:
invokeTaglibDiscussionPagination in interface Portal
Throws:
IOException
PortletException

isAllowAddPortletDefaultResource

@Deprecated
public boolean isAllowAddPortletDefaultResource(javax.servlet.http.HttpServletRequest request,
                                                           Portlet portlet)
                                         throws PortalException
Deprecated. As of 6.2.0, with no direct replacement

Specified by:
isAllowAddPortletDefaultResource in interface Portal
Throws:
PortalException

isCDNDynamicResourcesEnabled

public boolean isCDNDynamicResourcesEnabled(javax.servlet.http.HttpServletRequest request)
                                     throws PortalException
Specified by:
isCDNDynamicResourcesEnabled in interface Portal
Throws:
PortalException

isCDNDynamicResourcesEnabled

public boolean isCDNDynamicResourcesEnabled(long companyId)
Specified by:
isCDNDynamicResourcesEnabled in interface Portal

isCommunityAdmin

@Deprecated
public boolean isCommunityAdmin(User user,
                                           long groupId)
                         throws Exception
Deprecated. As of 6.1.0, renamed to isGroupAdmin(User, long)

Specified by:
isCommunityAdmin in interface Portal
Throws:
Exception

isCommunityOwner

@Deprecated
public boolean isCommunityOwner(User user,
                                           long groupId)
                         throws Exception
Deprecated. As of 6.1.0, renamed to isGroupOwner(User, long)

Specified by:
isCommunityOwner in interface Portal
Throws:
Exception

isCompanyAdmin

public boolean isCompanyAdmin(User user)
                       throws Exception
Specified by:
isCompanyAdmin in interface Portal
Throws:
Exception

isCompanyControlPanelPortlet

public boolean isCompanyControlPanelPortlet(String portletId,
                                            String category,
                                            ThemeDisplay themeDisplay)
                                     throws PortalException
Specified by:
isCompanyControlPanelPortlet in interface Portal
Throws:
PortalException

isCompanyControlPanelPortlet

public boolean isCompanyControlPanelPortlet(String portletId,
                                            ThemeDisplay themeDisplay)
                                     throws PortalException
Specified by:
isCompanyControlPanelPortlet in interface Portal
Throws:
PortalException

isControlPanelPortlet

public boolean isControlPanelPortlet(String portletId,
                                     String category,
                                     ThemeDisplay themeDisplay)
Specified by:
isControlPanelPortlet in interface Portal

isControlPanelPortlet

public boolean isControlPanelPortlet(String portletId,
                                     ThemeDisplay themeDisplay)
Specified by:
isControlPanelPortlet in interface Portal

isGroupAdmin

public boolean isGroupAdmin(User user,
                            long groupId)
                     throws Exception
Specified by:
isGroupAdmin in interface Portal
Throws:
Exception

isGroupFriendlyURL

public boolean isGroupFriendlyURL(String fullURL,
                                  String groupFriendlyURL,
                                  String layoutFriendlyURL)
Specified by:
isGroupFriendlyURL in interface Portal

isGroupOwner

public boolean isGroupOwner(User user,
                            long groupId)
                     throws Exception
Specified by:
isGroupOwner in interface Portal
Throws:
Exception

isLayoutDescendant

public boolean isLayoutDescendant(Layout layout,
                                  long layoutId)
                           throws PortalException
Specified by:
isLayoutDescendant in interface Portal
Throws:
PortalException

isLayoutSitemapable

public boolean isLayoutSitemapable(Layout layout)
Specified by:
isLayoutSitemapable in interface Portal

isLoginRedirectRequired

public boolean isLoginRedirectRequired(javax.servlet.http.HttpServletRequest request)
Specified by:
isLoginRedirectRequired in interface Portal

isMethodGet

public boolean isMethodGet(PortletRequest portletRequest)
Specified by:
isMethodGet in interface Portal

isMethodPost

public boolean isMethodPost(PortletRequest portletRequest)
Specified by:
isMethodPost in interface Portal

isMultipartRequest

public boolean isMultipartRequest(javax.servlet.http.HttpServletRequest request)
Specified by:
isMultipartRequest in interface Portal

isOmniadmin

public boolean isOmniadmin(long userId)
Specified by:
isOmniadmin in interface Portal

isOmniadmin

public boolean isOmniadmin(User user)
Specified by:
isOmniadmin in interface Portal

isReservedParameter

public boolean isReservedParameter(String name)
Specified by:
isReservedParameter in interface Portal

isRightToLeft

public boolean isRightToLeft(javax.servlet.http.HttpServletRequest request)
Specified by:
isRightToLeft in interface Portal

isRSSFeedsEnabled

public boolean isRSSFeedsEnabled()
Specified by:
isRSSFeedsEnabled in interface Portal

isSecure

public boolean isSecure(javax.servlet.http.HttpServletRequest request)
Specified by:
isSecure in interface Portal

isSystemGroup

public boolean isSystemGroup(String groupName)
Specified by:
isSystemGroup in interface Portal

isSystemRole

public boolean isSystemRole(String roleName)
Specified by:
isSystemRole in interface Portal

isUpdateAvailable

public boolean isUpdateAvailable()
Specified by:
isUpdateAvailable in interface Portal

isValidResourceId

public boolean isValidResourceId(String resourceId)
Specified by:
isValidResourceId in interface Portal

removePortalInetSocketAddressEventListener

public boolean removePortalInetSocketAddressEventListener(PortalInetSocketAddressEventListener portalInetSocketAddressEventListener)
Specified by:
removePortalInetSocketAddressEventListener in interface Portal

removePortalPortEventListener

@Deprecated
public void removePortalPortEventListener(PortalPortEventListener portalPortEventListener)
Deprecated. As of 7.0.0, replaced by removePortalInetSocketAddressEventListener( PortalInetSocketAddressEventListener)

Specified by:
removePortalPortEventListener in interface Portal

resetCDNHosts

public void resetCDNHosts()
Specified by:
resetCDNHosts in interface Portal

resetPortletAddDefaultResourceCheckWhitelist

@Deprecated
public Set<String> resetPortletAddDefaultResourceCheckWhitelist()
Deprecated. As of 6.2.0, replaced by AuthTokenWhitelistUtil.resetPortletInvocationWhitelist()

Specified by:
resetPortletAddDefaultResourceCheckWhitelist in interface Portal

resetPortletAddDefaultResourceCheckWhitelistActions

@Deprecated
public Set<String> resetPortletAddDefaultResourceCheckWhitelistActions()
Deprecated. As of 6.2.0, replaced by AuthTokenWhitelistUtil.resetPortletInvocationWhitelistActions()

Specified by:
resetPortletAddDefaultResourceCheckWhitelistActions in interface Portal

resetPortletParameters

public String resetPortletParameters(String url,
                                     String portletId)
Specified by:
resetPortletParameters in interface Portal

sendError

public void sendError(Exception e,
                      ActionRequest actionRequest,
                      ActionResponse actionResponse)
               throws IOException
Specified by:
sendError in interface Portal
Throws:
IOException

sendError

public void sendError(Exception e,
                      javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws IOException,
                      javax.servlet.ServletException
Specified by:
sendError in interface Portal
Throws:
IOException
javax.servlet.ServletException

sendError

public void sendError(int status,
                      Exception e,
                      ActionRequest actionRequest,
                      ActionResponse actionResponse)
               throws IOException
Specified by:
sendError in interface Portal
Throws:
IOException

sendError

public void sendError(int status,
                      Exception e,
                      javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws IOException,
                      javax.servlet.ServletException
Specified by:
sendError in interface Portal
Throws:
IOException
javax.servlet.ServletException

sendRSSFeedsDisabledError

public void sendRSSFeedsDisabledError(javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response)
                               throws IOException,
                                      javax.servlet.ServletException
Specified by:
sendRSSFeedsDisabledError in interface Portal
Throws:
IOException
javax.servlet.ServletException

sendRSSFeedsDisabledError

public void sendRSSFeedsDisabledError(PortletRequest portletRequest,
                                      PortletResponse portletResponse)
                               throws IOException,
                                      javax.servlet.ServletException
Specified by:
sendRSSFeedsDisabledError in interface Portal
Throws:
IOException
javax.servlet.ServletException

setPageDescription

public void setPageDescription(String description,
                               javax.servlet.http.HttpServletRequest request)
Description copied from interface: Portal
Sets the description for the page, overriding the existing page description.

Specified by:
setPageDescription in interface Portal

setPageKeywords

public void setPageKeywords(String keywords,
                            javax.servlet.http.HttpServletRequest request)
Description copied from interface: Portal
Sets the keywords for the page, overriding the existing page keywords.

Specified by:
setPageKeywords in interface Portal

setPageSubtitle

public void setPageSubtitle(String subtitle,
                            javax.servlet.http.HttpServletRequest request)
Description copied from interface: Portal
Sets the subtitle for the page, overriding the existing page subtitle.

Specified by:
setPageSubtitle in interface Portal

setPageTitle

public void setPageTitle(String title,
                         javax.servlet.http.HttpServletRequest request)
Description copied from interface: Portal
Sets the whole title for the page, overriding the existing page whole title.

Specified by:
setPageTitle in interface Portal

setPortalInetSocketAddresses

public void setPortalInetSocketAddresses(javax.servlet.http.HttpServletRequest request)
Specified by:
setPortalInetSocketAddresses in interface Portal

setPortalPort

@Deprecated
public void setPortalPort(javax.servlet.http.HttpServletRequest request)
Deprecated. As of 7.0.0, replaced by setPortalInetSocketAddresses(HttpServletRequest)

Sets the port obtained on the first request to the portal.

Specified by:
setPortalPort in interface Portal

storePreferences

public void storePreferences(PortletPreferences portletPreferences)
                      throws IOException,
                             ValidatorException
Specified by:
storePreferences in interface Portal
Throws:
IOException
ValidatorException

stripURLAnchor

public String[] stripURLAnchor(String url,
                               String separator)
Specified by:
stripURLAnchor in interface Portal

transformCustomSQL

public String transformCustomSQL(String sql)
Specified by:
transformCustomSQL in interface Portal

transformSQL

public String transformSQL(String sql)
Specified by:
transformSQL in interface Portal

updateImageId

public void updateImageId(BaseModel<?> baseModel,
                          boolean hasImage,
                          byte[] bytes,
                          String fieldName,
                          long maxSize,
                          int maxHeight,
                          int maxWidth)
                   throws PortalException
Specified by:
updateImageId in interface Portal
Throws:
PortalException

updatePortletMode

public PortletMode updatePortletMode(String portletId,
                                     User user,
                                     Layout layout,
                                     PortletMode portletMode,
                                     javax.servlet.http.HttpServletRequest request)
                              throws PortalException
Specified by:
updatePortletMode in interface Portal
Throws:
PortalException

updateRedirect

public String updateRedirect(String redirect,
                             String oldPath,
                             String newPath)
Specified by:
updateRedirect in interface Portal

updateWindowState

public WindowState updateWindowState(String portletId,
                                     User user,
                                     Layout layout,
                                     WindowState windowState,
                                     javax.servlet.http.HttpServletRequest request)
Specified by:
updateWindowState in interface Portal

addDefaultResource

protected void addDefaultResource(long companyId,
                                  Layout layout,
                                  Portlet portlet,
                                  boolean portletActions)
                           throws PortalException
Throws:
PortalException

addDefaultResource

protected void addDefaultResource(long companyId,
                                  long groupId,
                                  Layout layout,
                                  Portlet portlet,
                                  boolean portletActions)
                           throws PortalException
Throws:
PortalException

buildI18NPath

protected String buildI18NPath(Locale locale)

doGetAncestorSiteGroups

protected Set<Group> doGetAncestorSiteGroups(long groupId,
                                             boolean checkContentSharingWithChildrenEnabled)
                                      throws PortalException
Throws:
PortalException

doGetCurrentSiteGroup

protected Group doGetCurrentSiteGroup(long groupId)
                               throws PortalException
Throws:
PortalException

doGetPlidFromPortletId

protected long doGetPlidFromPortletId(long groupId,
                                      boolean privateLayout,
                                      String portletId)

filterControlPanelPortlets

protected List<Portlet> filterControlPanelPortlets(Set<Portlet> portlets,
                                                   ThemeDisplay themeDisplay)

getAvailableLocale

protected Locale getAvailableLocale(long groupId,
                                    Locale locale)

getBrowsableLayout

protected Layout getBrowsableLayout(Layout layout)

getCanonicalDomain

protected String getCanonicalDomain(String virtualHostname,
                                    String portalDomain)

getContextPath

protected String getContextPath(String contextPath)

getControlPanelDisplayGroup

protected Group getControlPanelDisplayGroup(long companyId,
                                            long scopeGroupId,
                                            long doAsGroupId,
                                            String portletId)

getDoAsUserId

protected long getDoAsUserId(javax.servlet.http.HttpServletRequest request,
                             String doAsUserIdString,
                             boolean alwaysAllowDoAsUser)
                      throws Exception
Throws:
Exception

getGroupFriendlyURL

protected String getGroupFriendlyURL(LayoutSet layoutSet,
                                     ThemeDisplay themeDisplay,
                                     boolean canonicalURL)
                              throws PortalException
Throws:
PortalException

getGroupPermissions

protected String[] getGroupPermissions(String[] groupPermissions,
                                       String className,
                                       String inputPermissionsShowOptions)

getGuestPermissions

protected String[] getGuestPermissions(String[] guestPermissions,
                                       String className,
                                       String inputPermissionsShowOptions)

getPortletParam

protected String getPortletParam(javax.servlet.http.HttpServletRequest request,
                                 String name)

getServletURL

protected String getServletURL(Portlet portlet,
                               String servletPath,
                               ThemeDisplay themeDisplay)
                        throws PortalException
Throws:
PortalException

isAlwaysAllowDoAsUser

protected boolean isAlwaysAllowDoAsUser(javax.servlet.http.HttpServletRequest request)
                                 throws Exception
Throws:
Exception

isAlwaysAllowDoAsUser

protected boolean isAlwaysAllowDoAsUser(String actionName,
                                        String mvcRenderCommandName,
                                        String path,
                                        String strutsAction)

isPanelSelectedPortlet

@Deprecated
protected boolean isPanelSelectedPortlet(ThemeDisplay themeDisplay,
                                                    String portletId)
Deprecated. As of 6.2.0, with no direct replacement


isValidPortalDomain

protected boolean isValidPortalDomain(long companyId,
                                      String domain)

isValidPortalDomain

protected boolean isValidPortalDomain(String domain)

isValidVirtualHostname

protected boolean isValidVirtualHostname(String virtualHostname)

notifyPortalInetSocketAddressEventListeners

protected void notifyPortalInetSocketAddressEventListeners(InetSocketAddress inetSocketAddress,
                                                           boolean local,
                                                           boolean secure)

notifyPortalPortEventListeners

@Deprecated
protected void notifyPortalPortEventListeners(int portalPort)
Deprecated. As of 7.0.0, replaced by notifyPortalInetSocketAddressEventListeners( InetSocketAddress, boolean, boolean)


removeRedirectParameter

protected String removeRedirectParameter(String url)

resetThemeDisplayI18n

protected void resetThemeDisplayI18n(ThemeDisplay themeDisplay,
                                     String languageId,
                                     String path,
                                     Locale locale)

setLocale

protected void setLocale(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         Locale locale)

setThemeDisplayI18n

protected void setThemeDisplayI18n(ThemeDisplay themeDisplay,
                                   Locale locale)

Liferay 7.0-ce-b4