Package org.sakaiproject.portal.api
Interface SiteNeighbourhoodService
-
public interface SiteNeighbourhoodServiceThe SiteNeighbourhoodService provides a list of sites in the neighbourhood of the current context. This might be all sites, or it might be just the children, siblings and drect parents of a site. It is returned as a flat list.- Author:
- ieb
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Site>getSitesAtNode(HttpServletRequest request, Session session, boolean includeMyWorksite)Get a list of sites at the current node as defined by the requestStringlookupSiteAlias(String siteId, String content)Convert an ID that is normally displayed in the URL into something more readable.StringparseSiteAlias(String alias)Attempt to convert an alias back into a site reference.
-
-
-
Method Detail
-
getSitesAtNode
List<Site> getSitesAtNode(HttpServletRequest request, Session session, boolean includeMyWorksite)
Get a list of sites at the current node as defined by the request- Parameters:
request-session-includeMyWorksite-- Returns:
-
lookupSiteAlias
String lookupSiteAlias(String siteId, String content)
Convert an ID that is normally displayed in the URL into something more readable.- Parameters:
siteId- The ID to convert.content- The context that this site is presented in.- Returns:
-
-