public class ToolUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PORTAL_INLINE_EXPERIMENTAL |
| Constructor and Description |
|---|
ToolUtils() |
| Modifier and Type | Method and Description |
|---|---|
static SitePage |
getPageForTool(Site site,
String toolId)
Look through the pages in a site and find the page that corresponds to a tool.
|
static String |
getPageUrl(HttpServletRequest req,
Site site,
SitePage page)
Captures the rules for getting the URL of a page suitable for a GET request
|
static String |
getPageUrl(HttpServletRequest req,
Site site,
SitePage page,
String portalPrefix)
Captures the rules for getting the URL of a page suitable for a GET request
|
static String |
getPageUrl(HttpServletRequest req,
Site site,
SitePage page,
String portalPrefix,
boolean reset,
String effectiveSiteId,
String pageAlias)
Captures the rules for getting the URL of a page suitable for a GET request
|
static String |
getPageUrlForTool(HttpServletRequest req,
Site site,
ToolConfiguration pageTool)
Look through the pages in a site and get the page URL for a tool.
|
static String |
getToolPopupUrl(ToolConfiguration pageTool)
Captures the rules for the various tools and when they want a popup
|
static boolean |
isInlineRequest(HttpServletRequest req)
Determine if this is an inline request.
|
static boolean |
isPortletPlacement(Placement placement) |
public static final String PORTAL_INLINE_EXPERIMENTAL
public static boolean isInlineRequest(HttpServletRequest req)
req - The request object.public static String getPageUrl(HttpServletRequest req, Site site, SitePage page)
req - The request object.site - The site that contains the pagepage - The page URL. If this has a logged in session, we use it to set the
default prefix if available. This will use the default prefix if called
without a session (i.e. through /direct).public static String getPageUrl(HttpServletRequest req, Site site, SitePage page, String portalPrefix)
req - The request object.site - The site that contains the pagepage - The pageportalPrefix - The controlling portal. Typically "portal" or "pda". No slashes should be includedpublic static String getPageUrl(HttpServletRequest req, Site site, SitePage page, String portalPrefix, boolean reset, String effectiveSiteId, String pageAlias)
req - The request object.site - The site that contains the pagepage - The pageportalPrefix - The controlling portal. Typically "portal" or "pda". No slashes should be includedreset - Should we reset the tool as part of this GET reference (typically true)effectiveSiteId - The effective site IDpageAlias - The alias for the page (typically null)public static String getToolPopupUrl(ToolConfiguration pageTool)
pageTool - The tools configuration object.public static SitePage getPageForTool(Site site, String toolId)
site - The sitetoolId - The placement / tool IDpublic static String getPageUrlForTool(HttpServletRequest req, Site site, ToolConfiguration pageTool)
req - The request object.site - The sitepageTool - The placement / tool configurationpublic static boolean isPortletPlacement(Placement placement)
Copyright © 2003-2014 University of Michigan. All Rights Reserved.