-
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.
Merge branch 'feature/simulations' of github.com:Evolveum/midpoint in…
…to feature/simulations
- Loading branch information
Showing
30 changed files
with
890 additions
and
87 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
35 changes: 35 additions & 0 deletions
35
...ain/java/com/evolveum/midpoint/schema/util/AbstractSimulationMetricReferenceTypeUtil.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-2023 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.util; | ||
|
||
import static com.evolveum.midpoint.prism.Referencable.getOid; | ||
|
||
import com.evolveum.midpoint.xml.ns._public.common.common_3.AbstractSimulationMetricReferenceType; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class AbstractSimulationMetricReferenceTypeUtil { | ||
|
||
// TEMPORARY CODE, just to make prototype GUI code compile | ||
public static String getDisplayableIdentifier(AbstractSimulationMetricReferenceType reference) { | ||
String identifier = reference.getIdentifier(); | ||
if (identifier != null) { | ||
return identifier; | ||
} else { | ||
return getOid(reference.getEventTagRef()); | ||
} | ||
} | ||
|
||
public static boolean isMetricIdentifier(@NotNull AbstractSimulationMetricReferenceType ref, String identifier) { | ||
return identifier != null && identifier.equals(ref.getIdentifier()); | ||
} | ||
|
||
public static boolean isEventTag(@NotNull AbstractSimulationMetricReferenceType ref, String oid) { | ||
return oid != null && oid.equals(getOid(ref.getEventTagRef())); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
.../main/java/com/evolveum/midpoint/schema/util/AggregatedSimulationMetricValueTypeUtil.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,13 @@ | ||
/* | ||
* Copyright (C) 2010-2023 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.util; | ||
|
||
public class AggregatedSimulationMetricValueTypeUtil { | ||
|
||
// TODO | ||
} |
20 changes: 20 additions & 0 deletions
20
...a/src/main/java/com/evolveum/midpoint/schema/util/ConfigurationSpecificationTypeUtil.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,20 @@ | ||
/* | ||
* Copyright (C) 2010-2023 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.util; | ||
|
||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ConfigurationSpecificationType; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class ConfigurationSpecificationTypeUtil { | ||
|
||
public static boolean isProductionConfiguration(@Nullable ConfigurationSpecificationType configuration) { | ||
return configuration == null | ||
|| !Boolean.FALSE.equals(configuration.isProductionConfiguration()); | ||
} | ||
} |
Oops, something went wrong.