Skip to content

Instantly share code, notes, and snippets.

View PetrGasparik's full-sized avatar

Petr Gašparík PetrGasparik

View GitHub Profile
<mapping id="11">
<name>Add Organization</name>
<source>
<name>org_id</name>
<c:path>$focus/extension/identifier</c:path>
</source>
<source>
<name>parent_id</name>
<c:path>$focus/extension/parent_id</c:path>
</source>
<mapping id="11">
<name>Add Organization</name>
<source>
<name>org_id</name>
<c:path>$focus/extension/identifier</c:path>
</source>
<source>
<name>parent_id</name>
<c:path>$focus/extension/parent_id</c:path>
</source>
<mapping id="11">
<name>Add Organization</name>
<source>
<name>org_id</name>
<c:path>$focus/extension/identifier</c:path>
</source>
<source>
<name>parent_id</name>
<c:path>$focus/extension/parent_id</c:path>
</source>
package cz.ami.cpo.utils;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Random;
<fullTextSearch>
<indexed>
<item>name</item>
<item>description</item>
</indexed>
<indexed>
<objectType>UserType</objectType>
<item>fullName</item>
<item>emailAddress</item>
<item>employeeNumber</item>
XMLGregorianCalendar currentXmlDate = DatatypeFactory.newInstance().newXMLGregorianCalendar(validDate);
PasswordHistoryEntryType historyEntry = null;
//only if password was set previously
if(credentials != null && credentials.getPassword() != null && credentials.getPassword().getValue() != null){
//dispose of old password and put it into history
historyEntry = new PasswordHistoryEntryType();
historyEntry.setChangeTimestamp(currentXmlDate);
}
<user xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
oid="a5d8e69c-7099-4bd0-af52-c62c4bdc4d94"
version="130">
<name>990056</name>
<attribute>
<c:ref>ri:modifyDateTime</c:ref>
<tolerant>true</tolerant>
<exclusiveStrong>false</exclusiveStrong>
<outbound>
<authoritative>true</authoritative>
<exclusive>false</exclusive>
<strength>strong</strength>
<c:expression>
<c:script>
<!DOCTYPE html>
<!--
~ Copyright (c) 2010-2017 Evolveum
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
package cz.ami.midpoint.web.form;
import java.io.IOException;
import java.io.InputStream;
import java.text.Normalizer;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.EnumSet;
import java.util.GregorianCalendar;