public class UserAttributesDetailsTemplatePanel<M extends HashMap<String,Serializable>> extends EntityDetailsTemplatePanel<M> implements IAdminPanel
org.apache.wicket.Component.ComponentModelChange, org.apache.wicket.Component.EnabledChange, org.apache.wicket.Component.IVisitor<T extends org.apache.wicket.Component>, org.apache.wicket.Component.VisibilityChange
CustomTemplateRenderAdapter.Nothing
ON_SAVE_EnsureAccessorExistsTransformer
authorizationModule
template
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
nothing
Constructor and Description |
---|
UserAttributesDetailsTemplatePanel(String id,
org.apache.wicket.model.IModel<M> userAttributesMapModel,
EntityTemplate template,
CustomTemplateRenderAdapter<M,org.apache.wicket.model.IModel,org.apache.wicket.Component,org.apache.wicket.MarkupContainer> defaultRenderAdapter) |
Modifier and Type | Method and Description |
---|---|
Class<? extends org.apache.wicket.markup.html.panel.Panel> |
getParentPanelClass()
The parent containing this
Panel , with the User model. |
protected void |
save(M userAttributes,
MetaItem item,
Object value)
If the value is for an existing
UserAttribute then update it,
otherwise add it on to the existing Map as a new UserAttribute value,
with User info from the parent panel.If the FacetMeta has #FacetMeta.getIncludeAsField set as true ,
then it will not saved by this panel. |
extractFieldValue, getAddToCollectionSectionName, getComponentForType, getComponents, getComponentsForCollectionType, getComponentsForType, getDataRelatedComponents, getItemRefId, getListForCollectionType, getModelForFieldOrAttribute, getResourcePaths, getResourceUploader, getStatelessHint, isSetValueInSameModel, mergeCollections, onBeforeRender, onInitialize, processItem, processSubmit, reorder, reset, setResourcePaths, setResourceUploader
checkAuthorizationToSave, getComponents, getListComponentName, isAuthorized, processItemList
addFacetToMetaItems, extractMetaItems, filter, filterClasses, getContainer, getTemplate, iterateAndAddFacetsToPage, setTemplate
onComponentTag, onComponentTagBody, renderHead
newHeaderPartContainer, renderHeadFromAssociatedMarkupFile
getMarkupType, getWebPage, getWebRequest
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeginRequest, onConfigure, onDetach, onEndRequest, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, 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
public UserAttributesDetailsTemplatePanel(String id, org.apache.wicket.model.IModel<M> userAttributesMapModel, EntityTemplate template, CustomTemplateRenderAdapter<M,org.apache.wicket.model.IModel,org.apache.wicket.Component,org.apache.wicket.MarkupContainer> defaultRenderAdapter)
protected void save(M userAttributes, MetaItem item, Object value) throws Exception
UserAttribute
then update it,
otherwise add it on to the existing Map
as a new UserAttribute
value,
with User
info from the parent panel.FacetMeta
has #FacetMeta.getIncludeAsField
set as true
,
then it will not saved by this panel.save
in class EntityDetailsTemplatePanel<M extends HashMap<String,Serializable>>
userAttributes
- - Map of existing UserAttributesitem
- - MetaItem
that contains the FacetMeta
from the fieldvalue
- - input value from the fieldException
public Class<? extends org.apache.wicket.markup.html.panel.Panel> getParentPanelClass()
Panel
, with the User
model.Class
- default value UserAttributesDetailsPanel
Copyright © 2018. All rights reserved.