Class AbstractAssignmentTypePanel
- 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<C>
-
- com.evolveum.midpoint.gui.impl.component.ContainerableListPanel<C,PrismContainerValueWrapper<C>>
-
- com.evolveum.midpoint.gui.impl.component.MultivalueContainerListPanel<C>
-
- com.evolveum.midpoint.gui.impl.component.MultivalueContainerListPanelWithDetailsPanel<AssignmentType>
-
- com.evolveum.midpoint.gui.impl.page.admin.assignmentholder.component.assignmentType.AbstractAssignmentTypePanel
-
- 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:
AbstractAssignmentPanel,AbstractInducementPanel
public abstract class AbstractAssignmentTypePanel extends MultivalueContainerListPanelWithDetailsPanel<AssignmentType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intassignmentsRequestsLimitprotected static StringOPERATION_LOAD_ASSIGNMENT_TARGET_RELATIONSprotected static StringOPERATION_LOAD_ASSIGNMENTS_LIMITprotected static StringOPERATION_LOAD_ASSIGNMENTS_TARGET_OBJ-
Fields inherited from class com.evolveum.midpoint.gui.impl.component.MultivalueContainerListPanelWithDetailsPanel
ID_DETAILS, ID_ITEM_DETAILS, ID_ITEMS_DETAILS
-
-
Constructor Summary
Constructors Constructor Description AbstractAssignmentTypePanel(String id, org.apache.wicket.model.IModel<PrismContainerWrapper<AssignmentType>> model, ContainerPanelConfigurationType config, Class<? extends Objectable> type, String oid)
-
Method Summary
-
Methods inherited from class com.evolveum.midpoint.gui.impl.component.MultivalueContainerListPanelWithDetailsPanel
editItemPerformed, getDetailsPanelContainer, getDetailsPanelItemsList, initDetailsPanel, isButtonPanelVisible, isListPanelVisible, itemDetailsPerformed, itemDetailsPerformed, newItemPerformed, setItemDetailsVisible
-
Methods inherited from class com.evolveum.midpoint.gui.impl.component.MultivalueContainerListPanel
createDeleteColumnAction, createEditColumnAction, createNewItemContainerValueWrapper, createStyleClassModelForNewObjectIcon, getDefaultMenuActions, getFocusObject, getIconForNewObjectButton, getKeyOfTitleForNewObjectButton, getPerformedSelectedItems, getSelectedItems, getSelectedRealObjects
-
Methods inherited from class com.evolveum.midpoint.gui.impl.component.ContainerableListPanel
addCustomActions, addPerformed, clearCache, createCustomExportableColumn, createDownloadButton, createHeader, createNewButtonDescription, createReportPerformed, createStringResource, customProcessNewRowItem, defaultCollectionExists, enableSavePageSize, getAdditionalBoxCssClasses, getAutoRefreshInterval, getCurrentTablePaging, getDataProvider, getDefaultType, getDefaultView, getInlineMenuCssClass, getObjectCollectionView, getOptions, getPageStorage, getPanelConfiguration, getPreselectedObjectList, getSearchByNameParameterValue, getSearchModel, getSelectedObjects, getSelectedObjectsCount, getSortProperty, getStorageKey, getTable, getType, getViewColumnsTransformed, getViewColumnsTransformed, hideFooterIfSinglePage, initItemTable, initSearch, isCollectionViewPanel, isCollectionViewPanelForCompiledView, isCollectionViewPanelForWidget, isHeaderVisible, isNewObjectButtonEnabled, isPagingVisible, isPreview, isRefreshEnabled, isValidFormComponents, isValidFormComponents, isValidFormComponentsOfRow, notContainsNameColumn, refreshTable, resetSearchModel, resetTable, saveSearchModel, setAdditionalBoxCssClasses, setDefaultSorting, setManualRefreshEnabled
-
Methods inherited from class com.evolveum.midpoint.gui.api.component.BasePanel
createComponentPath, createModel, createStringResource, createStringResource, createStringResource, createStringResource, createStringResource, createStringResource, getFeedbackPanel, getMidpointConfiguration, getModel, getModelObject, getPageBase, getParentPage, getPrismContext, getRegistry, getSchemaService, getSession, getString, getString, getWebApplicationConfiguration, showResult
-
Methods inherited from class org.apache.wicket.markup.html.panel.Panel
getRegionMarkup, newMarkupSourcingStrategy
-
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
-
Methods 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, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildren
-
Methods 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, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
OPERATION_LOAD_ASSIGNMENTS_LIMIT
protected static final String OPERATION_LOAD_ASSIGNMENTS_LIMIT
-
OPERATION_LOAD_ASSIGNMENTS_TARGET_OBJ
protected static final String OPERATION_LOAD_ASSIGNMENTS_TARGET_OBJ
-
OPERATION_LOAD_ASSIGNMENT_TARGET_RELATIONS
protected static final String OPERATION_LOAD_ASSIGNMENT_TARGET_RELATIONS
-
assignmentsRequestsLimit
protected int assignmentsRequestsLimit
-
-
Constructor Detail
-
AbstractAssignmentTypePanel
public AbstractAssignmentTypePanel(String id, org.apache.wicket.model.IModel<PrismContainerWrapper<AssignmentType>> model, ContainerPanelConfigurationType config, Class<? extends Objectable> type, String oid)
-
-
Method Detail
-
setModel
protected void setModel(org.apache.wicket.model.IModel<PrismContainerWrapper<AssignmentType>> model)
-
onInitialize
protected void onInitialize()
- Overrides:
onInitializein classMultivalueContainerListPanelWithDetailsPanel<AssignmentType>
-
isCreateNewObjectVisible
protected boolean isCreateNewObjectVisible()
- Specified by:
isCreateNewObjectVisiblein classMultivalueContainerListPanel<AssignmentType>
-
isRepositorySearchEnabled
protected boolean isRepositorySearchEnabled()
-
getContainerModel
protected org.apache.wicket.model.IModel<PrismContainerWrapper<AssignmentType>> getContainerModel()
- Specified by:
getContainerModelin classMultivalueContainerListPanel<AssignmentType>
-
cancelItemDetailsPerformed
protected void cancelItemDetailsPerformed(org.apache.wicket.ajax.AjaxRequestTarget target)
- Overrides:
cancelItemDetailsPerformedin classMultivalueContainerListPanelWithDetailsPanel<AssignmentType>
-
createDefaultColumns
protected List<org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<PrismContainerValueWrapper<AssignmentType>,String>> createDefaultColumns()
- Overrides:
createDefaultColumnsin classContainerableListPanel<AssignmentType,PrismContainerValueWrapper<AssignmentType>>
-
createCheckboxColumn
protected org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<PrismContainerValueWrapper<AssignmentType>,String> createCheckboxColumn()
- Overrides:
createCheckboxColumnin classMultivalueContainerListPanel<AssignmentType>
-
createIconColumn
protected org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<PrismContainerValueWrapper<AssignmentType>,String> createIconColumn()
- Overrides:
createIconColumnin classMultivalueContainerListPanel<AssignmentType>
-
createNameColumn
protected org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<PrismContainerValueWrapper<AssignmentType>,String> createNameColumn(org.apache.wicket.model.IModel<String> displayModel, GuiObjectColumnType customColumn, ExpressionType expression)
- Overrides:
createNameColumnin classContainerableListPanel<AssignmentType,PrismContainerValueWrapper<AssignmentType>>
-
getPageStorage
protected PageStorage getPageStorage(String storageKey)
- Overrides:
getPageStoragein classContainerableListPanel<AssignmentType,PrismContainerValueWrapper<AssignmentType>>
-
createInlineMenu
protected List<InlineMenuItem> createInlineMenu()
- Overrides:
createInlineMenuin classContainerableListPanel<AssignmentType,PrismContainerValueWrapper<AssignmentType>>
-
isMenuItemVisible
protected boolean isMenuItemVisible(org.apache.wicket.model.IModel<PrismContainerValueWrapper<AssignmentType>> rowModel)
- Overrides:
isMenuItemVisiblein classContainerableListPanel<AssignmentType,PrismContainerValueWrapper<AssignmentType>>
-
initColumns
protected abstract List<org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<PrismContainerValueWrapper<AssignmentType>,String>> initColumns()
-
loadTargetObject
protected <F extends FocusType> PrismObject<F> loadTargetObject(AssignmentType assignmentType)
-
createToolbarButtonsList
protected List<org.apache.wicket.Component> createToolbarButtonsList(String idButton)
- Overrides:
createToolbarButtonsListin classMultivalueContainerListPanel<AssignmentType>
-
newAssignmentClickPerformed
protected void newAssignmentClickPerformed(org.apache.wicket.ajax.AjaxRequestTarget target)
-
hasTargetObject
protected boolean hasTargetObject()
-
getObjectTypesList
protected List<ObjectTypes> getObjectTypesList()
-
getTargetTypeFilter
protected RefFilter getTargetTypeFilter()
-
getSubtypeFilter
protected ObjectFilter getSubtypeFilter()
-
createAssignmentPopupModel
protected abstract org.apache.wicket.model.IModel<AssignmentPopupDto> createAssignmentPopupModel()
-
getAssignmentType
protected abstract QName getAssignmentType()
-
initializeNewAssignmentData
protected void initializeNewAssignmentData(PrismContainerValue<AssignmentType> newAssignmentValue, AssignmentType assignmentObject, org.apache.wicket.ajax.AjaxRequestTarget target)
should be used for such cases as creation of the assignment/inducement without any target reference object (e.g. focus mapping or policy rule)
-
deleteItemPerformed
public void deleteItemPerformed(org.apache.wicket.ajax.AjaxRequestTarget target, List<PrismContainerValueWrapper<AssignmentType>> toDeleteList)- Overrides:
deleteItemPerformedin classMultivalueContainerListPanel<AssignmentType>
-
providerFactory
protected ContainerValueDataProviderFactory<AssignmentType,?> providerFactory()
-
createProvider
protected ISelectableDataProvider<PrismContainerValueWrapper<AssignmentType>> createProvider()
- Overrides:
createProviderin classMultivalueContainerListPanel<AssignmentType>
-
loadValuesModel
protected org.apache.wicket.model.IModel<List<PrismContainerValueWrapper<AssignmentType>>> loadValuesModel()
-
customPostSearch
protected List<PrismContainerValueWrapper<AssignmentType>> customPostSearch(List<PrismContainerValueWrapper<AssignmentType>> assignments)
-
getCustomizeQuery
protected abstract ObjectQuery getCustomizeQuery()
-
prefilterUsingQuery
protected List<PrismContainerValueWrapper<AssignmentType>> prefilterUsingQuery(List<PrismContainerValueWrapper<AssignmentType>> list, ObjectQuery query)
-
getMultivalueContainerDetailsPanel
protected MultivalueContainerDetailsPanel<AssignmentType> getMultivalueContainerDetailsPanel(org.apache.wicket.markup.html.list.ListItem<PrismContainerValueWrapper<AssignmentType>> item)
- Specified by:
getMultivalueContainerDetailsPanelin classMultivalueContainerListPanelWithDetailsPanel<AssignmentType>
-
isEntitlementAssignment
protected boolean isEntitlementAssignment()
-
getTableId
protected abstract UserProfileStorage.TableId getTableId()
- Specified by:
getTableIdin classContainerableListPanel<AssignmentType,PrismContainerValueWrapper<AssignmentType>>
-
createAdditionalSearchContext
protected SearchContext createAdditionalSearchContext()
- Overrides:
createAdditionalSearchContextin classContainerableListPanel<AssignmentType,PrismContainerValueWrapper<AssignmentType>>
-
getContainerDefinitionForColumns
protected PrismContainerDefinition<AssignmentType> getContainerDefinitionForColumns()
- Overrides:
getContainerDefinitionForColumnsin classContainerableListPanel<AssignmentType,PrismContainerValueWrapper<AssignmentType>>
-
getTypeDefinitionForSearch
protected PrismContainerDefinition<AssignmentType> getTypeDefinitionForSearch()
- Overrides:
getTypeDefinitionForSearchin classMultivalueContainerListPanel<AssignmentType>
-
addSpecificSearchableItemWrappers
protected abstract void addSpecificSearchableItemWrappers(PrismContainerDefinition<AssignmentType> containerDef, List<? super FilterableSearchItemWrapper> defs)
-
isNewObjectButtonVisible
protected <AH extends AssignmentHolderType> boolean isNewObjectButtonVisible(PrismObject<AH> focusObject)
-
-