public class SecureWebPage extends org.apache.wicket.markup.html.WebPage implements ISecurePage
setSecurityCheck(ISecurityCheck)
is too late to be considered for
IAuthorizationStrategy.isInstantiationAuthorized(Class)
so please check your wasp
implementation for details on how to do that. Or see ClassAuthorizationStrategy
for one
way of doing it.ENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING
Constructor and Description |
---|
SecureWebPage() |
SecureWebPage(org.apache.wicket.model.IModel<?> model) |
SecureWebPage(org.apache.wicket.request.mapper.parameter.PageParameters parameters) |
Modifier and Type | Method and Description |
---|---|
ISecurityCheck |
getSecurityCheck()
Gets the security check attached to this component.
|
boolean |
isActionAuthorized(String action)
Wrapper method for the isActionAuthorized method on component.
|
boolean |
isActionAuthorized(WaspAction action)
Wrapper method for the isActionAuthorized method on component.
|
boolean |
isAuthenticated()
authenticates the user for this component.
|
void |
setSecurityCheck(ISecurityCheck check)
Sets (or removes in the case of null) the security check on this component.
|
configureResponse, getMarkupType, homePageLink, onAfterRender, onRender, renderXmlDecl, reportMissingHead, setHeaders, setNextAvailableId
componentChanged, componentRendered, detachModels, dirty, dirty, endComponentRender, getAutoIndex, getId, getPageClass, getPageId, getPageParameters, getPageReference, getRenderCount, getSizeInBytes, getStatelessHint, hierarchyAsString, internalOnModelChanged, internalPrepareForRender, isBookmarkable, isErrorPage, isPageStateless, onBeforeRender, onDetach, onInitialize, renderPage, setFreezePageId, setNumericId, setStatelessHint, setWasCreatedBookmarkable, startComponentRender, toString, wasCreatedBookmarkable, wasRendered
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public SecureWebPage()
public SecureWebPage(org.apache.wicket.request.mapper.parameter.PageParameters parameters)
parameters
- public SecureWebPage(org.apache.wicket.model.IModel<?> model)
model
- public final void setSecurityCheck(ISecurityCheck check)
ISecureComponent
setSecurityCheck
in interface ISecureComponent
ISecureComponent.setSecurityCheck(org.wicketstuff.security.checks.ISecurityCheck)
public final ISecurityCheck getSecurityCheck()
ISecureComponent
getSecurityCheck
in interface ISecureComponent
ISecureComponent.getSecurityCheck()
public boolean isActionAuthorized(String action)
ISecureComponent
isActionAuthorized
in interface ISecureComponent
ISecureComponent.isActionAuthorized(java.lang.String)
public boolean isActionAuthorized(WaspAction action)
ISecureComponent
isActionAuthorized
in interface ISecureComponent
ISecureComponent.isActionAuthorized(WaspAction)
public boolean isAuthenticated()
ISecureComponent
Page
s.isAuthenticated
in interface ISecureComponent
ISecureComponent.isAuthenticated()
Copyright © 2015. All rights reserved.