Class SmartMappingTable<P extends Containerable>
java.lang.Object
org.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.panel.Panel
com.evolveum.midpoint.gui.api.component.BasePanel<String>
com.evolveum.midpoint.gui.impl.page.admin.resource.component.wizard.schemaHandling.objectType.attribute.table.SmartMappingTable<P>
- All Implemented Interfaces:
Serializable,Iterable<org.apache.wicket.Component>,org.apache.wicket.event.IEventSink,org.apache.wicket.event.IEventSource,org.apache.wicket.feedback.IFeedbackContributor,org.apache.wicket.IConverterLocator,org.apache.wicket.IMetadataContext<Serializable,,org.apache.wicket.Component> org.apache.wicket.IQueueRegion,org.apache.wicket.markup.html.IHeaderContributor,org.apache.wicket.request.component.IRequestableComponent,org.apache.wicket.util.IHierarchical<org.apache.wicket.Component>,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
AssociationAttributeMappingsTable
Base component for displaying and managing mapping definitions and suggestion in a tile/table view.
Responsibilities:
- Holds state (direction, search, suggestion toggle, models)
- Creates and wires the table, data provider, and search
- Handles refresh, grouping, and mapping lifecycle operations
- Provides extension hooks for subclasses (columns, provider, UI behavior)
Collaborators:
SmartMappingColumns– column definitionsSmartMappingMenus– inline menu compositionSmartMappingActions– action logic
- See Also:
-
Field Summary
Fields inherited from class org.apache.wicket.markup.html.panel.Panel
PANELFields inherited from class org.apache.wicket.Component
ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING, RFLAG_CONTAINER_HAS_REMOVALS -
Constructor Summary
ConstructorsConstructorDescriptionSmartMappingTable(@NotNull String id, @NotNull org.apache.wicket.model.IModel<MappingDirection> mappingDirectionModel, @NotNull org.apache.wicket.model.IModel<Boolean> suggestionToggleModel, @NotNull org.apache.wicket.model.IModel<PrismContainerValueWrapper<P>> refAttributeDefValue, @NotNull String resourceOid) -
Method Summary
Modifier and TypeMethodDescriptionacceptSuggestionItemPerformed(@NotNull org.apache.wicket.model.IModel<PrismContainerValueWrapper<MappingType>> rowModel, @NotNull org.apache.wicket.ajax.AjaxRequestTarget target) protected voidaddAdditionalNoValueToolbarButtons(List<org.apache.wicket.Component> toolbarButtonsList, String idButton) protected voidbuildSimulationResultPanel(org.apache.wicket.ajax.AjaxRequestTarget target, org.apache.wicket.model.IModel<SimulationResultType> simulationResultTypeModel) protected voidcreateDuplicateValuePerform(PrismContainerValue<MappingType> value, org.apache.wicket.ajax.AjaxRequestTarget target) protected org.apache.wicket.ComponentcreateMappingTypeDropdownButton(String idButton) protected @Nullable PrismContainerValueWrapper<MappingType>createNewValue(@Nullable PrismContainerValue<MappingType> value, @Nullable org.apache.wicket.ajax.AjaxRequestTarget target) protected @NotNull org.apache.wicket.Componentprotected @NotNull GroupedMappingDataProviderprotected voiddeleteItemPerform(@NotNull PrismContainerValueWrapper<MappingType> value) protected boolean@NotNull Set<PrismContainerValueWrapper<MappingType>>protected @NotNull List<org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<PrismContainerValueWrapper<MappingType>,String>> protected org.apache.wicket.model.IModel<PrismContainerWrapper<MappingType>>protected @Nullable StringgetLifecycleState(@NotNull PrismContainerValueWrapper<MappingType> mappingWrapper) protected MappingDirectionprotected final @NotNull LoadableModel<PrismContainerDefinition<MappingType>>protected org.apache.wicket.model.IModel<MappingUsedFor>protected Stringprotected @Nullable GroupedMappingDataProviderprotected @NotNull org.apache.wicket.model.IModel<? extends PrismContainerDefinition<?>>protected @Nullable ItemPathTypegetRefPath(@NotNull PrismContainerValueWrapper<MappingType> mappingWrapper) protected @NotNull Stringprotected abstract ResourceTypeorg.apache.wicket.model.IModel<Search>protected @NotNull Stringprotected org.apache.wicket.model.IModel<String>protected @Nullable com.evolveum.midpoint.smart.api.info.StatusInfo<?>protected org.apache.wicket.model.IModel<Boolean>getTable()protected UserProfileStorage.TableIdprotected @Nullable ItemPathTypegetTargetPath(@NotNull PrismContainerValueWrapper<MappingType> mappingWrapper) protected org.apache.wicket.model.IModel<PrismContainerValueWrapper<P>>protected voidinitPanelToolbarButtons(@NotNull org.apache.wicket.markup.repeater.RepeatingView toolbar) protected booleanprotected booleanprotected final booleanprotected final booleanprotected booleanprotected booleanbooleanisValidFormComponents(@Nullable org.apache.wicket.ajax.AjaxRequestTarget target) protected voidprotected voidperformOnEditMapping(@NotNull org.apache.wicket.ajax.AjaxRequestTarget target, @NotNull org.apache.wicket.model.IModel<PrismContainerValueWrapper<MappingType>> rowModel) voidrefreshAndDetach(@Nullable org.apache.wicket.ajax.AjaxRequestTarget target) protected voidresolveDeletedItem(@NotNull PrismContainerValueWrapper<MappingType> value) voidupdateTileView(org.apache.wicket.ajax.AjaxRequestTarget target) Methods inherited from class com.evolveum.midpoint.gui.api.component.BasePanel
createComponentPath, createModel, createStringResource, createStringResource, createStringResource, createStringResource, createStringResource, createStringResource, createStringResource, getBrowserTabSessionStorage, getFeedbackPanel, getMidpointConfiguration, getModel, getModelObject, getPageBase, getParentPage, getPrismContext, getRegistry, getSchemaService, getSession, getSessionStorage, getString, getString, getSubscriptionState, getWebApplicationConfiguration, showResultMethods inherited from class org.apache.wicket.markup.html.panel.Panel
getRegionMarkup, newMarkupSourcingStrategyMethods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionMethods inherited from class org.apache.wicket.MarkupContainer
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onComponentTagBody, onDetach, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildrenMethods inherited from class org.apache.wicket.Component
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, getMarkupTag, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, 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, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.wicket.IQueueRegion
dequeue, newDequeueContextMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SmartMappingTable
public SmartMappingTable(@NotNull @NotNull String id, @NotNull @NotNull org.apache.wicket.model.IModel<MappingDirection> mappingDirectionModel, @NotNull @NotNull org.apache.wicket.model.IModel<Boolean> suggestionToggleModel, @NotNull @NotNull org.apache.wicket.model.IModel<PrismContainerValueWrapper<P>> refAttributeDefValue, @NotNull @NotNull String resourceOid)
-
-
Method Details
-
getTableId
-
onInitialize
protected void onInitialize()- Overrides:
onInitializein classorg.apache.wicket.MarkupContainer
-
getSearchModel
-
getColumns
@NotNull protected @NotNull List<org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<PrismContainerValueWrapper<MappingType>,String>> getColumns() -
displayNoValuePanel
protected boolean displayNoValuePanel() -
createSearchHeader
-
createTableProvider
-
isGroupedSuggestion
protected boolean isGroupedSuggestion() -
isAssociationMappingTable
protected boolean isAssociationMappingTable() -
getRefPath
@Nullable protected @Nullable ItemPathType getRefPath(@NotNull @NotNull PrismContainerValueWrapper<MappingType> mappingWrapper) -
getLifecycleState
@Nullable protected @Nullable String getLifecycleState(@NotNull @NotNull PrismContainerValueWrapper<MappingType> mappingWrapper) -
getTargetPath
@Nullable protected @Nullable ItemPathType getTargetPath(@NotNull @NotNull PrismContainerValueWrapper<MappingType> mappingWrapper) -
getNewObjectButtonCssClass
-
initPanelToolbarButtons
protected void initPanelToolbarButtons(@NotNull @NotNull org.apache.wicket.markup.repeater.RepeatingView toolbar) -
performOnEditMapping
protected void performOnEditMapping(@NotNull @NotNull org.apache.wicket.ajax.AjaxRequestTarget target, @NotNull @NotNull org.apache.wicket.model.IModel<PrismContainerValueWrapper<MappingType>> rowModel) -
isValidFormComponents
public boolean isValidFormComponents(@Nullable @Nullable org.apache.wicket.ajax.AjaxRequestTarget target) -
getValueModel
-
getMappingTypeDefinition
@NotNull protected final @NotNull LoadableModel<PrismContainerDefinition<MappingType>> getMappingTypeDefinition() -
getRefColumnDefinitionModel
@NotNull protected @NotNull org.apache.wicket.model.IModel<? extends PrismContainerDefinition<?>> getRefColumnDefinitionModel() -
getMappingDirectionType
-
isInbound
protected final boolean isInbound() -
isOutbound
protected final boolean isOutbound() -
getContainerModel
-
createNewValue
@Nullable protected @Nullable PrismContainerValueWrapper<MappingType> createNewValue(@Nullable @Nullable PrismContainerValue<MappingType> value, @Nullable @Nullable org.apache.wicket.ajax.AjaxRequestTarget target) -
createDuplicateValuePerform
protected void createDuplicateValuePerform(PrismContainerValue<MappingType> value, org.apache.wicket.ajax.AjaxRequestTarget target) -
resolveDeletedItem
-
deleteItemPerform
-
refreshAndDetach
public void refreshAndDetach(@Nullable @Nullable org.apache.wicket.ajax.AjaxRequestTarget target) -
updateTileView
public void updateTileView(org.apache.wicket.ajax.AjaxRequestTarget target) -
getStatusInfo
@Nullable protected @Nullable com.evolveum.midpoint.smart.api.info.StatusInfo<?> getStatusInfo(PrismContainerValueWrapper<MappingType> value) -
findResourceObjectTypeDefinition
protected PrismContainerValueWrapper<ResourceObjectTypeDefinitionType> findResourceObjectTypeDefinition() -
getAcceptedSuggestionsCache
-
getSuggestionToggleModel
-
getMappingUsedForModel
-
getSearchTextModel
-
getSearchText
-
getResourceOid
-
getTable
-
getProvider
-
addAdditionalNoValueToolbarButtons
-
acceptSuggestionItemPerformed
public PrismContainerValueWrapper<MappingType> acceptSuggestionItemPerformed(@NotNull @NotNull org.apache.wicket.model.IModel<PrismContainerValueWrapper<MappingType>> rowModel, @NotNull @NotNull org.apache.wicket.ajax.AjaxRequestTarget target) -
createMappingTypeDropdownButton
-
getResourceType
-
buildSimulationResultPanel
protected void buildSimulationResultPanel(org.apache.wicket.ajax.AjaxRequestTarget target, org.apache.wicket.model.IModel<SimulationResultType> simulationResultTypeModel) -
isSuggestionSwitchSupported
protected boolean isSuggestionSwitchSupported() -
isSimulationSupported
protected boolean isSimulationSupported()
-