public abstract class BaseTemplateContentServlet extends BaseServlet
TemplateContentServlet
,
GuestTemplateContentServlet
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
BaseTemplateContentServlet.URLHelper
Helper to return context path for generating urls
|
BaseServlet.PathRefInfo
Modifier and Type | Field and Description |
---|---|
protected TemplateImageResolver |
imageResolver
Template Image resolver helper
|
FACES_SERVLET, KEY_ROOT_PATH, KEY_STORE
Constructor and Description |
---|
BaseTemplateContentServlet() |
Modifier and Type | Method and Description |
---|---|
protected abstract Map<String,Object> |
buildModel(ServiceRegistry services,
HttpServletRequest req,
org.alfresco.service.cmr.repository.NodeRef templateRef)
Builds the FreeMarker model
|
protected abstract org.apache.commons.logging.Log |
getLogger()
Gets the logger to use for this request.
|
protected void |
processTemplateRequest(HttpServletRequest req,
HttpServletResponse res,
boolean redirectToLogin)
Processes the template request using the current context i.e.
|
checkAccess, getServiceRegistry, redirectToLoginPage, redirectToLoginPage, resolveNamePath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, servletAuthenticate, servletAuthenticate, setNoCacheHeaders, validRedirectJSP
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
protected TemplateImageResolver imageResolver
protected abstract org.apache.commons.logging.Log getLogger()
This will show all debug entries from this class as though they came from the subclass.
protected abstract Map<String,Object> buildModel(ServiceRegistry services, HttpServletRequest req, org.alfresco.service.cmr.repository.NodeRef templateRef)
services
- Service Registry instancereq
- Http requesttemplateRef
- The node ref of the template to processprotected void processTemplateRequest(HttpServletRequest req, HttpServletResponse res, boolean redirectToLogin) throws ServletException, IOException
req
- The HTTP requestres
- The HTTP responseredirectToLogin
- Flag to determine whether to redirect to the login
page if the user does not have the correct permissionsServletException
IOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.