public abstract class SecuredButton extends Button
IJQuerySecurityProvider
WebSession
is implementing IJQuerySecurityProvider
if not provided.Constructor and Description |
---|
SecuredButton(String id,
com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider,
String... roles)
Constructor
|
SecuredButton(String id,
org.apache.wicket.model.IModel<String> model,
com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider,
String... roles)
Constructor
|
SecuredButton(String id,
org.apache.wicket.model.IModel<String> model,
String... roles)
Constructor
|
SecuredButton(String id,
String... roles)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected String |
getIcon()
Gets the icon being displayed in the button
|
boolean |
isLocked()
Indicates whether the button is locked.
|
protected void |
onComponentTag(org.apache.wicket.markup.ComponentTag tag) |
protected void |
onConfigure() |
void |
setRoles(String[] roles)
Sets the roles allowed to enable the button
|
newWidgetBehavior, onBeforeRender, onConfigure, onInitialize
getDefaultFormProcessing, getForm, getOnClickScript, initModel, onAfterSubmit, onComponentTagBody, onError, onSubmit, setDefaultFormProcessing, updateModel
add, add, checkRequired, clearInput, convertInput, convertValue, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getInput, getInputAsArray, getInputName, getModelValue, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputAsInt, inputAsInt, inputAsIntArray, inputChanged, internalOnModelChanged, invalid, isInputNullable, isMultiPart, isRequired, isValid, newValidatable, newValidationError, onDetach, onDisabled, onInvalid, onRequired, onValid, processChildren, processInput, remove, reportRequiredError, setConvertedInput, setLabel, setModelValue, setRequired, setType, shouldTrimInput, trim, updateAutoLabels, updateCollectionModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrder
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildren
add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, 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, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInputName
getDefaultModel, getDefaultModelObject, getModel, getModelObject, setDefaultModel, setDefaultModelObject, setModel, setModelObject
forEach, spliterator
public SecuredButton(String id, String... roles)
id
- the markup idroles
- list of roles allowed to enable the buttonpublic SecuredButton(String id, com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider, String... roles)
id
- the markup idprovider
- the IJQuerySecurityProvider
that will check rolesroles
- list of roles allowed to enable the buttonpublic SecuredButton(String id, org.apache.wicket.model.IModel<String> model, String... roles)
id
- the markup idmodel
- the IModel
roles
- list of roles allowed to enable the buttonpublic SecuredButton(String id, org.apache.wicket.model.IModel<String> model, com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider, String... roles)
id
- the markup idmodel
- the IModel
provider
- the IJQuerySecurityProvider
roles
- list of roles allowed to enable the buttonpublic void setRoles(String[] roles)
roles
- list of roles allowed to enable the buttonpublic final boolean isLocked()
IJQuerySecurityProvider.hasRole(String...)
protected String getIcon()
Button
getIcon
in class Button
JQueryIcon.NONE
by defaultprotected void onConfigure()
onConfigure
in class org.apache.wicket.Component
protected void onComponentTag(org.apache.wicket.markup.ComponentTag tag)
onComponentTag
in class org.apache.wicket.markup.html.form.Button
Copyright © 2019 7thWeb. All rights reserved.