public abstract class MountPathReLoader<T> extends Object implements IPageParams
TemplatePageMounter#load(org.apache.wicket.protocol.http.WebApplication)} for first time loading
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 |
---|
MountPathReLoader() |
Modifier and Type | Method and Description |
---|---|
static String |
filterActualPageName(String rawName)
The page name is constructed using
this#pageNameConstruct(PageIdentifier, boolean) . |
ContentPathConstructor |
getContentPathConstructor() |
static Status |
getDefaultStaus(Status... s)
What is the default Status to pick.
|
static String |
getPageNameFromURL(String url) |
static Status |
getStaus(String relativeUrl,
Map<String,String[]> paramMap)
Convenience method to check for status in the Page or Param Map.
|
static String |
getUrlSafeName(String name) |
protected void |
init() |
static String |
pageNameConstruct(Template associatedTemplate,
PageIdentifier page)
Get mount path location/name
|
static String |
pageNameConstruct(Template associatedTemplate,
PageIdentifier page,
boolean preview)
Get mount path location/name
Paths constructed here should be compatible with MountPathReLoader#getStaus(java.util.Map) |
void |
setContentPathConstructor(ContentPathConstructor contentPathConstructor) |
abstract String |
updateMountPath(T webContext,
PageIdentifier page,
Template t) |
protected void init()
public static final Status getDefaultStaus(Status... s)
public static final Status getStaus(String relativeUrl, Map<String,String[]> paramMap)
IPageParams.PREVIEW
MountPathReLoader#pageNameConstruct(com.neurosys.content.domain.PageIdentifier, boolean)
paramMap
- public static final String pageNameConstruct(Template associatedTemplate, PageIdentifier page)
page
- public static final String pageNameConstruct(Template associatedTemplate, PageIdentifier page, boolean preview)
MountPathReLoader#getStaus(java.util.Map)
page
- preview
- (true means Status.DRAFT
else Status.PUBLISH
public static final String filterActualPageName(String rawName)
this#pageNameConstruct(PageIdentifier, boolean)
. This can introduce some
conventions. Filter them to extract the actual name if required.public abstract String updateMountPath(T webContext, PageIdentifier page, Template t)
webContext
- as the Application speciifc Web-Context that needs to be updatedpage
- as the details of the Page that will update the Web Contextt
- as the Template
related to the page.public ContentPathConstructor getContentPathConstructor()
public void setContentPathConstructor(ContentPathConstructor contentPathConstructor)
Copyright © 2018. All rights reserved.