public interface PortalSiteHelper
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowTool(Site site,
Placement placement) |
Map |
convertSiteToMap(javax.servlet.http.HttpServletRequest req,
Site s,
String prefix,
String currentSiteId,
String myWorkspaceSiteId,
boolean includeSummary,
boolean expandSite,
boolean resetTools,
boolean doPages,
String toolContextPath,
boolean loggedIn,
List<String> siteProviders) |
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,
javax.servlet.http.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.
|
String |
getUserSpecificSiteTitle(Site site,
boolean truncated,
boolean escaped)
Similar to getUserSpecificSiteTitle(Site site, boolean escaped), but also takes truncated parameter
|
String |
getUserSpecificSiteTitle(Site site,
boolean truncated,
boolean escaped,
List<String> siteProviders)
Similar to getUserSpecificSiteTitle(Site site, boolean escaped), but consumes the specified siteProviders (for performance savings)
|
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(javax.servlet.http.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(javax.servlet.http.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(javax.servlet.http.HttpServletRequest req, Site s, String prefix, String currentSiteId, String myWorkspaceSiteId, boolean includeSummary, boolean expandSite, boolean resetTools, boolean doPages, String toolContextPath, boolean loggedIn, List<String> siteProviders)
String getUserSpecificSiteTitle(Site site, boolean escaped)
site - the site in questionescaped - true if you want the site title HTML escaped, false otherwiseString getUserSpecificSiteTitle(Site site, boolean truncated, boolean escaped)
truncated - true if you want long titles to be truncated with an ellipsesgetUserSpecificSiteTitle(Site site, String userId)String getUserSpecificSiteTitle(Site site, boolean truncated, boolean escaped, List<String> siteProviders)
truncated - true if you want long titles to be truncated with an ellipsessiteProviders - the site providers corresponding to the specified site; if null, they will be looked upgetUserSpecificSiteTitle(Site site, String userId)SiteView getSitesView(SiteView.View view, javax.servlet.http.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–2020 Sakai Project. All rights reserved.