<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
#aqm-original p.MsoNormal, #aqm-original li.MsoNormal, #aqm-original div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
} /* style */
#aqm-original a:link, #aqm-original span.MsoHyperlink {
mso-style-priority:99;
color:blue;
text-decoration:underline;
} /* style */
#aqm-original span.DefaultFontHxMailStyle {
mso-style-name:"Default Font HxMail Style";
font-family:"Ubuntu",sans-serif;
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;
} /* style */
#aqm-original .MsoChpDefault {
mso-style-type:export-only;
} /* style */
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
#aqm-original div.WordSection1 {
page:WordSection1;
} /* style */
</style>
</head>
<body>
<div dir="auto">
<div dir="auto"><br></div><div dir="auto">Hi Jason, </div><div dir="auto"><br></div><div dir="auto">I expect an issue may be employment contracts. If it were up to me I would post our samples, but they are not mine to post. </div><div dir="auto"><br></div><div dir="auto">I would like to say a big thank you to you for your samples. </div><div dir="auto"><br></div><div dir="auto">I did a bit of translation outside of work so they can't claim ownership of that. That is also a way someone can get involved. </div><div dir="auto"><br></div><div dir="auto">I still hope to be able to release samples at some point but finding *that* person who can authorise it is proving elusive at the moment. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Chris</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div>
<div id="aqm-original" style="color: black;">
<!-- body start -->
<div lang="en-us" link="blue" vlink="#954f72" class="aqm-original-body"><div style="color: black;">
<p style="color: black; font-size: 10pt; font-family: sans-serif; margin: 8pt 0;">Am 2. Juli 2020 19:31:29 schrieb Jason Everling <jeverling@bshp.edu>:</p>
<blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #808080; padding-left: 0.75ex;">
<div class="WordSection1"><p class="MsoNormal"><span class="DefaultFontHxMailStyle">Why are we still the only one’s that have contributed samples </span><span class="DefaultFontHxMailStyle"><span style="font-family:"Segoe UI Emoji",sans-serif">☹</span> I know there are some of you out there that have done some unique things with midpoint, show it off, you never know, it could help someone else out!<o:p></o:p></span></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle"><o:p> </o:p></span></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle">Fork it and contribute!<o:p></o:p></span></p><p class="MsoNormal"><a href="https://github.com/Evolveum/midpoint-samples">https://github.com/Evolveum/midpoint-samples</a><span class="DefaultFontHxMailStyle"><o:p></o:p></span></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle"><o:p> </o:p></span></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle">Jason<o:p></o:p></span></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle"><o:p> </o:p></span></p><div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:jeverling@bshp.edu">Jason Everling</a><br><b>Sent: </b>Thursday, July 2, 2020 12:27 PM<br><b>To: </b><a href="mailto:midpoint@lists.evolveum.com">midPoint General Discussion</a><br><b>Subject: </b>RE: [midPoint] How to blank out user properties?</p></div><p class="MsoNormal"><span class="DefaultFontHxMailStyle"><o:p> </o:p></span></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle">Also, should have mentioned, it gets attached to the default template for the object, such as default user template. We also have it set to read-only in the gui so that it doesn’t get modified by anyone, which is something you might also want to do.<o:p></o:p></span></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle"><o:p> </o:p></span></p><p class="MsoNormal"><a href="https://github.com/Evolveum/midpoint-samples/blob/master/samples/contrib/bshp/objects/objectTemplates/Default%20User%20Template.xml#L132">https://github.com/Evolveum/midpoint-samples/blob/master/samples/contrib/bshp/objects/objectTemplates/Default%20User%20Template.xml#L132</a><o:p></o:p></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle"><o:p> </o:p></span></p><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b>From: </b><a href="mailto:jeverling@bshp.edu">Jason Everling</a><br><b>Sent: </b>Thursday, July 2, 2020 12:22 PM<br><b>To: </b><a href="mailto:midpoint@lists.evolveum.com">midPoint General Discussion</a><br><b>Subject: </b>RE: [midPoint] How to blank out user properties?<o:p></o:p></p></div><p class="MsoNormal"><span class="DefaultFontHxMailStyle"><o:p> </o:p></span></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle">So what I can read from, you want to archive the old value? We do this for various attributes when they are changed, see here, I had added it to the midpoint samples a while back, it will take the old value which was previously set and then add it to a custom schema attribute for archival history, such as a username change, level change, affiliation, etc..<o:p></o:p></span></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle"><o:p> </o:p></span></p><p class="MsoNormal"><a href="https://github.com/evolveum/midpoint-samples/blob/master/samples/contrib/bshp/objects/objectTemplates/Includes%20-%20Archiving.xml">https://github.com/evolveum/midpoint-samples/blob/master/samples/contrib/bshp/objects/objectTemplates/Includes%20-%20Archiving.xml</a><span class="DefaultFontHxMailStyle"><o:p></o:p></span></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle"><o:p> </o:p></span></p><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b>From: </b><a href="mailto:richard.frovarp@ndsu.edu">Richard Frovarp</a><br><b>Sent: </b>Thursday, July 2, 2020 11:13 AM<br><b>Subject: </b>[midPoint] How to blank out user properties?<o:p></o:p></p></div><p class="MsoNormal"><span class="DefaultFontHxMailStyle"><o:p> </o:p></span></p><p class="MsoNormal">I'm reading a list of our employees from a DB through a<o:p></o:p></p><p class="MsoNormal">DatabaseTableConnector resource. As part of that process I'm setting a<o:p></o:p></p><p class="MsoNormal">custom schema element that is their title. That's fine. However, when<o:p></o:p></p><p class="MsoNormal">they are no longer employed, they disappear from the database table.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">So I'm trying to blank out the title property, since if they aren't<o:p></o:p></p><p class="MsoNormal">employed anymore, they don't have a title. We want to keep historic<o:p></o:p></p><p class="MsoNormal">records, and they may still be a student, which we wouldn't populate a<o:p></o:p></p><p class="MsoNormal">title.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">How does one go about doing this? It was suggested using an object<o:p></o:p></p><p class="MsoNormal">template on the deleted situation, but that doesn't appear to be<o:p></o:p></p><p class="MsoNormal">working.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Resource:<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><reaction><o:p></o:p></p><p class="MsoNormal"> <situation>deleted</situation><o:p></o:p></p><p class="MsoNormal"> <synchronize>true</synchronize><o:p></o:p></p><p class="MsoNormal"> <action><o:p></o:p></p><p class="MsoNormal"> <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action<o:p></o:p></p><p class="MsoNormal">-3#unlink</handlerUri>;<o:p></o:p></p><p class="MsoNormal"> </action><o:p></o:p></p><p class="MsoNormal"> <objectTemplateRef oid="5b23b0d3-0740-47a1-932d-c5a4ab513bc4" /><o:p></o:p></p><p class="MsoNormal"></reaction><o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">User Template:<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><mapping><o:p></o:p></p><p class="MsoNormal"> <description>Clean out department</description><o:p></o:p></p><p class="MsoNormal"> <strength>strong</strength><o:p></o:p></p><p class="MsoNormal"> <target><o:p></o:p></p><p class="MsoNormal"> <path>$user/extension/ndsuPrimaryJobTitle</path><o:p></o:p></p><p class="MsoNormal"> </target><o:p></o:p></p><p class="MsoNormal"> <expression><o:p></o:p></p><p class="MsoNormal"> <script><o:p></o:p></p><p class="MsoNormal"> <code>null</code><o:p></o:p></p><p class="MsoNormal"> </script><o:p></o:p></p><p class="MsoNormal"> </expression><o:p></o:p></p><p class="MsoNormal"></mapping><o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">No errors are thrown, it's just that the title element remains populate<o:p></o:p></p><p class="MsoNormal">with the last know value when the user is deleted from the resource.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Thanks,<o:p></o:p></p><p class="MsoNormal">Richard<o:p></o:p></p><p class="MsoNormal">_______________________________________________<o:p></o:p></p><p class="MsoNormal">midPoint mailing list<o:p></o:p></p><p class="MsoNormal">midPoint@lists.evolveum.com<o:p></o:p></p><p class="MsoNormal">https://lists.evolveum.com/mailman/listinfo/midpoint<o:p></o:p></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle"><o:p> </o:p></span></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle"><o:p> </o:p></span></p><p class="MsoNormal"><span class="DefaultFontHxMailStyle"><o:p> </o:p></span></p></div></blockquote>
</div>
</div>
<!-- body end -->
</div><div dir="auto"><br></div>
</div></body>
</html>