|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.util.PortalUtil
public class PortalUtil
Constructor Summary | |
---|---|
PortalUtil()
|
Method Summary | |
---|---|
static void |
addPageDescription(String description,
javax.servlet.http.HttpServletRequest request)
Adds the description for a page. |
static void |
addPageKeywords(String keywords,
javax.servlet.http.HttpServletRequest request)
Adds the keywords for a page. |
static void |
addPageSubtitle(String subtitle,
javax.servlet.http.HttpServletRequest request)
Adds the subtitle for a page. |
static void |
addPageTitle(String title,
javax.servlet.http.HttpServletRequest request)
Adds the whole title for a page. |
static void |
addPortalPortEventListener(PortalPortEventListener portalPortEventListener)
|
static void |
addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request,
String title,
String url)
|
static void |
addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request,
String title,
String url,
Map<String,Object> data)
|
static void |
addPortletDefaultResource(javax.servlet.http.HttpServletRequest request,
Portlet portlet)
|
static void |
addPortletDefaultResource(long companyId,
Layout layout,
Portlet portlet)
|
static String |
addPreservedParameters(ThemeDisplay themeDisplay,
Layout layout,
String url,
boolean doAsUser)
Adds preserved parameters such as doAsGroupId, doAsUserId, doAsUserLanguageId, and referrerPlid that should always be preserved as the user navigates through the portal. |
static String |
addPreservedParameters(ThemeDisplay themeDisplay,
String url)
Adds preserved parameters such as doAsGroupId, doAsUserId, doAsUserLanguageId, and referrerPlid that should always be preserved as the user navigates through the portal. |
static void |
clearRequestParameters(RenderRequest renderRequest)
|
static void |
copyRequestParameters(ActionRequest actionRequest,
ActionResponse actionResponse)
|
static String |
escapeRedirect(String url)
|
static String |
generateRandomKey(javax.servlet.http.HttpServletRequest request,
String input)
|
static String |
getActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
|
static Locale[] |
getAlternateLocales(javax.servlet.http.HttpServletRequest request)
|
static String |
getAlternateURL(javax.servlet.http.HttpServletRequest request,
String canonicalURL,
Locale locale)
Deprecated. getAlternateURL(String, ThemeDisplay, Locale) |
static String |
getAlternateURL(String canonicalURL,
ThemeDisplay themeDisplay,
Locale locale)
|
static Set<String> |
getAuthTokenIgnoreActions()
|
static Set<String> |
getAuthTokenIgnorePortlets()
|
static BaseModel<?> |
getBaseModel(Resource resource)
|
static BaseModel<?> |
getBaseModel(ResourcePermission resourcePermission)
|
static BaseModel<?> |
getBaseModel(String modelName,
String primKey)
|
static long |
getBasicAuthUserId(javax.servlet.http.HttpServletRequest request)
|
static long |
getBasicAuthUserId(javax.servlet.http.HttpServletRequest request,
long companyId)
|
static String |
getCanonicalURL(String completeURL,
ThemeDisplay themeDisplay)
Deprecated. getCanonicalURL(String, ThemeDisplay, Layout) |
static String |
getCanonicalURL(String completeURL,
ThemeDisplay themeDisplay,
Layout layout)
|
static String |
getCanonicalURL(String completeURL,
ThemeDisplay themeDisplay,
Layout layout,
boolean forceLayoutFriendlyURL)
|
static String |
getCDNHost()
Deprecated. getCDNHost(boolean) |
static String |
getCDNHost(boolean secure)
|
static String |
getCDNHost(javax.servlet.http.HttpServletRequest request)
|
static String |
getCDNHostHttp(long companyId)
|
static String |
getCDNHostHttps(long companyId)
|
static String |
getClassName(long classNameId)
|
static long |
getClassNameId(Class<?> clazz)
|
static long |
getClassNameId(String value)
|
static String |
getClassNamePortletId(String className)
|
static Company |
getCompany(javax.servlet.http.HttpServletRequest request)
|
static Company |
getCompany(PortletRequest portletRequest)
|
static long |
getCompanyId(javax.servlet.http.HttpServletRequest request)
|
static long |
getCompanyId(PortletRequest portletRequest)
|
static long[] |
getCompanyIds()
|
static String |
getComputerAddress()
|
static String |
getComputerName()
|
static String |
getControlPanelCategory(String portletId,
ThemeDisplay themeDisplay)
|
static String |
getControlPanelFullURL(long scopeGroupId,
String ppid,
Map<String,String[]> params)
|
static Set<Portlet> |
getControlPanelPortlets(long companyId,
String category)
|
static List<Portlet> |
getControlPanelPortlets(String category,
ThemeDisplay themeDisplay)
|
static String |
getCreateAccountURL(javax.servlet.http.HttpServletRequest request,
ThemeDisplay themeDisplay)
|
static String |
getCurrentCompleteURL(javax.servlet.http.HttpServletRequest request)
|
static String |
getCurrentURL(javax.servlet.http.HttpServletRequest request)
|
static String |
getCurrentURL(PortletRequest portletRequest)
|
static String |
getCustomSQLFunctionIsNotNull()
|
static String |
getCustomSQLFunctionIsNull()
|
static Date |
getDate(int month,
int day,
int year)
|
static Date |
getDate(int month,
int day,
int year,
Class<? extends PortalException> clazz)
|
static Date |
getDate(int month,
int day,
int year,
int hour,
int min,
Class<? extends PortalException> clazz)
|
static Date |
getDate(int month,
int day,
int year,
int hour,
int min,
PortalException pe)
Deprecated. getDate(int, int, int, int, int, Class) |
static Date |
getDate(int month,
int day,
int year,
int hour,
int min,
TimeZone timeZone,
Class<? extends PortalException> clazz)
|
static Date |
getDate(int month,
int day,
int year,
int hour,
int min,
TimeZone timeZone,
PortalException pe)
Deprecated. getDate(int, int, int, int, int, TimeZone, Class) |
static Date |
getDate(int month,
int day,
int year,
PortalException pe)
Deprecated. getDate(int, int, int, Class) |
static Date |
getDate(int month,
int day,
int year,
TimeZone timeZone,
Class<? extends PortalException> clazz)
|
static Date |
getDate(int month,
int day,
int year,
TimeZone timeZone,
PortalException pe)
Deprecated. getDate(int, int, int, TimeZone, Class) |
static DB |
getDB()
Deprecated. DBFactoryUtil.getDB() |
static long |
getDefaultCompanyId()
|
static long |
getDigestAuthUserId(javax.servlet.http.HttpServletRequest request)
|
static String |
getEmailFromAddress(PortletPreferences preferences,
long companyId,
String defaultValue)
|
static String |
getEmailFromName(PortletPreferences preferences,
long companyId,
String defaultValue)
|
static Map<String,Serializable> |
getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
PortletRequest portletRequest)
|
static Map<String,Serializable> |
getExpandoBridgeAttributes(ExpandoBridge expandoBridge,
UploadPortletRequest uploadPortletRequest)
|
static Serializable |
getExpandoValue(PortletRequest portletRequest,
String name,
int type,
String displayType)
|
static Serializable |
getExpandoValue(UploadPortletRequest uploadPortletRequest,
String name,
int type,
String displayType)
|
static String |
getFacebookURL(Portlet portlet,
String facebookCanvasPageURL,
ThemeDisplay themeDisplay)
|
static String |
getFirstPageLayoutTypes(javax.servlet.jsp.PageContext pageContext)
|
static String |
getGlobalLibDir()
|
static String |
getGoogleGadgetURL(Portlet portlet,
ThemeDisplay themeDisplay)
|
static String |
getGroupFriendlyURL(Group group,
boolean privateLayoutSet,
ThemeDisplay themeDisplay)
|
static String |
getGroupFriendlyURL(Group group,
boolean privateLayoutSet,
ThemeDisplay themeDisplay,
Locale locale)
|
static String[] |
getGroupPermissions(javax.servlet.http.HttpServletRequest request)
|
static String[] |
getGroupPermissions(javax.servlet.http.HttpServletRequest request,
String className)
|
static String[] |
getGroupPermissions(PortletRequest portletRequest)
|
static String[] |
getGroupPermissions(PortletRequest portletRequest,
String className)
|
static String[] |
getGuestPermissions(javax.servlet.http.HttpServletRequest request)
|
static String[] |
getGuestPermissions(javax.servlet.http.HttpServletRequest request,
String className)
|
static String[] |
getGuestPermissions(PortletRequest portletRequest)
|
static String[] |
getGuestPermissions(PortletRequest portletRequest,
String className)
|
static String |
getHomeURL(javax.servlet.http.HttpServletRequest request)
|
static String |
getHost(javax.servlet.http.HttpServletRequest request)
|
static String |
getHost(PortletRequest portletRequest)
|
static javax.servlet.http.HttpServletRequest |
getHttpServletRequest(PortletRequest portletRequest)
|
static javax.servlet.http.HttpServletResponse |
getHttpServletResponse(PortletResponse portletResponse)
|
static String |
getJournalArticleActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
|
static String |
getJsSafePortletId(String portletId)
|
static String |
getLayoutActualURL(Layout layout)
|
static String |
getLayoutActualURL(Layout layout,
String mainPath)
|
static String |
getLayoutActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL)
|
static String |
getLayoutActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
|
static String |
getLayoutEditPage(Layout layout)
|
static String |
getLayoutEditPage(String type)
|
static String |
getLayoutFriendlyURL(Layout layout,
ThemeDisplay themeDisplay)
|
static String |
getLayoutFriendlyURL(Layout layout,
ThemeDisplay themeDisplay,
Locale locale)
|
static String |
getLayoutFullURL(Layout layout,
ThemeDisplay themeDisplay)
|
static String |
getLayoutFullURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser)
|
static String |
getLayoutFullURL(long groupId,
String portletId)
|
static String |
getLayoutFullURL(long groupId,
String portletId,
boolean secure)
|
static String |
getLayoutFullURL(ThemeDisplay themeDisplay)
|
static String |
getLayoutSetFriendlyURL(LayoutSet layoutSet,
ThemeDisplay themeDisplay)
|
static String |
getLayoutTarget(Layout layout)
|
static String |
getLayoutURL(Layout layout,
ThemeDisplay themeDisplay)
|
static String |
getLayoutURL(Layout layout,
ThemeDisplay themeDisplay,
boolean doAsUser)
|
static String |
getLayoutURL(ThemeDisplay themeDisplay)
|
static String |
getLayoutViewPage(Layout layout)
|
static String |
getLayoutViewPage(String type)
|
static LiferayPortletRequest |
getLiferayPortletRequest(PortletRequest portletRequest)
|
static LiferayPortletResponse |
getLiferayPortletResponse(PortletResponse portletResponse)
|
static Locale |
getLocale(javax.servlet.http.HttpServletRequest request)
|
static Locale |
getLocale(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean initialize)
|
static Locale |
getLocale(RenderRequest renderRequest)
|
static String |
getMailId(String mx,
String popPortletPrefix,
Object... ids)
|
static BaseModel<?> |
getModel(Resource resource)
Deprecated. getBaseModel(Resource) |
static BaseModel<?> |
getModel(ResourcePermission resourcePermission)
Deprecated. getBaseModel(ResourcePermission) |
static BaseModel<?> |
getModel(String modelName,
String primKey)
Deprecated. getBaseModel(String, String) |
static String |
getNetvibesURL(Portlet portlet,
ThemeDisplay themeDisplay)
|
static String |
getNewPortletTitle(String portletTitle,
String oldScopeName,
String newScopeName)
|
static javax.servlet.http.HttpServletRequest |
getOriginalServletRequest(javax.servlet.http.HttpServletRequest request)
|
static long |
getParentGroupId(long scopeGroupId)
|
static String |
getPathContext()
|
static String |
getPathFriendlyURLPrivateGroup()
|
static String |
getPathFriendlyURLPrivateUser()
|
static String |
getPathFriendlyURLPublic()
|
static String |
getPathImage()
|
static String |
getPathMain()
|
static String |
getPathProxy()
|
static long |
getPlidFromFriendlyURL(long companyId,
String friendlyURL)
|
static long |
getPlidFromPortletId(long groupId,
boolean privateLayout,
String portletId)
|
static long |
getPlidFromPortletId(long groupId,
String portletId)
|
static Portal |
getPortal()
|
static String |
getPortalLibDir()
|
static int |
getPortalPort()
Deprecated. getPortalPort(boolean) |
static int |
getPortalPort(boolean secure)
|
static Properties |
getPortalProperties()
|
static String |
getPortalURL(javax.servlet.http.HttpServletRequest request)
|
static String |
getPortalURL(javax.servlet.http.HttpServletRequest request,
boolean secure)
|
static String |
getPortalURL(Layout layout,
ThemeDisplay themeDisplay)
|
static String |
getPortalURL(PortletRequest portletRequest)
|
static String |
getPortalURL(PortletRequest portletRequest,
boolean secure)
|
static String |
getPortalURL(String serverName,
int serverPort,
boolean secure)
|
static String |
getPortalURL(ThemeDisplay themeDisplay)
|
static String |
getPortalWebDir()
|
static Set<String> |
getPortletAddDefaultResourceCheckWhitelist()
|
static Set<String> |
getPortletAddDefaultResourceCheckWhitelistActions()
|
static List<BreadcrumbEntry> |
getPortletBreadcrumbList(javax.servlet.http.HttpServletRequest request)
Deprecated. getPortletBreadcrumbs(HttpServletRequest) |
static List<BreadcrumbEntry> |
getPortletBreadcrumbs(javax.servlet.http.HttpServletRequest request)
|
static String |
getPortletDescription(Portlet portlet,
javax.servlet.ServletContext servletContext,
Locale locale)
|
static String |
getPortletDescription(Portlet portlet,
User user)
|
static String |
getPortletDescription(String portletId,
Locale locale)
|
static String |
getPortletDescription(String portletId,
String languageId)
|
static String |
getPortletDescription(String portletId,
User user)
|
static String |
getPortletId(javax.servlet.http.HttpServletRequest request)
|
static String |
getPortletId(PortletRequest portletRequest)
|
static String |
getPortletLongTitle(Portlet portlet,
Locale locale)
|
static String |
getPortletLongTitle(Portlet portlet,
javax.servlet.ServletContext servletContext,
Locale locale)
|
static String |
getPortletLongTitle(Portlet portlet,
String languageId)
|
static String |
getPortletLongTitle(Portlet portlet,
User user)
|
static String |
getPortletLongTitle(String portletId,
Locale locale)
|
static String |
getPortletLongTitle(String portletId,
String languageId)
|
static String |
getPortletLongTitle(String portletId,
User user)
|
static String |
getPortletNamespace(String portletId)
|
static String |
getPortletTitle(Portlet portlet,
Locale locale)
|
static String |
getPortletTitle(Portlet portlet,
javax.servlet.ServletContext servletContext,
Locale locale)
|
static String |
getPortletTitle(Portlet portlet,
String languageId)
|
static String |
getPortletTitle(Portlet portlet,
User user)
|
static String |
getPortletTitle(RenderResponse renderResponse)
|
static String |
getPortletTitle(String portletId,
Locale locale)
|
static String |
getPortletTitle(String portletId,
String languageId)
|
static String |
getPortletTitle(String portletId,
User user)
|
static String |
getPortletXmlFileName()
|
static PortletPreferences |
getPreferences(javax.servlet.http.HttpServletRequest request)
|
static PreferencesValidator |
getPreferencesValidator(Portlet portlet)
|
static String |
getRelativeHomeURL(javax.servlet.http.HttpServletRequest request)
|
static long |
getScopeGroupId(javax.servlet.http.HttpServletRequest request)
|
static long |
getScopeGroupId(javax.servlet.http.HttpServletRequest request,
String portletId)
|
static long |
getScopeGroupId(javax.servlet.http.HttpServletRequest request,
String portletId,
boolean checkStagingGroup)
|
static long |
getScopeGroupId(Layout layout)
|
static long |
getScopeGroupId(Layout layout,
String portletId)
|
static long |
getScopeGroupId(long plid)
|
static long |
getScopeGroupId(PortletRequest portletRequest)
|
static User |
getSelectedUser(javax.servlet.http.HttpServletRequest request)
|
static User |
getSelectedUser(javax.servlet.http.HttpServletRequest request,
boolean checkPermission)
|
static User |
getSelectedUser(PortletRequest portletRequest)
|
static User |
getSelectedUser(PortletRequest portletRequest,
boolean checkPermission)
|
static javax.servlet.ServletContext |
getServletContext(Portlet portlet,
javax.servlet.ServletContext servletContext)
|
static String |
getSiteLoginURL(ThemeDisplay themeDisplay)
|
static String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
String uri)
|
static String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
String uri,
long timestamp)
|
static String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
String uri,
String queryString)
|
static String |
getStaticResourceURL(javax.servlet.http.HttpServletRequest request,
String uri,
String queryString,
long timestamp)
|
static String |
getStrutsAction(javax.servlet.http.HttpServletRequest request)
|
static String[] |
getSystemGroups()
|
static String[] |
getSystemOrganizationRoles()
|
static String[] |
getSystemRoles()
|
static String[] |
getSystemSiteRoles()
|
static String |
getUniqueElementId(javax.servlet.http.HttpServletRequest request,
String namespace,
String id)
|
static String |
getUniqueElementId(PortletRequest request,
String namespace,
String id)
|
static UploadPortletRequest |
getUploadPortletRequest(PortletRequest portletRequest)
|
static UploadServletRequest |
getUploadServletRequest(javax.servlet.http.HttpServletRequest request)
|
static Date |
getUptime()
|
static String |
getURLWithSessionId(String url,
String sessionId)
|
static User |
getUser(javax.servlet.http.HttpServletRequest request)
|
static User |
getUser(PortletRequest portletRequest)
|
static String |
getUserEmailAddress(long userId)
|
static long |
getUserId(javax.servlet.http.HttpServletRequest request)
|
static long |
getUserId(PortletRequest portletRequest)
|
static String |
getUserName(BaseModel<?> baseModel)
|
static String |
getUserName(long userId,
String defaultUserName)
|
static String |
getUserName(long userId,
String defaultUserName,
javax.servlet.http.HttpServletRequest request)
|
static String |
getUserName(long userId,
String defaultUserName,
String userAttribute)
|
static String |
getUserName(long userId,
String defaultUserName,
String userAttribute,
javax.servlet.http.HttpServletRequest request)
|
static String |
getUserPassword(javax.servlet.http.HttpServletRequest request)
|
static String |
getUserPassword(javax.servlet.http.HttpSession session)
|
static String |
getUserPassword(PortletRequest portletRequest)
|
static String |
getUserValue(long userId,
String param,
String defaultValue)
|
static long |
getValidUserId(long companyId,
long userId)
|
static String |
getVirtualLayoutActualURL(long groupId,
boolean privateLayout,
String mainPath,
String friendlyURL,
Map<String,String[]> params,
Map<String,Object> requestContext)
|
static String |
getWidgetURL(Portlet portlet,
ThemeDisplay themeDisplay)
|
static void |
initCustomSQL()
|
static User |
initUser(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isAllowAddPortletDefaultResource(javax.servlet.http.HttpServletRequest request,
Portlet portlet)
|
static boolean |
isCDNDynamicResourcesEnabled(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isCDNDynamicResourcesEnabled(long companyId)
|
static boolean |
isCommunityAdmin(User user,
long groupId)
Deprecated. As of 6.1.0, renamed to isGroupAdmin(User, long) |
static boolean |
isCommunityOwner(User user,
long groupId)
Deprecated. As of 6.1.0, renamed to isGroupOwner(User, long) |
static boolean |
isCompanyAdmin(User user)
|
static boolean |
isCompanyControlPanelPortlet(String portletId,
String category,
ThemeDisplay themeDisplay)
|
static boolean |
isCompanyControlPanelPortlet(String portletId,
ThemeDisplay themeDisplay)
|
static boolean |
isCompanyControlPanelVisible(ThemeDisplay themeDisplay)
|
static boolean |
isControlPanelPortlet(String portletId,
String category,
ThemeDisplay themeDisplay)
|
static boolean |
isControlPanelPortlet(String portletId,
ThemeDisplay themeDisplay)
|
static boolean |
isGroupAdmin(User user,
long groupId)
|
static boolean |
isGroupFriendlyURL(String fullURL,
String groupFriendlyURL,
String layoutFriendlyURL)
|
static boolean |
isGroupOwner(User user,
long groupId)
|
static boolean |
isLayoutDescendant(Layout layout,
long layoutId)
|
static boolean |
isLayoutFirstPageable(Layout layout)
|
static boolean |
isLayoutFirstPageable(String type)
|
static boolean |
isLayoutFriendliable(Layout layout)
|
static boolean |
isLayoutFriendliable(String type)
|
static boolean |
isLayoutParentable(Layout layout)
|
static boolean |
isLayoutParentable(String type)
|
static boolean |
isLayoutSitemapable(Layout layout)
|
static boolean |
isMethodGet(PortletRequest portletRequest)
|
static boolean |
isMethodPost(PortletRequest portletRequest)
|
static boolean |
isMultipartRequest(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isOmniadmin(long userId)
|
static boolean |
isReservedParameter(String name)
|
static boolean |
isSecure(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isSystemGroup(String groupName)
|
static boolean |
isSystemRole(String roleName)
|
static boolean |
isUpdateAvailable()
|
static boolean |
isValidResourceId(String resourceId)
|
void |
removePortalPortEventListener(PortalPortEventListener portalPortEventListener)
|
static String |
renderPage(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String path,
boolean writeOutput)
|
static String |
renderPortlet(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Portlet portlet,
String queryString,
boolean writeOutput)
|
static String |
renderPortlet(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Portlet portlet,
String queryString,
String columnId,
Integer columnPos,
Integer columnCount,
boolean writeOutput)
|
static String |
renderPortlet(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Portlet portlet,
String queryString,
String columnId,
Integer columnPos,
Integer columnCount,
String path,
boolean writeOutput)
|
static void |
resetCDNHosts()
|
static Set<String> |
resetPortletAddDefaultResourceCheckWhitelist()
|
static Set<String> |
resetPortletAddDefaultResourceCheckWhitelistActions()
|
static void |
runSQL(String sql)
Deprecated. DB.runSQL(String) |
static void |
sendError(Exception e,
ActionRequest actionRequest,
ActionResponse actionResponse)
|
static void |
sendError(Exception e,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
static void |
sendError(int status,
Exception e,
ActionRequest actionRequest,
ActionResponse actionResponse)
|
static void |
sendError(int status,
Exception e,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
static void |
setPageDescription(String description,
javax.servlet.http.HttpServletRequest request)
Sets the description for a page. |
static void |
setPageKeywords(String keywords,
javax.servlet.http.HttpServletRequest request)
Sets the keywords for a page. |
static void |
setPageSubtitle(String subtitle,
javax.servlet.http.HttpServletRequest request)
Sets the subtitle for a page. |
static void |
setPageTitle(String title,
javax.servlet.http.HttpServletRequest request)
Sets the whole title for a page. |
void |
setPortal(Portal portal)
|
static void |
setPortalPort(javax.servlet.http.HttpServletRequest request)
Sets the port obtained on the first request to the portal. |
static void |
storePreferences(PortletPreferences portletPreferences)
|
static String[] |
stripURLAnchor(String url,
String separator)
|
static String |
transformCustomSQL(String sql)
|
static String |
transformSQL(String sql)
|
static PortletMode |
updatePortletMode(String portletId,
User user,
Layout layout,
PortletMode portletMode,
javax.servlet.http.HttpServletRequest request)
|
static String |
updateRedirect(String redirect,
String oldPath,
String newPath)
|
static WindowState |
updateWindowState(String portletId,
User user,
Layout layout,
WindowState windowState,
javax.servlet.http.HttpServletRequest request)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortalUtil()
Method Detail |
---|
public static void addPageDescription(String description, javax.servlet.http.HttpServletRequest request)
public static void addPageKeywords(String keywords, javax.servlet.http.HttpServletRequest request)
public static void addPageSubtitle(String subtitle, javax.servlet.http.HttpServletRequest request)
public static void addPageTitle(String title, javax.servlet.http.HttpServletRequest request)
public static void addPortalPortEventListener(PortalPortEventListener portalPortEventListener)
public static void addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request, String title, String url)
public static void addPortletBreadcrumbEntry(javax.servlet.http.HttpServletRequest request, String title, String url, Map<String,Object> data)
public static void addPortletDefaultResource(javax.servlet.http.HttpServletRequest request, Portlet portlet) throws PortalException, SystemException
PortalException
SystemException
public static void addPortletDefaultResource(long companyId, Layout layout, Portlet portlet) throws PortalException, SystemException
PortalException
SystemException
public static String addPreservedParameters(ThemeDisplay themeDisplay, Layout layout, String url, boolean doAsUser)
false
,
then doAsUserId and doAsUserLanguageId will never be added.
public static String addPreservedParameters(ThemeDisplay themeDisplay, String url)
public static void clearRequestParameters(RenderRequest renderRequest)
public static void copyRequestParameters(ActionRequest actionRequest, ActionResponse actionResponse)
public static String escapeRedirect(String url)
public static String generateRandomKey(javax.servlet.http.HttpServletRequest request, String input)
public static String getActualURL(long groupId, boolean privateLayout, String mainPath, String friendlyURL, Map<String,String[]> params, Map<String,Object> requestContext) throws PortalException, SystemException
PortalException
SystemException
public static Locale[] getAlternateLocales(javax.servlet.http.HttpServletRequest request) throws PortalException, SystemException
PortalException
SystemException
public static String getAlternateURL(javax.servlet.http.HttpServletRequest request, String canonicalURL, Locale locale)
getAlternateURL(String, ThemeDisplay, Locale)
public static String getAlternateURL(String canonicalURL, ThemeDisplay themeDisplay, Locale locale)
public static Set<String> getAuthTokenIgnoreActions()
public static Set<String> getAuthTokenIgnorePortlets()
public static BaseModel<?> getBaseModel(Resource resource) throws PortalException, SystemException
PortalException
SystemException
public static BaseModel<?> getBaseModel(ResourcePermission resourcePermission) throws PortalException, SystemException
PortalException
SystemException
public static BaseModel<?> getBaseModel(String modelName, String primKey) throws PortalException, SystemException
PortalException
SystemException
public static long getBasicAuthUserId(javax.servlet.http.HttpServletRequest request) throws PortalException, SystemException
PortalException
SystemException
public static long getBasicAuthUserId(javax.servlet.http.HttpServletRequest request, long companyId) throws PortalException, SystemException
PortalException
SystemException
public static String getCanonicalURL(String completeURL, ThemeDisplay themeDisplay) throws PortalException, SystemException
getCanonicalURL(String, ThemeDisplay, Layout)
PortalException
SystemException
public static String getCanonicalURL(String completeURL, ThemeDisplay themeDisplay, Layout layout) throws PortalException, SystemException
PortalException
SystemException
public static String getCanonicalURL(String completeURL, ThemeDisplay themeDisplay, Layout layout, boolean forceLayoutFriendlyURL) throws PortalException, SystemException
PortalException
SystemException
public static String getCDNHost()
getCDNHost(boolean)
public static String getCDNHost(boolean secure)
public static String getCDNHost(javax.servlet.http.HttpServletRequest request) throws PortalException, SystemException
PortalException
SystemException
public static String getCDNHostHttp(long companyId)
public static String getCDNHostHttps(long companyId)
public static String getClassName(long classNameId)
public static long getClassNameId(Class<?> clazz)
public static long getClassNameId(String value)
public static String getClassNamePortletId(String className)
public static Company getCompany(javax.servlet.http.HttpServletRequest request) throws PortalException, SystemException
PortalException
SystemException
public static Company getCompany(PortletRequest portletRequest) throws PortalException, SystemException
PortalException
SystemException
public static long getCompanyId(javax.servlet.http.HttpServletRequest request)
public static long getCompanyId(PortletRequest portletRequest)
public static long[] getCompanyIds()
public static String getComputerAddress()
public static String getComputerName()
public static String getControlPanelCategory(String portletId, ThemeDisplay themeDisplay) throws SystemException
SystemException
public static String getControlPanelFullURL(long scopeGroupId, String ppid, Map<String,String[]> params) throws PortalException, SystemException
PortalException
SystemException
public static Set<Portlet> getControlPanelPortlets(long companyId, String category) throws SystemException
SystemException
public static List<Portlet> getControlPanelPortlets(String category, ThemeDisplay themeDisplay) throws SystemException
SystemException
public static String getCreateAccountURL(javax.servlet.http.HttpServletRequest request, ThemeDisplay themeDisplay) throws Exception
Exception
public static String getCurrentCompleteURL(javax.servlet.http.HttpServletRequest request)
public static String getCurrentURL(javax.servlet.http.HttpServletRequest request)
public static String getCurrentURL(PortletRequest portletRequest)
public static String getCustomSQLFunctionIsNotNull()
public static String getCustomSQLFunctionIsNull()
public static Date getDate(int month, int day, int year)
public static Date getDate(int month, int day, int year, Class<? extends PortalException> clazz) throws PortalException
PortalException
public static Date getDate(int month, int day, int year, int hour, int min, Class<? extends PortalException> clazz) throws PortalException
PortalException
public static Date getDate(int month, int day, int year, int hour, int min, PortalException pe) throws PortalException
getDate(int, int, int, int, int, Class)
PortalException
public static Date getDate(int month, int day, int year, int hour, int min, TimeZone timeZone, Class<? extends PortalException> clazz) throws PortalException
PortalException
public static Date getDate(int month, int day, int year, int hour, int min, TimeZone timeZone, PortalException pe) throws PortalException
getDate(int, int, int, int, int, TimeZone, Class)
PortalException
public static Date getDate(int month, int day, int year, PortalException pe) throws PortalException
getDate(int, int, int, Class)
PortalException
public static Date getDate(int month, int day, int year, TimeZone timeZone, Class<? extends PortalException> clazz) throws PortalException
PortalException
public static Date getDate(int month, int day, int year, TimeZone timeZone, PortalException pe) throws PortalException
getDate(int, int, int, TimeZone, Class)
PortalException
public static DB getDB()
DBFactoryUtil.getDB()
public static long getDefaultCompanyId()
public static long getDigestAuthUserId(javax.servlet.http.HttpServletRequest request) throws PortalException, SystemException
PortalException
SystemException
public static String getEmailFromAddress(PortletPreferences preferences, long companyId, String defaultValue) throws SystemException
SystemException
public static String getEmailFromName(PortletPreferences preferences, long companyId, String defaultValue) throws SystemException
SystemException
public static Map<String,Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge, PortletRequest portletRequest) throws PortalException, SystemException
PortalException
SystemException
public static Map<String,Serializable> getExpandoBridgeAttributes(ExpandoBridge expandoBridge, UploadPortletRequest uploadPortletRequest) throws PortalException, SystemException
PortalException
SystemException
public static Serializable getExpandoValue(PortletRequest portletRequest, String name, int type, String displayType) throws PortalException, SystemException
PortalException
SystemException
public static Serializable getExpandoValue(UploadPortletRequest uploadPortletRequest, String name, int type, String displayType) throws PortalException, SystemException
PortalException
SystemException
public static String getFacebookURL(Portlet portlet, String facebookCanvasPageURL, ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static String getFirstPageLayoutTypes(javax.servlet.jsp.PageContext pageContext)
public static String getGlobalLibDir()
public static String getGoogleGadgetURL(Portlet portlet, ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static String getGroupFriendlyURL(Group group, boolean privateLayoutSet, ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static String getGroupFriendlyURL(Group group, boolean privateLayoutSet, ThemeDisplay themeDisplay, Locale locale) throws PortalException, SystemException
PortalException
SystemException
public static String[] getGroupPermissions(javax.servlet.http.HttpServletRequest request)
public static String[] getGroupPermissions(javax.servlet.http.HttpServletRequest request, String className)
public static String[] getGroupPermissions(PortletRequest portletRequest)
public static String[] getGroupPermissions(PortletRequest portletRequest, String className)
public static String[] getGuestPermissions(javax.servlet.http.HttpServletRequest request)
public static String[] getGuestPermissions(javax.servlet.http.HttpServletRequest request, String className)
public static String[] getGuestPermissions(PortletRequest portletRequest)
public static String[] getGuestPermissions(PortletRequest portletRequest, String className)
public static String getHomeURL(javax.servlet.http.HttpServletRequest request) throws PortalException, SystemException
PortalException
SystemException
public static String getHost(javax.servlet.http.HttpServletRequest request)
public static String getHost(PortletRequest portletRequest)
public static javax.servlet.http.HttpServletRequest getHttpServletRequest(PortletRequest portletRequest)
public static javax.servlet.http.HttpServletResponse getHttpServletResponse(PortletResponse portletResponse)
public static String getJournalArticleActualURL(long groupId, boolean privateLayout, String mainPath, String friendlyURL, Map<String,String[]> params, Map<String,Object> requestContext) throws PortalException, SystemException
PortalException
SystemException
public static String getJsSafePortletId(String portletId)
public static String getLayoutActualURL(Layout layout)
public static String getLayoutActualURL(Layout layout, String mainPath)
public static String getLayoutActualURL(long groupId, boolean privateLayout, String mainPath, String friendlyURL) throws PortalException, SystemException
PortalException
SystemException
public static String getLayoutActualURL(long groupId, boolean privateLayout, String mainPath, String friendlyURL, Map<String,String[]> params, Map<String,Object> requestContext) throws PortalException, SystemException
PortalException
SystemException
public static String getLayoutEditPage(Layout layout)
public static String getLayoutEditPage(String type)
public static String getLayoutFriendlyURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static String getLayoutFriendlyURL(Layout layout, ThemeDisplay themeDisplay, Locale locale) throws PortalException, SystemException
PortalException
SystemException
public static String getLayoutFullURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static String getLayoutFullURL(Layout layout, ThemeDisplay themeDisplay, boolean doAsUser) throws PortalException, SystemException
PortalException
SystemException
public static String getLayoutFullURL(long groupId, String portletId) throws PortalException, SystemException
PortalException
SystemException
public static String getLayoutFullURL(long groupId, String portletId, boolean secure) throws PortalException, SystemException
PortalException
SystemException
public static String getLayoutFullURL(ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static String getLayoutSetFriendlyURL(LayoutSet layoutSet, ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static String getLayoutTarget(Layout layout)
public static String getLayoutURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static String getLayoutURL(Layout layout, ThemeDisplay themeDisplay, boolean doAsUser) throws PortalException, SystemException
PortalException
SystemException
public static String getLayoutURL(ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static String getLayoutViewPage(Layout layout)
public static String getLayoutViewPage(String type)
public static LiferayPortletRequest getLiferayPortletRequest(PortletRequest portletRequest)
public static LiferayPortletResponse getLiferayPortletResponse(PortletResponse portletResponse)
public static Locale getLocale(javax.servlet.http.HttpServletRequest request)
public static Locale getLocale(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean initialize)
public static Locale getLocale(RenderRequest renderRequest)
public static String getMailId(String mx, String popPortletPrefix, Object... ids)
public static BaseModel<?> getModel(Resource resource) throws PortalException, SystemException
getBaseModel(Resource)
PortalException
SystemException
public static BaseModel<?> getModel(ResourcePermission resourcePermission) throws PortalException, SystemException
getBaseModel(ResourcePermission)
PortalException
SystemException
public static BaseModel<?> getModel(String modelName, String primKey) throws PortalException, SystemException
getBaseModel(String, String)
PortalException
SystemException
public static String getNetvibesURL(Portlet portlet, ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static String getNewPortletTitle(String portletTitle, String oldScopeName, String newScopeName)
public static javax.servlet.http.HttpServletRequest getOriginalServletRequest(javax.servlet.http.HttpServletRequest request)
public static long getParentGroupId(long scopeGroupId) throws PortalException, SystemException
PortalException
SystemException
public static String getPathContext()
public static String getPathFriendlyURLPrivateGroup()
public static String getPathFriendlyURLPrivateUser()
public static String getPathFriendlyURLPublic()
public static String getPathImage()
public static String getPathMain()
public static String getPathProxy()
public static long getPlidFromFriendlyURL(long companyId, String friendlyURL)
public static long getPlidFromPortletId(long groupId, boolean privateLayout, String portletId) throws PortalException, SystemException
PortalException
SystemException
public static long getPlidFromPortletId(long groupId, String portletId) throws PortalException, SystemException
PortalException
SystemException
public static Portal getPortal()
public static String getPortalLibDir()
public static int getPortalPort()
getPortalPort(boolean)
public static int getPortalPort(boolean secure)
public static Properties getPortalProperties()
public static String getPortalURL(javax.servlet.http.HttpServletRequest request)
public static String getPortalURL(javax.servlet.http.HttpServletRequest request, boolean secure)
public static String getPortalURL(Layout layout, ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static String getPortalURL(PortletRequest portletRequest)
public static String getPortalURL(PortletRequest portletRequest, boolean secure)
public static String getPortalURL(String serverName, int serverPort, boolean secure)
public static String getPortalURL(ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static String getPortalWebDir()
public static Set<String> getPortletAddDefaultResourceCheckWhitelist()
public static Set<String> getPortletAddDefaultResourceCheckWhitelistActions()
public static List<BreadcrumbEntry> getPortletBreadcrumbList(javax.servlet.http.HttpServletRequest request)
getPortletBreadcrumbs(HttpServletRequest)
public static List<BreadcrumbEntry> getPortletBreadcrumbs(javax.servlet.http.HttpServletRequest request)
public static String getPortletDescription(Portlet portlet, javax.servlet.ServletContext servletContext, Locale locale)
public static String getPortletDescription(Portlet portlet, User user)
public static String getPortletDescription(String portletId, Locale locale)
public static String getPortletDescription(String portletId, String languageId)
public static String getPortletDescription(String portletId, User user)
public static String getPortletId(javax.servlet.http.HttpServletRequest request)
public static String getPortletId(PortletRequest portletRequest)
public static String getPortletLongTitle(Portlet portlet, Locale locale)
public static String getPortletLongTitle(Portlet portlet, javax.servlet.ServletContext servletContext, Locale locale)
public static String getPortletLongTitle(Portlet portlet, String languageId)
public static String getPortletLongTitle(Portlet portlet, User user)
public static String getPortletLongTitle(String portletId, Locale locale)
public static String getPortletLongTitle(String portletId, String languageId)
public static String getPortletLongTitle(String portletId, User user)
public static String getPortletNamespace(String portletId)
public static String getPortletTitle(Portlet portlet, Locale locale)
public static String getPortletTitle(Portlet portlet, javax.servlet.ServletContext servletContext, Locale locale)
public static String getPortletTitle(Portlet portlet, String languageId)
public static String getPortletTitle(Portlet portlet, User user)
public static String getPortletTitle(RenderResponse renderResponse)
public static String getPortletTitle(String portletId, Locale locale)
public static String getPortletTitle(String portletId, String languageId)
public static String getPortletTitle(String portletId, User user)
public static String getPortletXmlFileName() throws SystemException
SystemException
public static PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest request)
public static PreferencesValidator getPreferencesValidator(Portlet portlet)
public static String getRelativeHomeURL(javax.servlet.http.HttpServletRequest request) throws PortalException, SystemException
PortalException
SystemException
public static long getScopeGroupId(javax.servlet.http.HttpServletRequest request) throws PortalException, SystemException
PortalException
SystemException
public static long getScopeGroupId(javax.servlet.http.HttpServletRequest request, String portletId) throws PortalException, SystemException
PortalException
SystemException
public static long getScopeGroupId(javax.servlet.http.HttpServletRequest request, String portletId, boolean checkStagingGroup) throws PortalException, SystemException
PortalException
SystemException
public static long getScopeGroupId(Layout layout)
public static long getScopeGroupId(Layout layout, String portletId)
public static long getScopeGroupId(long plid)
public static long getScopeGroupId(PortletRequest portletRequest) throws PortalException, SystemException
PortalException
SystemException
public static User getSelectedUser(javax.servlet.http.HttpServletRequest request) throws PortalException, SystemException
PortalException
SystemException
public static User getSelectedUser(javax.servlet.http.HttpServletRequest request, boolean checkPermission) throws PortalException, SystemException
PortalException
SystemException
public static User getSelectedUser(PortletRequest portletRequest) throws PortalException, SystemException
PortalException
SystemException
public static User getSelectedUser(PortletRequest portletRequest, boolean checkPermission) throws PortalException, SystemException
PortalException
SystemException
public static javax.servlet.ServletContext getServletContext(Portlet portlet, javax.servlet.ServletContext servletContext)
public static String getSiteLoginURL(ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static String getStaticResourceURL(javax.servlet.http.HttpServletRequest request, String uri)
public static String getStaticResourceURL(javax.servlet.http.HttpServletRequest request, String uri, long timestamp)
public static String getStaticResourceURL(javax.servlet.http.HttpServletRequest request, String uri, String queryString)
public static String getStaticResourceURL(javax.servlet.http.HttpServletRequest request, String uri, String queryString, long timestamp)
public static String getStrutsAction(javax.servlet.http.HttpServletRequest request)
public static String[] getSystemGroups()
public static String[] getSystemOrganizationRoles()
public static String[] getSystemRoles()
public static String[] getSystemSiteRoles()
public static String getUniqueElementId(javax.servlet.http.HttpServletRequest request, String namespace, String id)
public static String getUniqueElementId(PortletRequest request, String namespace, String id)
public static UploadPortletRequest getUploadPortletRequest(PortletRequest portletRequest)
public static UploadServletRequest getUploadServletRequest(javax.servlet.http.HttpServletRequest request)
public static Date getUptime()
public static String getURLWithSessionId(String url, String sessionId)
public static User getUser(javax.servlet.http.HttpServletRequest request) throws PortalException, SystemException
PortalException
SystemException
public static User getUser(PortletRequest portletRequest) throws PortalException, SystemException
PortalException
SystemException
public static String getUserEmailAddress(long userId) throws SystemException
SystemException
public static long getUserId(javax.servlet.http.HttpServletRequest request)
public static long getUserId(PortletRequest portletRequest)
public static String getUserName(BaseModel<?> baseModel)
public static String getUserName(long userId, String defaultUserName)
public static String getUserName(long userId, String defaultUserName, javax.servlet.http.HttpServletRequest request)
public static String getUserName(long userId, String defaultUserName, String userAttribute)
public static String getUserName(long userId, String defaultUserName, String userAttribute, javax.servlet.http.HttpServletRequest request)
public static String getUserPassword(javax.servlet.http.HttpServletRequest request)
public static String getUserPassword(javax.servlet.http.HttpSession session)
public static String getUserPassword(PortletRequest portletRequest)
public static String getUserValue(long userId, String param, String defaultValue) throws SystemException
SystemException
public static long getValidUserId(long companyId, long userId) throws PortalException, SystemException
PortalException
SystemException
public static String getVirtualLayoutActualURL(long groupId, boolean privateLayout, String mainPath, String friendlyURL, Map<String,String[]> params, Map<String,Object> requestContext) throws PortalException, SystemException
PortalException
SystemException
public static String getWidgetURL(Portlet portlet, ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static void initCustomSQL()
public static User initUser(javax.servlet.http.HttpServletRequest request) throws Exception
Exception
public static boolean isAllowAddPortletDefaultResource(javax.servlet.http.HttpServletRequest request, Portlet portlet) throws PortalException, SystemException
PortalException
SystemException
public static boolean isCDNDynamicResourcesEnabled(javax.servlet.http.HttpServletRequest request) throws PortalException, SystemException
PortalException
SystemException
public static boolean isCDNDynamicResourcesEnabled(long companyId)
public static boolean isCommunityAdmin(User user, long groupId) throws Exception
isGroupAdmin(User, long)
Exception
public static boolean isCommunityOwner(User user, long groupId) throws Exception
isGroupOwner(User, long)
Exception
public static boolean isCompanyAdmin(User user) throws Exception
Exception
public static boolean isCompanyControlPanelPortlet(String portletId, String category, ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static boolean isCompanyControlPanelPortlet(String portletId, ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static boolean isCompanyControlPanelVisible(ThemeDisplay themeDisplay) throws PortalException, SystemException
PortalException
SystemException
public static boolean isControlPanelPortlet(String portletId, String category, ThemeDisplay themeDisplay) throws SystemException
SystemException
public static boolean isControlPanelPortlet(String portletId, ThemeDisplay themeDisplay) throws SystemException
SystemException
public static boolean isGroupAdmin(User user, long groupId) throws Exception
Exception
public static boolean isGroupFriendlyURL(String fullURL, String groupFriendlyURL, String layoutFriendlyURL)
public static boolean isGroupOwner(User user, long groupId) throws Exception
Exception
public static boolean isLayoutDescendant(Layout layout, long layoutId) throws PortalException, SystemException
PortalException
SystemException
public static boolean isLayoutFirstPageable(Layout layout)
public static boolean isLayoutFirstPageable(String type)
public static boolean isLayoutFriendliable(Layout layout)
public static boolean isLayoutFriendliable(String type)
public static boolean isLayoutParentable(Layout layout)
public static boolean isLayoutParentable(String type)
public static boolean isLayoutSitemapable(Layout layout)
public static boolean isMethodGet(PortletRequest portletRequest)
public static boolean isMethodPost(PortletRequest portletRequest)
public static boolean isMultipartRequest(javax.servlet.http.HttpServletRequest request)
public static boolean isOmniadmin(long userId)
public static boolean isReservedParameter(String name)
public static boolean isSecure(javax.servlet.http.HttpServletRequest request)
public static boolean isSystemGroup(String groupName)
public static boolean isSystemRole(String roleName)
public static boolean isUpdateAvailable() throws SystemException
SystemException
public static boolean isValidResourceId(String resourceId)
public static String renderPage(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String path, boolean writeOutput) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public static String renderPortlet(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Portlet portlet, String queryString, boolean writeOutput) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public static String renderPortlet(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Portlet portlet, String queryString, String columnId, Integer columnPos, Integer columnCount, boolean writeOutput) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public static String renderPortlet(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Portlet portlet, String queryString, String columnId, Integer columnPos, Integer columnCount, String path, boolean writeOutput) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public static void resetCDNHosts()
public static Set<String> resetPortletAddDefaultResourceCheckWhitelist()
public static Set<String> resetPortletAddDefaultResourceCheckWhitelistActions()
public static void runSQL(String sql) throws IOException, SQLException
DB.runSQL(String)
IOException
SQLException
public static void sendError(Exception e, ActionRequest actionRequest, ActionResponse actionResponse) throws IOException
IOException
public static void sendError(Exception e, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public static void sendError(int status, Exception e, ActionRequest actionRequest, ActionResponse actionResponse) throws IOException
IOException
public static void sendError(int status, Exception e, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public static void setPageDescription(String description, javax.servlet.http.HttpServletRequest request)
public static void setPageKeywords(String keywords, javax.servlet.http.HttpServletRequest request)
public static void setPageSubtitle(String subtitle, javax.servlet.http.HttpServletRequest request)
public static void setPageTitle(String title, javax.servlet.http.HttpServletRequest request)
public static void setPortalPort(javax.servlet.http.HttpServletRequest request)
public static void storePreferences(PortletPreferences portletPreferences) throws IOException, ValidatorException
IOException
ValidatorException
public static String[] stripURLAnchor(String url, String separator)
public static String transformCustomSQL(String sql)
public static String transformSQL(String sql)
public static PortletMode updatePortletMode(String portletId, User user, Layout layout, PortletMode portletMode, javax.servlet.http.HttpServletRequest request)
public static String updateRedirect(String redirect, String oldPath, String newPath)
public static WindowState updateWindowState(String portletId, User user, Layout layout, WindowState windowState, javax.servlet.http.HttpServletRequest request)
public void removePortalPortEventListener(PortalPortEventListener portalPortEventListener)
public void setPortal(Portal portal)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |