public class commonAdminTemplate extends org.apache.wicket.markup.html.WebPage implements IPageParams, AuthorizedComponent, org.apache.wicket.markup.html.IHeaderContributor
Modifier and Type | Field and Description |
---|---|
protected Properties |
adminConfiguration |
protected static org.slf4j.Logger |
audit |
protected AuthorizationModule<Void> |
authorizationModule |
protected static String |
PROPERTY_PAGE_HEADER |
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 |
---|
commonAdminTemplate() |
commonAdminTemplate(org.apache.wicket.PageParameters params) |
Modifier and Type | Method and Description |
---|---|
protected void |
addNotifications() |
protected String |
getConfigProperty(Object o,
Object keyDeriver,
String key)
Passes class name as namespace to
ContextUtils.getConfigProperty(String, Object, Map, Object, String) . |
protected String |
getConfigProperty(String key,
String defaultValue) |
protected Module |
getModuleForPage()
Derive which Module this page belongs to.
|
String |
getPageHeadCaption() |
protected void |
handleAuthState(IAuthorizationService.AuthState state)
A
Consumer /Handler for AuthState; define custom action.Ensure user is authorized and no hacking on page. One can override this to redirect to say a page, run some service, log etc. |
void |
initPage() |
void |
renderHead(org.apache.wicket.markup.html.IHeaderResponse response) |
protected void |
securePage(User user) |
void |
setPageHeadCaption(String pageHeadCaption) |
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, onInitialize, 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 static org.slf4j.Logger audit
@SpringBean(name="adminConfiguration") protected Properties adminConfiguration
protected static final String PROPERTY_PAGE_HEADER
protected AuthorizationModule<Void> authorizationModule
public commonAdminTemplate(org.apache.wicket.PageParameters params)
public commonAdminTemplate()
protected String getConfigProperty(Object o, Object keyDeriver, String key)
ContextUtils.getConfigProperty(String, Object, Map, Object, String)
.
Rest params same as called Util method.public void initPage()
protected void addNotifications()
protected void handleAuthState(IAuthorizationService.AuthState state) throws AuthorizationException
Consumer
/Handler for AuthState; define custom action.AuthorizationException
protected void securePage(User user)
public String getPageHeadCaption()
public void setPageHeadCaption(String pageHeadCaption)
protected Module getModuleForPage()
IModuleService
insteadpublic void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IHeaderContributor
Copyright © 2018. All rights reserved.