-
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.
We can now use custom scripts to compute normalized values. Work in progress.
- Loading branch information
Showing
34 changed files
with
706 additions
and
257 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
25 changes: 25 additions & 0 deletions
25
...del-api/src/main/java/com/evolveum/midpoint/model/api/indexing/IndexingConfiguration.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,25 @@ | ||
/* | ||
* Copyright (C) 2010-2022 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.api.indexing; | ||
|
||
import com.evolveum.midpoint.prism.path.ItemPath; | ||
import com.evolveum.midpoint.util.exception.ConfigurationException; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.Collection; | ||
|
||
public interface IndexingConfiguration { | ||
|
||
@NotNull Collection<IndexingItemConfiguration> getItems() throws ConfigurationException; | ||
|
||
@Nullable IndexingItemConfiguration getForPath(@NotNull ItemPath path); | ||
|
||
boolean hasNoItems(); | ||
} |
32 changes: 32 additions & 0 deletions
32
...api/src/main/java/com/evolveum/midpoint/model/api/indexing/IndexingItemConfiguration.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,32 @@ | ||
/* | ||
* Copyright (C) 2010-2022 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.api.indexing; | ||
|
||
import java.util.Collection; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import com.evolveum.midpoint.prism.path.ItemName; | ||
import com.evolveum.midpoint.prism.path.ItemPath; | ||
import com.evolveum.midpoint.util.exception.ConfigurationException; | ||
|
||
public interface IndexingItemConfiguration { | ||
|
||
@NotNull String getName(); | ||
|
||
@NotNull ItemName getQualifiedName(); | ||
|
||
@NotNull ItemPath getPath(); | ||
|
||
@NotNull Collection<Normalization> getNormalizations(); | ||
|
||
Normalization findNormalization(@Nullable String index) throws ConfigurationException; | ||
|
||
Normalization getDefaultNormalization() throws ConfigurationException; | ||
} |
35 changes: 35 additions & 0 deletions
35
model/model-api/src/main/java/com/evolveum/midpoint/model/api/indexing/Normalization.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,35 @@ | ||
/* | ||
* Copyright (C) 2010-2022 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.api.indexing; | ||
|
||
import com.evolveum.midpoint.prism.PrismPropertyDefinition; | ||
import com.evolveum.midpoint.prism.path.ItemName; | ||
import com.evolveum.midpoint.prism.path.ItemPath; | ||
|
||
import com.evolveum.midpoint.schema.result.OperationResult; | ||
|
||
import com.evolveum.midpoint.task.api.Task; | ||
|
||
import com.evolveum.midpoint.util.exception.*; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
public interface Normalization { | ||
|
||
@NotNull String getName(); | ||
|
||
boolean isDefault(); | ||
|
||
ItemName getIndexItemName(); | ||
|
||
ItemPath getIndexItemPath(); | ||
|
||
@NotNull PrismPropertyDefinition<String> getIndexItemDefinition(); | ||
|
||
@NotNull String normalize(@NotNull String input, Task task, OperationResult result) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException; | ||
} |
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
Oops, something went wrong.