Skip to content

Commit

Permalink
Merge with midpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabria committed Mar 2, 2015
1 parent deae28e commit c31bc18
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Expand Up @@ -269,13 +269,15 @@ private void savePerformed(AjaxRequestTarget target) {
CredentialsType.F_PASSWORD, PasswordType.F_VALUE);
SchemaRegistry registry = getPrismContext().getSchemaRegistry();
Collection<ObjectDelta<? extends ObjectType>> deltas = new ArrayList<ObjectDelta<? extends ObjectType>>();


for (PasswordAccountDto accDto : accounts) {
PrismObjectDefinition objDef = accDto.isMidpoint() ?
registry.findObjectDefinitionByCompileTimeClass(UserType.class) :
registry.findObjectDefinitionByCompileTimeClass(ShadowType.class);

PropertyDelta delta = PropertyDelta.createModificationReplaceProperty(valuePath, objDef, password);

PropertyDelta delta = PropertyDelta.createModificationReplaceProperty(valuePath, objDef, password,password);
Class<? extends ObjectType> type = accDto.isMidpoint() ? UserType.class : ShadowType.class;

deltas.add(ObjectDelta.createModifyDelta(accDto.getOid(), delta, type, getPrismContext()));
Expand Down
1 change: 1 addition & 0 deletions infra/schema/.gitignore
Expand Up @@ -23,3 +23,4 @@
/target
/target/
/target/
/bin
Expand Up @@ -7618,7 +7618,7 @@
TODO: better documentation
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:ValuePolicyType</a:objectReferenceTargetType>
<a:objectReferenceTargetType>tns:SecurityPolicyType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
Expand Down Expand Up @@ -10332,5 +10332,4 @@
</xsd:complexType>
<xsd:element name="decisionType" type="tns:DecisionType" />

</xsd:schema>

</xsd:schema>
Expand Up @@ -6664,7 +6664,7 @@
TODO: better documentation
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:ValuePolicyType</a:objectReferenceTargetType>
<a:objectReferenceTargetType>tns:SecurityPolicyType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
Expand Down

0 comments on commit c31bc18

Please sign in to comment.