-
Notifications
You must be signed in to change notification settings - Fork 188
/
MetadataMappingImpl.java
45 lines (37 loc) · 1.43 KB
/
MetadataMappingImpl.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* Copyright (c) 2020 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.model.common.mapping.metadata;
import com.evolveum.midpoint.model.common.mapping.AbstractMappingImpl;
import com.evolveum.midpoint.prism.ItemDefinition;
import com.evolveum.midpoint.prism.PrismValue;
import com.evolveum.midpoint.repo.common.expression.TransformationValueMetadataComputer;
import com.evolveum.midpoint.schema.result.OperationResult;
import com.evolveum.midpoint.xml.ns._public.common.common_3.MetadataMappingType;
/**
* Evaluated or to-be-evaluated metadata mapping.
*/
public class MetadataMappingImpl<V extends PrismValue, D extends ItemDefinition> extends
AbstractMappingImpl<V, D, MetadataMappingType> {
MetadataMappingImpl(MetadataMappingBuilder<V, D> builder) {
super(builder);
}
private MetadataMappingImpl(MetadataMappingImpl<V, D> prototype) {
super(prototype);
}
protected TransformationValueMetadataComputer createValueMetadataComputer(OperationResult result) {
// No value metadata computing for value metadata itself.
return null;
}
@Override
protected boolean determinePushChangesRequested() {
return false;
}
@Override
public MetadataMappingImpl<V, D> clone() {
return new MetadataMappingImpl<>(this);
}
}