fileNameToLabel(String fileName) Converts a file name to a label by splitting words in the file name on
capital letters and removing any file extension.
getLinkUrl(Link link, String path) Returns an relative URL for the page associated with link,
specifying a parent directory to get rid of the site context id in page
urls.
getSiteMap(HttpServletRequest request) Gets the site map for the current site context (as returned by
SiteContext.getContext()), loading it if necessary.
setUpMenu(HttpServletRequest request, HttpServletResponse response) NOT UNIT TESTED Sets up the menu for the current request by assembling an
OperationContext and ShimPolicy and invoking the
policy's setUpMenu() method.
Converts a file name to a label by splitting words in the file name on
capital letters and removing any file extension. The first letter of the
label is always capitalized. The extension is assumed to be anything
after the first period in the name. Returns "<null>" if
fileName is null.
Sets the siteMap in an application attribute. Site maps are
expensive to load, and therefore stored as application attributes. Since
a single application may run several sites, each with their own site map,
a map of site maps is stored, keyed by site context id.
NOT UNIT TESTED Sets up the menu for the current request by assembling an
OperationContext and ShimPolicy and invoking the
policy's setUpMenu() method.