Class PageController
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
-
- edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServlet
-
- edu.cornell.mannlib.vitro.webapp.controller.freemarker.PageController
-
- All Implemented Interfaces:
MultipartRequestWrapper.ParsingStrategy,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
@WebServlet(name="PageController", urlPatterns="/pageController") public class PageController extends FreemarkerHttpServletController for getting data for pages defined in the display model. This controller passes these variables to the template: page: a map with information about the page from the display model. pageUri: the URI of the page that identifies the page in the model (note that this is not the URL address of the page). See implementations of PageDataGetter for more variables.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServlet
FreemarkerHttpServlet.Template
-
Nested classes/interfaces inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
VitroHttpServlet.PickListSorter
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDATA_GETTER_MAPprotected static StringDEFAULT_BODY_TEMPLATEprotected static StringDEFAULT_TITLE-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServlet
BODY_TEMPLATE_TYPE, PAGE_TEMPLATE_TYPE
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
HTML_MIMETYPE, JSON_LD_MIMETYPE, JSON_MIMETYPE, N3_MIMETYPE, publicDateFormat, RDFXML_MIMETYPE, TTL_MIMETYPE, XHTML_MIMETYPE
-
-
Constructor Summary
Constructors Constructor Description PageController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ResponseValuesprocessRequest(VitroRequest vreq)static voidputPageUri(javax.servlet.http.HttpServletRequest req, String pageUri)protected AuthorizationRequestrequiredActions(VitroRequest vreq)Get the required actions for all the data getters then AND them together.-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServlet
doException, doForward, doGet, doPost, doRdf, doRedirect, doResponse, doTemplate, getBeansWrapper, getDisplayModelMenu, getFreemarkerComponentsForJsp, getPageTemplateName, getPageTemplateValues, getThemeDir, getTitle, handleException, processTemplate, processTemplateToString, wrap, wrap, write, writePage, writeTemplate, writeTemplate
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
dumpRequestParameters, isAuthorizedToDisplayPage, maximumMultipartFileSize, redirectToInsufficientAuthorizationPage, redirectToLoginPage, redirectUnauthorizedRequest, service, sortForPickList, stashFileSizeException
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
-
-
-
-
Field Detail
-
DEFAULT_TITLE
protected static final String DEFAULT_TITLE
- See Also:
- Constant Field Values
-
DEFAULT_BODY_TEMPLATE
protected static final String DEFAULT_BODY_TEMPLATE
- See Also:
- Constant Field Values
-
DATA_GETTER_MAP
protected static final String DATA_GETTER_MAP
- See Also:
- Constant Field Values
-
-
Method Detail
-
requiredActions
protected AuthorizationRequest requiredActions(VitroRequest vreq)
Get the required actions for all the data getters then AND them together.- Overrides:
requiredActionsin classFreemarkerHttpServlet
-
processRequest
protected ResponseValues processRequest(VitroRequest vreq) throws Exception
- Overrides:
processRequestin classFreemarkerHttpServlet- Throws:
Exception
-
putPageUri
public static void putPageUri(javax.servlet.http.HttpServletRequest req, String pageUri)
-
-