| java.lang.Object com.liferay.portal.util.PortalUtil
PortalUtil | public class PortalUtil (Code) | | View Source
author: Brian Wing Shun Chan author: Brian Myunghun Kim author: Jorge Ferrer |
Method Summary | |
public static void | clearRequestParameters(RenderRequest req) | public static void | copyRequestParameters(ActionRequest req, ActionResponse res) | public static String | createSecureProxyURL(String url, Key key, boolean secure) | public static String | getCDNHost() | public static String | getClassName(long classNameId) | public static long | getClassNameId(Class classObj) | public static long | getClassNameId(String value) | public static String | getClassNamePortletId(String className) | public static Company | getCompany(HttpServletRequest req) | public static Company | getCompany(ActionRequest req) | public static Company | getCompany(RenderRequest req) | public static long | getCompanyId(HttpServletRequest req) | public static long | getCompanyId(ActionRequest req) | public static long | getCompanyId(PortletRequest req) | public static long | getCompanyId(RenderRequest req) | public static long | getCompanyIdByWebId(ServletContext ctx) | public static long | getCompanyIdByWebId(String webId) | public static String | getComputerName() | public static String | getCurrentURL(HttpServletRequest req) | public static String | getCurrentURL(PortletRequest req) | public static Date | getDate(int month, int day, int year, PortalException pe) | public static Date | getDate(int month, int day, int year, TimeZone timeZone, PortalException pe) | public static Date | getDate(int month, int day, int year, int hour, int min, PortalException pe) | public static Date | getDate(int month, int day, int year, int hour, int min, TimeZone timeZone, PortalException pe) | public static String | getHost(HttpServletRequest req) | public static String | getHost(ActionRequest req) | public static String | getHost(RenderRequest req) | public static HttpServletRequest | getHttpServletRequest(PortletRequest req) | public static HttpServletResponse | getHttpServletResponse(PortletResponse res) | public static String | getJsSafePortletId(String portletId) | public static String | getJsSafePortletName(String portletName) | 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) | public static String | getLayoutActualURL(long groupId, boolean privateLayout, String mainPath, String friendlyURL, Map params) | public static String | getLayoutEditPage(Layout layout) | public static String | getLayoutFriendlyURL(Layout layout, ThemeDisplay themeDisplay) | public static String | getLayoutTarget(Layout layout) | public static String | getLayoutURL(ThemeDisplay themeDisplay) | public static String | getLayoutURL(Layout layout, ThemeDisplay themeDisplay) | public static String | getLayoutURL(Layout layout, ThemeDisplay themeDisplay, boolean doAsUser) | public static String | getLayoutViewPage(Layout layout) | public static Locale | getLocale(HttpServletRequest req) | public static Locale | getLocale(RenderRequest req) | public static HttpServletRequest | getOriginalServletRequest(HttpServletRequest req) | 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 long | getPlidIdFromFriendlyURL(long companyId, String friendlyURL) | public static String | getPortalLibDir() | public static String | getPortalURL(ThemeDisplay themeDisplay) | public static String | getPortalURL(HttpServletRequest req) | public static String | getPortalURL(HttpServletRequest req, boolean secure) | public static String | getPortalURL(PortletRequest req) | public static String | getPortalURL(PortletRequest req, boolean secure) | public static String | getPortalURL(String serverName, int serverPort, boolean secure) | public static Object[] | getPortletFriendlyURLMapper(long groupId, boolean privateLayout, String url) | public static Object[] | getPortletFriendlyURLMapper(long groupId, boolean privateLayout, String url, Map params) | public static long | getPortletGroupId(long plid) | public static long | getPortletGroupId(Layout layout) | public static long | getPortletGroupId(HttpServletRequest req) | public static long | getPortletGroupId(ActionRequest req) | public static long | getPortletGroupId(RenderRequest req) | public static String | getPortletNamespace(String portletId) | public static String | getPortletTitle(String portletId, long companyId, String languageId) | public static String | getPortletTitle(String portletId, User user) | public static String | getPortletTitle(Portlet portlet, ServletContext ctx, Locale locale) | public static String | getPortletXmlFileName() | public static PortletPreferences | getPreferences(HttpServletRequest req) | public static PreferencesValidator | getPreferencesValidator(Portlet portlet) | public static RenderResponseImpl | getRenderResponseImpl(RenderResponse res) | public static User | getSelectedUser(HttpServletRequest req) | public static User | getSelectedUser(HttpServletRequest req, boolean checkPermission) | public static User | getSelectedUser(ActionRequest req) | public static User | getSelectedUser(ActionRequest req, boolean checkPermission) | public static User | getSelectedUser(RenderRequest req) | public static User | getSelectedUser(RenderRequest req, boolean checkPermission) | public static String | getStrutsAction(HttpServletRequest req) | public static String[] | getSystemCommunityRoles() | public static String[] | getSystemGroups() | public static String[] | getSystemOrganizationRoles() | public static String[] | getSystemRoles() | public static String | getURLWithSessionId(String url, String sessionId) | public static UploadPortletRequest | getUploadPortletRequest(ActionRequest req) | public static UploadServletRequest | getUploadServletRequest(HttpServletRequest httpReq) | public static Date | getUptime() | public static User | getUser(HttpServletRequest req) | public static User | getUser(ActionRequest req) | public static User | getUser(RenderRequest req) | public static long | getUserId(HttpServletRequest req) | public static long | getUserId(ActionRequest req) | public static long | getUserId(RenderRequest req) | public static String | getUserName(long userId, String defaultUserName) | public static String | getUserName(long userId, String defaultUserName, String userAttribute) | public static String | getUserName(long userId, String defaultUserName, HttpServletRequest req) | public static String | getUserName(long userId, String defaultUserName, String userAttribute, HttpServletRequest req) | public static String | getUserPassword(HttpSession ses) | public static String | getUserPassword(HttpServletRequest req) | public static String | getUserPassword(ActionRequest req) | public static String | getUserPassword(RenderRequest req) | public static String | getUserValue(long userId, String param, String defaultValue) | public static boolean | isLayoutFriendliable(Layout layout) | public static boolean | isLayoutParentable(Layout layout) | public static boolean | isLayoutParentable(String type) | public static boolean | isLayoutSitemapable(Layout layout) | public static boolean | isMethodGet(PortletRequest req) | public static boolean | isMethodPost(PortletRequest req) | public static boolean | isReservedParameter(String name) | public static boolean | isSystemGroup(String groupName) | public static boolean | isSystemRole(String roleName) | public static boolean | isUpdateAvailable() | public static Document | readDocumentFromFile(File file) | public static Document | readDocumentFromFile(File file, boolean validate) | public static Document | readDocumentFromStream(InputStream is) | public static Document | readDocumentFromStream(InputStream is, boolean validate) | public static Document | readDocumentFromURL(String url) | public static Document | readDocumentFromURL(String url, boolean validate) | public static Document | readDocumentFromXML(String xml) | public static Document | readDocumentFromXML(String xml, boolean validate) | public static void | renderPage(StringMaker sm, ServletContext ctx, HttpServletRequest req, HttpServletResponse res, String path) | public static void | renderPortlet(StringMaker sm, ServletContext ctx, HttpServletRequest req, HttpServletResponse res, Portlet portlet, String queryString) | public static void | renderPortlet(StringMaker sm, ServletContext ctx, HttpServletRequest req, HttpServletResponse res, Portlet portlet, String queryString, String columnId, Integer columnPos, Integer columnCount) | public static void | renderPortlet(StringMaker sm, ServletContext ctx, HttpServletRequest req, HttpServletResponse res, Portlet portlet, String queryString, String columnId, Integer columnPos, Integer columnCount, String path) | public static void | sendError(int status, Exception e, HttpServletRequest req, HttpServletResponse res) | public static void | setPageSubtitle(String subtitle, HttpServletRequest req) Sets the subtitle for a page. | public static void | setPageTitle(String title, HttpServletRequest req) Sets the whole title for a page. | public static void | storePreferences(PortletPreferences prefs) | public static PortletMode | updatePortletMode(String portletId, User user, Layout layout, PortletMode portletMode, HttpServletRequest req) | public static WindowState | updateWindowState(String portletId, User user, Layout layout, WindowState windowState, HttpServletRequest req) |
PATH_PORTAL_LAYOUT | final public static String PATH_PORTAL_LAYOUT(Code) | | |
PORTLET_XML_FILE_NAME_CUSTOM | final public static String PORTLET_XML_FILE_NAME_CUSTOM(Code) | | |
PORTLET_XML_FILE_NAME_STANDARD | final public static String PORTLET_XML_FILE_NAME_STANDARD(Code) | | |
clearRequestParameters | public static void clearRequestParameters(RenderRequest req)(Code) | | |
copyRequestParameters | public static void copyRequestParameters(ActionRequest req, ActionResponse res)(Code) | | |
getClassName | public static String getClassName(long classNameId)(Code) | | |
getClassNameId | public static long getClassNameId(Class classObj)(Code) | | |
getClassNameId | public static long getClassNameId(String value)(Code) | | |
getCompanyId | public static long getCompanyId(ActionRequest req)(Code) | | |
getCompanyId | public static long getCompanyId(PortletRequest req)(Code) | | |
getCompanyId | public static long getCompanyId(RenderRequest req)(Code) | | |
getCompanyIdByWebId | public static long getCompanyIdByWebId(String webId)(Code) | | |
getCurrentURL | public static String getCurrentURL(PortletRequest req)(Code) | | |
getHost | public static String getHost(ActionRequest req)(Code) | | |
getHost | public static String getHost(RenderRequest req)(Code) | | |
getLocale | public static Locale getLocale(RenderRequest req)(Code) | | |
getPathFriendlyURLPrivateGroup | public static String getPathFriendlyURLPrivateGroup()(Code) | | |
getPathFriendlyURLPrivateUser | public static String getPathFriendlyURLPrivateUser()(Code) | | |
getPathFriendlyURLPublic | public static String getPathFriendlyURLPublic()(Code) | | |
getPlidIdFromFriendlyURL | public static long getPlidIdFromFriendlyURL(long companyId, String friendlyURL)(Code) | | |
getPortalURL | public static String getPortalURL(PortletRequest req)(Code) | | |
getPortalURL | public static String getPortalURL(PortletRequest req, boolean secure)(Code) | | |
getPortalURL | public static String getPortalURL(String serverName, int serverPort, boolean secure)(Code) | | |
getPortletGroupId | public static long getPortletGroupId(long plid)(Code) | | |
getPortletGroupId | public static long getPortletGroupId(Layout layout)(Code) | | |
getPortletGroupId | public static long getPortletGroupId(ActionRequest req)(Code) | | |
getPortletGroupId | public static long getPortletGroupId(RenderRequest req)(Code) | | |
getPreferencesValidator | public static PreferencesValidator getPreferencesValidator(Portlet portlet)(Code) | | |
getSystemCommunityRoles | public static String[] getSystemCommunityRoles()(Code) | | |
getSystemGroups | public static String[] getSystemGroups()(Code) | | |
getSystemOrganizationRoles | public static String[] getSystemOrganizationRoles()(Code) | | |
getUserId | public static long getUserId(ActionRequest req)(Code) | | |
getUserId | public static long getUserId(RenderRequest req)(Code) | | |
getUserPassword | public static String getUserPassword(ActionRequest req)(Code) | | |
getUserPassword | public static String getUserPassword(RenderRequest req)(Code) | | |
isLayoutFriendliable | public static boolean isLayoutFriendliable(Layout layout)(Code) | | |
isLayoutParentable | public static boolean isLayoutParentable(Layout layout)(Code) | | |
isLayoutParentable | public static boolean isLayoutParentable(String type)(Code) | | |
isLayoutSitemapable | public static boolean isLayoutSitemapable(Layout layout)(Code) | | |
isMethodGet | public static boolean isMethodGet(PortletRequest req)(Code) | | |
isMethodPost | public static boolean isMethodPost(PortletRequest req)(Code) | | |
isReservedParameter | public static boolean isReservedParameter(String name)(Code) | | |
isSystemGroup | public static boolean isSystemGroup(String groupName)(Code) | | |
isSystemRole | public static boolean isSystemRole(String roleName)(Code) | | |
readDocumentFromFile | public static Document readDocumentFromFile(File file) throws DocumentException(Code) | | |
readDocumentFromFile | public static Document readDocumentFromFile(File file, boolean validate) throws DocumentException(Code) | | |
readDocumentFromStream | public static Document readDocumentFromStream(InputStream is) throws DocumentException(Code) | | |
readDocumentFromStream | public static Document readDocumentFromStream(InputStream is, boolean validate) throws DocumentException(Code) | | |
readDocumentFromURL | public static Document readDocumentFromURL(String url) throws DocumentException, IOException(Code) | | |
readDocumentFromURL | public static Document readDocumentFromURL(String url, boolean validate) throws DocumentException, IOException(Code) | | |
readDocumentFromXML | public static Document readDocumentFromXML(String xml) throws DocumentException(Code) | | |
readDocumentFromXML | public static Document readDocumentFromXML(String xml, boolean validate) throws DocumentException(Code) | | |
renderPortlet | public static void renderPortlet(StringMaker sm, ServletContext ctx, HttpServletRequest req, HttpServletResponse res, Portlet portlet, String queryString, String columnId, Integer columnPos, Integer columnCount, String path) throws IOException, ServletException(Code) | | |
setPageSubtitle | public static void setPageSubtitle(String subtitle, HttpServletRequest req)(Code) | | Sets the subtitle for a page. This is just a hint and can be overridden
by subsequent calls. The last call to this method wins.
Parameters: subtitle - the subtitle for a page Parameters: req - the HTTP servlet request |
setPageTitle | public static void setPageTitle(String title, HttpServletRequest req)(Code) | | Sets the whole title for a page. This is just a hint and can be
overridden by subsequent calls. The last call to this method wins.
Parameters: title - the whole title for a page Parameters: req - the HTTP servlet request |
storePreferences | public static void storePreferences(PortletPreferences prefs) throws IOException, ValidatorException(Code) | | |
|
|