public class PublishTemplatePage<T extends Template<?>,C extends AbstractContent<?,?>> extends TemplatePage<T,C> implements org.apache.wicket.markup.html.IHeaderContributor, IPageParams
TemplatePage
, which allows for the following of Status
.PUBLISH or Status
.PREVIEW'd info:
PublishContentPanel
)PublishContentPanel
); body content supplied by bean in Spring by name publishableContentModel i.e. PublishableMarkupContentModel
getContentService()
Modifier and Type | Field and Description |
---|---|
protected Map<String,List<String>> |
facetContentCache
Local cache, supports facet name and facet array content (if not an array the list will contain just 1 element)
|
contentDesc, template, templateService
ENABLE, FLAG_CONFIGURED, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER
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 |
---|
PublishTemplatePage() |
Modifier and Type | Method and Description |
---|---|
protected <T extends FacetMeta> |
getComponentForFacet(C contentDesc,
T facetMeta)
Called by and added to page my iterateAndAddContentFacetsToPage().
Note: Addition contextual info about Locale & ContentContext can be derived by the
Component.getLocale() & TemplatePage.getPageContext() methods. |
protected C |
getContentDescriber(Status status)
This method does not guarantee the Entity from the DataStore neither does it guarantee a valid mapping; it simply guarantees an Identity Object
that can Identify the
ContentDescriber by name and Status . |
protected GenericContentService<C,?,?> |
getContentService() |
void |
renderHead(org.apache.wicket.markup.html.IHeaderResponse response) |
allowOnPage, checkPageMatchesTemplate, fetchContentForPage, getContainerForFacet, getContent, getFacetContainer, getNewContentInstance, getPageContext, getPageLocale, getTemplate, getTemplatePageClass, iterateAndAddContentFacetsToPage, onInitialize
configureResponse, getMarkupType, getUrlCompressor, getWebRequestCycle, homePageLink, onAfterRender, onNewBrowserWindow, setHeaders
afterCallComponent, beforeCallComponent, componentChanged, componentRendered, detachModels, dirty, endComponentRender, expireOldestVersion, getAjaxVersionNumber, getAutoIndex, getAutoIndex2, getCurrentVersionNumber, getId, getNumericId, getPageClass, getPageId, getPageMap, getPageMapEntry, getPageMapName, getPageParameters, getPageReference, getSizeInBytes, getStatelessHint, getVersion, getVersions, hierarchyAsString, ignoreVersionMerge, internalOnModelChanged, isBookmarkable, isErrorPage, isPageStateless, moveToPageMap, newVersionManager, onBeforeRender, onDetach, onPageAttached, onRedirect, onRender, prepareForRender, removePersistedFormData, renderPage, rollbackPage, setNumericId, setStatelessHint, startComponentRender, toString, writeReplace
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onComponentTagBody, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAttach, onBeginRequest, onComponentTag, onConfigure, onEndRequest, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
protected GenericContentService<C,?,?> getContentService()
protected C getContentDescriber(Status status)
ContentDescriber
by name and Status
.getContentDescriber
in class TemplatePage<T extends Template<?>,C extends AbstractContent<?,?>>
status
- as Status
protected <T extends FacetMeta> org.apache.wicket.Component getComponentForFacet(C contentDesc, T facetMeta)
Locale
& ContentContext
can be derived by the
Component.getLocale()
& TemplatePage.getPageContext()
methods.
This method assumes all content is Publish'able (i.e is ideal for PublishableMarkupContentModel
; The Template
associated with the ContentDescriber
has a publisher.
getComponentForFacet
in class TemplatePage<T extends Template<?>,C extends AbstractContent<?,?>>
contentDesc
- as ContentDescriber
facetMeta
- as T extends ContentFacet
.#iterateAndAddContentFacetsToPage(ContentDescriber, Collection)
public void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IHeaderContributor
Copyright © 2018. All rights reserved.