Class CompareObjectDto<C extends Containerable>
java.lang.Object
com.evolveum.midpoint.gui.impl.page.admin.resource.component.wizard.schemaHandling.objectType.smart.component.CompareObjectDto<C>
- Type Parameters:
C- Type of the container object being compared.
- All Implemented Interfaces:
Serializable
DTO that represents a comparison context between a "primary" (compared) container value
and a collection of candidate values, based on a specific identifier path.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordCompareObjectDto.ComparedItem<C extends Containerable>Represents one compared or candidate item in the comparison list. -
Constructor Summary
ConstructorsConstructorDescriptionCompareObjectDto(@NotNull org.apache.wicket.model.IModel<PrismContainerValueWrapper<C>> comparedValue, @NotNull org.apache.wicket.model.IModel<List<PrismContainerValueWrapper<C>>> candidateValues, @NotNull ItemPath identifierPath, List<ItemPath> comparedPaths) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringextractIdentifier(@NotNull PrismContainerValueWrapper<C> containerValueWrapper, @NotNull String blankIdentifierName) Extracts the identifier from the given container value wrapper based on the identifier path.
-
Constructor Details
-
CompareObjectDto
public CompareObjectDto(@NotNull @NotNull org.apache.wicket.model.IModel<PrismContainerValueWrapper<C>> comparedValue, @NotNull @NotNull org.apache.wicket.model.IModel<List<PrismContainerValueWrapper<C>>> candidateValues, @NotNull @NotNull ItemPath identifierPath, List<ItemPath> comparedPaths)
-
-
Method Details
-
extractIdentifier
protected String extractIdentifier(@NotNull @NotNull PrismContainerValueWrapper<C> containerValueWrapper, @NotNull @NotNull String blankIdentifierName) Extracts the identifier from the given container value wrapper based on the identifier path. If the identifier is blank, it uses the provided blankIdentifierName. It also ensures uniqueness by appending a counter for duplicates. -
getComparedItems
-
getComparedPaths
-
getPrimaryItem
-