Skip to content

Commit

Permalink
Refactor propertyConstraints -> itemConstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Feb 24, 2020
1 parent 36a1ed5 commit 940c62e
Show file tree
Hide file tree
Showing 8 changed files with 8,375 additions and 8,340 deletions.
8,490 changes: 4,245 additions & 4,245 deletions gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/util/WebComponentUtil.java

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Expand Up @@ -14886,10 +14886,23 @@
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="propertyConstraint" type="tns:PropertyConstraintType" minOccurs="0" maxOccurs="unbounded">
<xsd:element name="itemConstraint" type="tns:ItemConstraintType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo>
<a:displayName>ObjectPolicyConfigurationType.itemConstraint</a:displayName>
<a:since>4.1</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="propertyConstraint" type="tns:ItemConstraintType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
DEPRECATED. Use itemConstraint instead.
</xsd:documentation>
<xsd:appinfo>
<a:displayName>ObjectPolicyConfigurationType.propertyConstraint</a:displayName>
<a:deprecated>true</a:deprecated>
<a:deprecatedSince>4.1</a:deprecatedSince>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
Expand Down Expand Up @@ -19477,21 +19490,21 @@
</xsd:restriction>
</xsd:simpleType>

<xsd:complexType name="PropertyConstraintType">
<xsd:complexType name="ItemConstraintType">
<xsd:annotation>
<xsd:documentation>
Definition of a property constraints.
</xsd:documentation>
<xsd:appinfo>
<a:container/>
<a:displayName>PropertyConstraintType.details</a:displayName>
<a:displayName>ItemConstraintType.details</a:displayName>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="path" type="t:ItemPathType" minOccurs="1" maxOccurs="1">
<xsd:annotation>
<xsd:appinfo>
<a:displayName>PropertyConstraintType.path</a:displayName>
<a:displayName>ItemConstraintType.path</a:displayName>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
Expand Down
Expand Up @@ -169,8 +169,14 @@ private ArchetypePolicyType merge(ArchetypePolicyType archetypePolicy, ObjectPol
if (archetypePolicy.getObjectTemplateRef() == null && objectPolicy.getObjectTemplateRef() != null) {
resultPolicy.setObjectTemplateRef(objectPolicy.getObjectTemplateRef().clone());
}
if (archetypePolicy.getItemConstraint().isEmpty()) {
for (ItemConstraintType objItemConstraint : objectPolicy.getItemConstraint()) {
resultPolicy.getItemConstraint().add(objItemConstraint.clone());
}
}
// Deprecated
if (archetypePolicy.getPropertyConstraint().isEmpty()) {
for (PropertyConstraintType objPropertyConstraint : objectPolicy.getPropertyConstraint()) {
for (ItemConstraintType objPropertyConstraint : objectPolicy.getPropertyConstraint()) {
resultPolicy.getPropertyConstraint().add(objPropertyConstraint.clone());
}
}
Expand Down

Large diffs are not rendered by default.

2,323 changes: 1,170 additions & 1,153 deletions model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensUtil.java

Large diffs are not rendered by default.

0 comments on commit 940c62e

Please sign in to comment.