-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement associations reading in UCF
Association definitions are now correctly parsed from ConnId schema to midPoint schema (although not serialized to XSD and read back from it, yet). The RawShadowAssociationDefinition was created, and ShadowAssociationDefinition adapted. However, association classes are still not present in ConnId nor in midPoint - it looks like we will need them in near future. Association values are read from ConnId objects and converted to (newly created) ShadowAssociationValue helper objects. Work in progress. But the reading at UCF level seems to work.
- Loading branch information
Showing
47 changed files
with
1,882 additions
and
924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
.../src/main/java/com/evolveum/midpoint/schema/processor/RawShadowAssociationDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* Copyright (c) 2010-2015 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.schema.processor; | ||
|
||
import java.io.Serial; | ||
import javax.xml.namespace.QName; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import com.evolveum.midpoint.prism.AbstractFreezable; | ||
import com.evolveum.midpoint.prism.impl.ItemDefinitionImpl; | ||
|
||
/** | ||
* "Raw" definition of a shadow association, i.e. the one obtained from the connector. | ||
* | ||
* To be used _solely_ within {@link ShadowAssociationDefinition}. | ||
* | ||
* Unlike {@link RawResourceAttributeDefinition}, we do not extend {@link ItemDefinitionImpl} here. | ||
* This is because there are a lot of its features we don't need here. This decision may be reconsidered. | ||
*/ | ||
public class RawShadowAssociationDefinition | ||
extends AbstractFreezable | ||
implements ResourceItemUcfDefinition.Delegable, ResourceItemUcfDefinition.Mutable.Delegable, | ||
ResourceItemPrismDefinition, ResourceItemPrismDefinition.Mutable.Delegable { | ||
|
||
@Serial private static final long serialVersionUID = 1259898180994611076L; | ||
|
||
/** MidPoint name. */ | ||
@NotNull private final QName itemName; | ||
|
||
@NotNull private final ResourceItemUcfDefinitionData ucfData = new ResourceItemUcfDefinitionData(); | ||
|
||
@NotNull private final ResourceItemPrismDefinitionData prismData = new ResourceItemPrismDefinitionData(); | ||
|
||
public RawShadowAssociationDefinition(@NotNull QName itemName) { | ||
this.itemName = itemName; | ||
} | ||
|
||
@Override | ||
public ResourceItemUcfDefinitionData ucfData() { | ||
return ucfData; | ||
} | ||
|
||
@Override | ||
public ResourceItemPrismDefinitionData prismData() { | ||
return prismData; | ||
} | ||
|
||
public @NotNull QName getItemName() { | ||
return itemName; | ||
} | ||
|
||
@Override | ||
public void shortDump(StringBuilder sb) { | ||
sb.append(this); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "rawSAD: " + itemName.getLocalPart() + prismData + ucfData; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.