public interface PortalSiteHelper
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowTool(Site site,
Placement placement) |
Map |
convertSiteToMap(HttpServletRequest req,
Site s,
String prefix,
String currentSiteId,
String myWorkspaceSiteId,
boolean includeSummary,
boolean expandSite,
boolean resetTools,
boolean doPages,
String toolContextPath,
boolean loggedIn) |
boolean |
doGatewaySiteList() |
String |
getGatewaySiteId() |
Site |
getMyWorkspace(Session session) |
Site |
getSite(String siteId)
This looks up a site but also checks for any aliases.
|
SiteView |
getSitesView(SiteView.View view,
HttpServletRequest req,
Session session,
String siteId)
Generates a SiteView object from the current request and location
|
Site |
getSiteVisit(String siteId) |
String |
getUserSpecificSiteTitle(Site site,
boolean escaped)
SAK-29138 - Get the site or section title for the current user for the current site.
|
boolean |
isJoinable(String siteId,
String userId)
Check if the site is joinable by the supplied user and the user isn't currently a member
of the site.
|
String |
lookupPageToAlias(String siteId,
SitePage page)
Find an alias for a page.
|
SitePage |
lookupSitePage(String pageId,
Site site) |
Map |
pageListToMap(HttpServletRequest req,
boolean loggedIn,
Site site,
SitePage page,
String toolContextPath,
String portalPrefix,
boolean doPages,
boolean resetTools,
boolean includeSummary)
Iterate through the pages in a site and return information in a
Map.
|
Site getSiteVisit(String siteId) throws IdUnusedException, PermissionException
siteId - IdUnusedExceptionPermissionExceptionboolean doGatewaySiteList()
String getGatewaySiteId()
SitePage lookupSitePage(String pageId, Site site)
portal - pageId - site - Map pageListToMap(HttpServletRequest req, boolean loggedIn, Site site, SitePage page, String toolContextPath, String portalPrefix, boolean doPages, boolean resetTools, boolean includeSummary)
req - loggedIn - site - page - toolContextPath - portalPrefix - doPages - resetTools - includeSummary - Map convertSiteToMap(HttpServletRequest req, Site s, String prefix, String currentSiteId, String myWorkspaceSiteId, boolean includeSummary, boolean expandSite, boolean resetTools, boolean doPages, String toolContextPath, boolean loggedIn)
String getUserSpecificSiteTitle(Site site, boolean escaped)
site - the site in questionescaped - true if you want the site title HTML escaped, false otherwiseSiteView getSitesView(SiteView.View view, HttpServletRequest req, Session session, String siteId)
view - req - session - siteId - String lookupPageToAlias(String siteId, SitePage page)
siteId - page - null if no alias was found, otherwise the short alias for the page.boolean isJoinable(String siteId, String userId)
siteId - The ID of the site.userId - The ID of the user.true if the user can join the site.Site getSite(String siteId) throws IdUnusedException
siteId - The siteId/alias to lookupIdUnusedException - If the siteId doesn't exist and there isn't an alias for this.Copyright © 2003–2017 Sakai Project. All rights reserved.