public class TemplatePageMounter extends MountPathReLoader<org.apache.wicket.protocol.http.WebApplication> implements IPathLoader
HierarchyContentSource (repository for dynamic content). (Spring Component so mounts automatically)
Will associate a path for each Page/ContentDescriber that has a associated with it.
Template(TemplatePage) wise. So, if we disable a Template (@see TemplateService#getTemplates()), then the pages for that will not be mounted. This fact
can be used for more advanced use cases of disabling a set of pages by abstract/grouping pages in different templates etc also.
Or using an extended version of template (AuthorizedTemplate) for Authorization scenarios to restrict which users can use a template. (Community)
SiteApplication on Boot since its also a IPathLoader type.{@link StaticPageMountPointLoader}ALL_RECS, CAMPAIGN_ID, LANG, PAGE_ID, PAGE_MODE_MOBILE, PAGE_MODE_POPUP, PAGE_NAME, PAGE_NUM, PAGE_PARAM, PAGE_PARENT, PAGE_PARENT_ID, PAGE_REFERRER, PAGE_TYPE, PREVIEW| Constructor and Description |
|---|
TemplatePageMounter() |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy> |
getLoadPoints() |
TemplateService |
getTemplateService() |
void |
init() |
void |
load(org.apache.wicket.protocol.http.WebApplication application)
Allows us to inject interesting strategies on our own
WicketStuff MountPath Annotation
This is for situations of dynamic mount/load point generation and loading which may be assumed by the caller on the interface. |
void |
setLoadPoints(List<org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy> loadPoints) |
void |
setTemplateService(TemplateService templateService) |
String |
updateMountPath(org.apache.wicket.protocol.http.WebApplication application,
PageIdentifier page,
Template t)
Allow event based update/change of mapping for a Page.
|
filterActualPageName, getContentPathConstructor, getDefaultStaus, getPageNameFromURL, getStaus, getUrlSafeName, pageNameConstruct, pageNameConstruct, setContentPathConstructor@PostConstruct public void init()
init in class MountPathReLoader<org.apache.wicket.protocol.http.WebApplication>public List<org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy> getLoadPoints()
getLoadPoints in interface IPathLoaderIRequestTargetUrlCodingStrategy @nullable truepublic void setLoadPoints(List<org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy> loadPoints)
setLoadPoints in interface IPathLoaderpublic void load(org.apache.wicket.protocol.http.WebApplication application)
IPathLoaderload in interface IPathLoaderapplication - as WebApplication @Nuallble falsepublic String updateMountPath(org.apache.wicket.protocol.http.WebApplication application, PageIdentifier page, Template t)
TemplatePages.updateMountPath in class MountPathReLoader<org.apache.wicket.protocol.http.WebApplication>application - page - as PageIdentifier @nullable falsetemplate - as Template @nullable true; if null will remove the pathpublic TemplateService getTemplateService()
public void setTemplateService(TemplateService templateService)
Copyright © 2018. All rights reserved.