Class CorrelationItem
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.correlator.items.CorrelationItem
-
public class CorrelationItem extends Object
Instance of a correlation item: covering both source and target side. The source side contains the complete data (definitions + values), whereas the target side contains the definitions, and _optionally_ the values. Depending on whether we are going to correlate, or displaying correlation candidates. TODO finish!
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CorrelationItem
create(@NotNull CorrelationItemDefinitionType itemBean, @NotNull CorrelatorContext<?> correlatorContext, @NotNull ShadowType resourceObject, @NotNull ObjectType preFocus)
static CorrelationItem
create(@NotNull ItemCorrelationType itemBean, @NotNull CorrelatorContext<ItemsCorrelatorType> correlatorContext, @NotNull CorrelationContext correlationContext)
@NotNull String
getName()
@Nullable PrismProperty<?>
getRenamedSourceProperty()
Returns the source value wrapped in a property.@NotNull CorrelationProperty
getSourceCorrelationPropertyDefinition()
boolean
isApplicable()
Can we use this item for correlation? Temporary implementation: We can, if it's non-null.String
toString()
-
-
-
Method Detail
-
create
public static CorrelationItem create(@NotNull @NotNull ItemCorrelationType itemBean, @NotNull @NotNull CorrelatorContext<ItemsCorrelatorType> correlatorContext, @NotNull @NotNull CorrelationContext correlationContext) throws ConfigurationException
- Throws:
ConfigurationException
-
create
public static CorrelationItem create(@NotNull @NotNull CorrelationItemDefinitionType itemBean, @NotNull @NotNull CorrelatorContext<?> correlatorContext, @NotNull @NotNull ShadowType resourceObject, @NotNull @NotNull ObjectType preFocus) throws ConfigurationException
- Throws:
ConfigurationException
-
isApplicable
public boolean isApplicable() throws SchemaException
Can we use this item for correlation? Temporary implementation: We can, if it's non-null. (In future we might configure the behavior in such cases.)- Throws:
SchemaException
-
getRenamedSourceProperty
@Nullable public @Nullable PrismProperty<?> getRenamedSourceProperty() throws SchemaException
Returns the source value wrapped in a property. The property will be named after correlation item, not after the source property. It may be empty. But must not be multi-valued.- Throws:
SchemaException
-
getName
@NotNull public @NotNull String getName()
-
getSourceCorrelationPropertyDefinition
@NotNull public @NotNull CorrelationProperty getSourceCorrelationPropertyDefinition() throws SchemaException
- Throws:
SchemaException
-
-