public interface Portal
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_ERROR
ThreadLocal attribute set while we are processing an error.
|
static String |
ATTR_SITE_PAGE
Session attribute root for storing a site's last page visited - just
append the site id.
|
static String |
CONFIG_AUTO_RESET
Configuration option to enable/disable state reset on navigation change
|
static String |
CONFIG_DEFAULT_TABS |
static String |
DEFAULT_PORTAL_CONTEXT
The default portal name is none is specified.
|
static int |
ERROR_GALLERY |
static int |
ERROR_SITE
Error response modes.
|
static int |
ERROR_WORKSITE |
static String |
JSR_168_PRE_RENDER
Tool property used to indicate if JSR_168 tools are to be pre-rendered
as they are being placed in the context.
|
static String |
PARAM_FORCE_LOGIN
Parameter value to allow anonymous users of gallery mode to be sent to
the gateway site as anonymous user (like the /portal URL) instead of
making them log in (like worksite, site, and tool URLs).
|
static String |
PARAM_FORCE_LOGOUT |
static String |
TOOL_DIRECTURL_ENABLED_PROP
Tool property to allow the enabling/disabling of the direct url linking UI
|
static String |
TOOLCONFIG_HELP_DOCUMENT_ID |
static String |
TOOLCONFIG_HELP_DOCUMENT_URL |
static String |
TOOLCONFIG_SHOW_HELP_BUTTON |
static String |
TOOLCONFIG_SHOW_RESET_BUTTON
Names of tool config/registration attributes that control the rendering
of the tool's titlebar
|
| Modifier and Type | Method and Description |
|---|---|
String |
calcSiteType(String siteId)
work out the type of the site based on the site id.
|
void |
doError(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Session session,
int mode)
populate the model with error status
|
void |
doLogin(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Session session,
String returnPath,
boolean skipContainer)
perform login
|
void |
doLogout(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Session session,
String returnPath)
Process a logout
|
javax.servlet.http.Cookie |
findCookie(javax.servlet.http.HttpServletRequest req,
String name)
Find a cookie by this name from the request
|
void |
forwardPortal(ActiveTool tool,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
ToolConfiguration siteTool,
String skin,
String toolContextPath,
String toolPathInfo)
forward to a portal url
|
void |
forwardTool(ActiveTool tool,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Placement placement,
String skin,
String toolContextPath,
String toolPathInfo)
forward the request to a tool
|
PageFilter |
getPageFilter()
Get a the page Filter Implementation
|
String |
getPlacement(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Session session,
String placementId,
boolean doPage)
get the placement for the request
|
String |
getPortalContext()
Get the context name of the portal.
|
String |
getPortalPageUrl(ToolConfiguration siteTool)
get the portal page URL base on the tool supplied
|
javax.servlet.ServletContext |
getServletContext()
Get the servlet context associated with the portal
|
PortalSiteHelper |
getSiteHelper() |
SiteNeighbourhoodService |
getSiteNeighbourhoodService() |
String |
getUserEidBasedSiteId(String userId)
get the site id for the user
|
void |
includeBottom(PortalRenderContext rcontext)
include the model section that relates to the bottom of the page.
|
void |
includeLogin(PortalRenderContext rcontext,
javax.servlet.http.HttpServletRequest req,
Session session)
include the part od the view tree needed to render login
|
PortalRenderContext |
includePortal(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Session session,
String siteId,
String toolId,
String toolContextPath,
String prefix,
boolean doPages,
boolean resetTools,
boolean includeSummary,
boolean expandSite)
populate the view tree for the model
|
void |
includeSubSites(PortalRenderContext rcontext,
javax.servlet.http.HttpServletRequest req,
Session session,
String siteId,
String toolContextPath,
String prefix,
boolean resetTools)
Return the sub sites below a particular site
Map.
|
Map |
includeTool(javax.servlet.http.HttpServletResponse res,
javax.servlet.http.HttpServletRequest req,
ToolConfiguration placement)
include the tool part of the view tree
|
Map |
includeTool(javax.servlet.http.HttpServletResponse res,
javax.servlet.http.HttpServletRequest req,
ToolConfiguration placement,
boolean inlineTool)
include the tool part of the view tree
|
boolean |
isPortletPlacement(Placement placement)
Indicate if a placement is a JSR-168 placement
|
boolean |
redirectIfLoggedOut(javax.servlet.http.HttpServletResponse res)
perform a redirect if logged out
|
void |
sendResponse(PortalRenderContext rcontext,
javax.servlet.http.HttpServletResponse res,
String template,
String contentType)
prepare the response and send it to the render engine
|
void |
setPageFilter(PageFilter pageFilter)
Set page Filter
|
void |
setupForward(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Placement p,
String skin)
setup in preparation for a forward
|
PortalRenderContext |
startPageContext(String siteType,
String title,
String skin,
javax.servlet.http.HttpServletRequest request,
Site site)
get a new render context from the render engine
|
static final int ERROR_SITE
static final int ERROR_GALLERY
static final int ERROR_WORKSITE
static final String PARAM_FORCE_LOGIN
static final String PARAM_FORCE_LOGOUT
static final String ATTR_ERROR
static final String ATTR_SITE_PAGE
static final String DEFAULT_PORTAL_CONTEXT
static final String CONFIG_AUTO_RESET
static final String TOOLCONFIG_SHOW_RESET_BUTTON
static final String TOOLCONFIG_SHOW_HELP_BUTTON
static final String TOOLCONFIG_HELP_DOCUMENT_ID
static final String TOOLCONFIG_HELP_DOCUMENT_URL
static final String CONFIG_DEFAULT_TABS
static final String JSR_168_PRE_RENDER
static final String TOOL_DIRECTURL_ENABLED_PROP
void sendResponse(PortalRenderContext rcontext, javax.servlet.http.HttpServletResponse res, String template, String contentType) throws IOException
rcontext - res - template - contentType - IOExceptionString getPlacement(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, Session session, String placementId, boolean doPage) throws ToolException
req - res - session - placementId - doPage - ToolExceptionvoid doLogin(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Session session,
String returnPath,
boolean skipContainer)
throws ToolException
req - res - session - returnPath - skipContainer - ToolExceptionvoid doLogout(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Session session,
String returnPath)
throws ToolException
req - Request objectres - Response objectsession - Current sessionreturnPath - if not null, the path to use for the end-user browser redirect
after the logout is complete. Leave null to use the configured
logged out URL.ToolExceptionPortalRenderContext startPageContext(String siteType, String title, String skin, javax.servlet.http.HttpServletRequest request, Site site)
siteType - title - skin - request - site - boolean redirectIfLoggedOut(javax.servlet.http.HttpServletResponse res)
throws IOException
res - IOExceptionString getPortalPageUrl(ToolConfiguration siteTool)
siteTool - void doError(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Session session,
int mode)
throws ToolException,
IOException
req - res - session - mode - ToolExceptionIOExceptionvoid forwardPortal(ActiveTool tool, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, ToolConfiguration siteTool, String skin, String toolContextPath, String toolPathInfo) throws ToolException, IOException
tool - req - res - siteTool - skin - toolContextPath - toolPathInfo - IOExceptionToolExceptionvoid setupForward(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Placement p,
String skin)
throws ToolException
req - res - p - skin - ToolExceptionvoid includeBottom(PortalRenderContext rcontext)
rcontext - String calcSiteType(String siteId)
siteId - void includeLogin(PortalRenderContext rcontext, javax.servlet.http.HttpServletRequest req, Session session)
rcontext - req - session - void forwardTool(ActiveTool tool, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, Placement placement, String skin, String toolContextPath, String toolPathInfo) throws ToolException
tool - req - res - siteTool - skin - toolContextPath - toolPathInfo - ToolExceptionString getUserEidBasedSiteId(String userId)
userId - PortalRenderContext includePortal(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, Session session, String siteId, String toolId, String toolContextPath, String prefix, boolean doPages, boolean resetTools, boolean includeSummary, boolean expandSite) throws ToolException, IOException
req - res - session - siteId - toolId - toolContextPath - prefix - doPages - resetTools - includeSummary - expandSite - ToolExceptionIOExceptionMap includeTool(javax.servlet.http.HttpServletResponse res, javax.servlet.http.HttpServletRequest req, ToolConfiguration placement) throws IOException
res - req - placement - IOExceptionMap includeTool(javax.servlet.http.HttpServletResponse res, javax.servlet.http.HttpServletRequest req, ToolConfiguration placement, boolean inlineTool) throws IOException
res - req - placement - inlineTool - IOExceptionString getPortalContext()
javax.servlet.ServletContext getServletContext()
void includeSubSites(PortalRenderContext rcontext, javax.servlet.http.HttpServletRequest req, Session session, String siteId, String toolContextPath, String prefix, boolean resetTools)
rcontext - req - siteId - toolContextPath - prefix - loggedIn - PageFilter getPageFilter()
void setPageFilter(PageFilter pageFilter)
PortalSiteHelper getSiteHelper()
SiteNeighbourhoodService getSiteNeighbourhoodService()
boolean isPortletPlacement(Placement placement)
javax.servlet.http.Cookie findCookie(javax.servlet.http.HttpServletRequest req,
String name)
req - The servlet request.name - The cookie nameCopyright © 2003–2018 Sakai Project. All rights reserved.