Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feature/db-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Feb 21, 2018
2 parents 65accbc + 70e5fdf commit 2626af7
Show file tree
Hide file tree
Showing 76 changed files with 3,947 additions and 129 deletions.
Expand Up @@ -112,4 +112,8 @@ public class ExpressionConstants {

public static final QName VAR_OBJECT_DISPLAY_INFORMATION = new QName(SchemaConstants.NS_C, "objectDisplayInformation");
public static final QName VAR_TARGET_DISPLAY_INFORMATION = new QName(SchemaConstants.NS_C, "targetDisplayInformation");

public static final QName VAR_PERFORMER = new QName(SchemaConstants.NS_C, "performer");
public static final QName VAR_OUTPUT = new QName(SchemaConstants.NS_C, "output");
public static final QName VAR_EVENT = new QName(SchemaConstants.NS_C, "event");
}
Expand Up @@ -205,6 +205,8 @@ public abstract class SchemaConstants {
public static final ItemPath PATH_PASSWORD = new ItemPath(C_CREDENTIALS, CredentialsType.F_PASSWORD);
public static final ItemPath PATH_PASSWORD_VALUE = new ItemPath(C_CREDENTIALS, CredentialsType.F_PASSWORD,
PasswordType.F_VALUE);
public static final ItemPath PATH_PASSWORD_FORCE_CHANGE = new ItemPath(C_CREDENTIALS, CredentialsType.F_PASSWORD,
PasswordType.F_FORCE_CHANGE);
public static final ItemPath PATH_PASSWORD_METADATA = new ItemPath(C_CREDENTIALS, CredentialsType.F_PASSWORD,
PasswordType.F_METADATA);
public static final ItemPath PATH_NONCE = new ItemPath(C_CREDENTIALS, CredentialsType.F_NONCE);
Expand Down
Expand Up @@ -615,6 +615,7 @@ public static <T> T getExtensionItemRealValue(@Nullable ExtensionType extension,
return item != null ? (T) item.getRealValue() : null;
}

@NotNull
public static QName normalizeRelation(QName name) {
if (name == null) {
return SchemaConstants.ORG_DEFAULT;
Expand Down
Expand Up @@ -1355,6 +1355,18 @@
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="reviewerCommentsFormatting" minOccurs="0" type="tns:PerformerCommentsFormattingType">
<xsd:annotation>
<xsd:documentation>
Instructions how to format reviewers comments before storing them into metadata.
EXPERIMENTAL
</xsd:documentation>
<xsd:appinfo>
<a:experimental>true</a:experimental>
<a:since>3.7.1</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>

Expand Down
Expand Up @@ -3846,39 +3846,39 @@
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="order" type="xsd:int" minOccurs="0" maxOccurs="1" default="1">
<xsd:element name="order" type="xsd:int" minOccurs="0" default="1">
<xsd:annotation>
<xsd:documentation>
Exact order to match. This is a short-hand for setting both
orderMin and orderMax to the same value.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="orderMin" type="xsd:string" minOccurs="0" maxOccurs="1">
<xsd:element name="orderMin" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Minimum matching order. Applicable only if "order" element is not set.
Numeric value or string "unbounded".
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="orderMax" type="xsd:string" minOccurs="0" maxOccurs="1">
<xsd:element name="orderMax" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Maximum matching order. Applicable only if "order" element is not set.
Numeric value or string "unbounded".
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="resetOrder" type="xsd:int" minOccurs="0" maxOccurs="1">
<xsd:element name="resetOrder" type="xsd:int" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The new value for order for this relation (or summary order), to be used when
evaluating subsequent inducements.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="relation" type="xsd:QName" minOccurs="0" maxOccurs="1">
<xsd:element name="relation" type="xsd:QName" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Relation to which the order constraints apply. If none present, summary (i.e. non-delegation) order is considered.
Expand Down Expand Up @@ -14575,7 +14575,15 @@
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="name" type="xsd:string" minOccurs="0">
<xsd:element name="name" type="xsd:string" minOccurs="0">
</xsd:element>
<xsd:element name="forceChange" type="xsd:boolean" minOccurs="0" maxOccurs="1" default="false">
</xsd:element>
<xsd:element name="authenticationName" type="xsd:string" minOccurs="0">
</xsd:element>
<xsd:element name="deliveryType" type="tns:DeliveryType" minOccurs="0">
</xsd:element>
<xsd:element name="newCredentialSource" type="tns:CredentialSourceType" minOccurs="0">
</xsd:element>
<xsd:element name="securityQuestionReset" type="tns:SecurityQuestionsResetPolicyType" minOccurs="0">
</xsd:element>
Expand All @@ -14587,6 +14595,79 @@
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="CredentialSourceType">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="credentialSource" type="tns:CredentialSourceTypeType" minOccurs="0" maxOccurs="1">
</xsd:element>
</xsd:sequence>
</xsd:complexType>

<xsd:simpleType name="CredentialSourceTypeType">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumClass/>
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="generate">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="GENERATE"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>


<xsd:simpleType name="DeliveryType">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumClass/>
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="gui">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="GUI"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>

<xsd:complexType name="CredentialResetResponseType">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="message" type="tns:LocalizableMessageType" minOccurs="0">
</xsd:element>
<xsd:element name="newCredential" type="xsd:string" minOccurs="0">
</xsd:element>
</xsd:sequence>
</xsd:complexType>



<xsd:complexType name="AbstractAuthenticationPolicyType">
<xsd:annotation>
<xsd:documentation>
Expand Down
Expand Up @@ -638,7 +638,39 @@
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="policy" type="tns:ExclusionPolicyType" minOccurs="0">
<xsd:element name="orderConstraint" type="tns:OrderConstraintsType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Specification of relation(s) when this exclusion constraint should be applied at the source side.
(I.e. this is evaluated against the object defining this exclusion constraint.)
The default is "order = 1".

EXPERIMENTAL. Currently it does not work with non-member relations because of assignment
evaluation optimizations (see TestSegregationOfDuties.test950JackSelfExclusion). So it can
be used only for default and manager relations.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.7.1</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="targetOrderConstraint" type="tns:OrderConstraintsType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Specification of relation(s) when this exclusion constraint should be applied at the target side.
(I.e. this is evaluated against the target object.)
The default is "order = 1".

EXPERIMENTAL. Currently it does not work with non-member relations because of assignment
evaluation optimizations (see TestSegregationOfDuties.test950JackSelfExclusion). So it can
be used only for default and manager relations.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.7.1</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="policy" type="tns:ExclusionPolicyType" minOccurs="0">
<xsd:annotation>
<xsd:appinfo>
<a:deprecated>true</a:deprecated>
Expand Down
Expand Up @@ -647,11 +647,61 @@
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="approverCommentsFormatting" minOccurs="0" type="tns:PerformerCommentsFormattingType">
<xsd:annotation>
<xsd:documentation>
Instructions how to format approvers comments before storing them into metadata.
EXPERIMENTAL
</xsd:documentation>
<xsd:appinfo>
<a:experimental>true</a:experimental>
<a:since>3.7.1</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="primaryChangeProcessor" minOccurs="0" type="tns:PrimaryChangeProcessorConfigurationType" />
<xsd:element name="generalChangeProcessor" minOccurs="0" type="tns:GeneralChangeProcessorConfigurationType" />
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="PerformerCommentsFormattingType">
<xsd:annotation>
<xsd:documentation>
Instructions how to format approvers/reviewers comments before storing them into metadata.
Normally midPoint stores comments as they were entered by performers. However, each deployment can
tailor these e.g. by including performer name along with the comment.
EXPERIMENTAL
</xsd:documentation>
<xsd:appinfo>
<a:experimental>true</a:experimental>
<a:since>3.7.1</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="value" type="tns:ExpressionType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
How to construct the comment. For example: performer.fullName + ': ' + output.comment.

Available variables:
- performer (i.e. reviewer or approver),
- output (of AbstractWorkItemOutputType),
- workItem (of AbstractWorkItemType - only for certification),
- event (of WorkItemCompletionEventType - only for approvals).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="condition" type="tns:ExpressionType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Whether to include the particular output in comments. For example: output.comment != null.
Null or empty values are skipped regardless of the condition.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="WfExecutionTasksConfigurationType">
<xsd:annotation>
<xsd:documentation>
Expand Down
7 changes: 6 additions & 1 deletion model/certification-impl/pom.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-2017 Evolveum
~ Copyright (c) 2010-2018 Evolveum
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -67,6 +67,11 @@
<artifactId>model-impl</artifactId>
<version>3.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.evolveum.midpoint.model</groupId>
<artifactId>model-common</artifactId>
<version>3.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.evolveum.midpoint.infra</groupId>
<artifactId>common</artifactId>
Expand Down

0 comments on commit 2626af7

Please sign in to comment.