public class SecureForm<T> extends org.apache.wicket.markup.html.form.Form<T> implements ISecureComponent
Form
with a ComponentSecurityCheck
attached.ENCTYPE_MULTIPART_FORM_DATA, METHOD_GET, METHOD_POST
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 |
---|
SecureForm(String id)
Construct.
|
SecureForm(String id,
org.apache.wicket.model.IModel<T> model)
Construct.
|
Modifier and Type | Method and Description |
---|---|
ISecurityCheck |
getSecurityCheck()
Gets the security check attached to this component.
|
boolean |
isActionAuthorized(String waspAction)
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.
|
protected void |
onBeforeRender() |
protected void |
onComponentTag(org.apache.wicket.markup.ComponentTag tag)
Override to make sure the form can not be submitted clientside.
|
void |
setSecurityCheck(ISecurityCheck check)
Sets (or removes in the case of null) the security check on this component.
|
add, appendDefaultButtonField, beforeUpdateFormComponentModels, callOnError, clearInput, delegateSubmit, encodeUrlInHiddenFields, error, findForm, findSubmittingButton, getActionUrl, getDefaultButton, getFileMaxSize, getFormValidators, getHiddenFieldId, getInputNamePrefix, getJsForInterfaceUrl, getMaxSize, getMethod, getModel, getModelObject, getRootForm, getRootFormRelativeId, getStatelessHint, getValidatorKeyPrefix, handleMultiPart, hasError, internalOnModelChanged, isMultiPart, isRootForm, isSubmitted, markFormComponentsInvalid, markFormComponentsValid, onComponentTagBody, onDetach, onError, onFileUploadException, onFormSubmitted, onFormSubmitted, onMethodMismatch, onSubmit, onValidate, onValidateModelObjects, process, registerJavaScriptNamespaces, remove, renderHead, renderPlaceholderTag, setDefaultButton, setFileMaxSize, setMaxSize, setModel, setModelObject, setMultiPart, setVersioned, updateFormComponentModels, validate, validateComponents, validateFormValidator, validateFormValidators, visitFormComponents, visitFormComponentsPostOrder, wantSubmitOnNestedFormSubmit, wantSubmitOnParentFormSubmit, writeHiddenFields, writeParamsAsHiddenFields
getWebPage, getWebRequest, getWebResponse, getWebSession
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onInitialize, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, 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, getSizeInBytes, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
public SecureForm(String id)
id
- public ISecurityCheck getSecurityCheck()
ISecureComponent
getSecurityCheck
in interface ISecureComponent
ISecureComponent.getSecurityCheck()
public boolean isActionAuthorized(String waspAction)
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()
public void setSecurityCheck(ISecurityCheck check)
ISecureComponent
setSecurityCheck
in interface ISecureComponent
ISecureComponent.setSecurityCheck(org.wicketstuff.security.checks.ISecurityCheck)
protected void onComponentTag(org.apache.wicket.markup.ComponentTag tag)
onComponentTag
in class org.apache.wicket.markup.html.form.Form<T>
Form.onComponentTag(org.apache.wicket.markup.ComponentTag)
protected void onBeforeRender()
onBeforeRender
in class org.apache.wicket.markup.html.form.Form<T>
Component.onBeforeRender()
Copyright © 2015. All rights reserved.