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 |
onConfigure() |
void |
setRoles(String[] roles)
Sets the roles allowed to enable the button
|
newWidgetBehavior, onBeforeRender, onConfigure, onInitialize
getDefaultFormProcessing, getForm, getOnClickScript, initModel, onAfterSubmit, onComponentTag, onError, onSubmit, setDefaultFormProcessing, updateModel
add, add, checkRequired, clearInput, convertInput, convertValue, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getInput, getInputAsArray, getInputName, getModel, getModelObject, 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, setModel, setModelObject, setModelValue, setRequired, setType, shouldTrimInput, trim, updateAutoLabels, updateCollectionModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrder
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, 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, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, 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
getInputName
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
- public 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
Copyright © 2016 7thWeb. All rights reserved.