<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you 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

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
-->
<dataset>
  <Realm id="ea696a4f-e77a-4ef1-be67-8f8093bc8686" name="/" fullPath="/"/>

  <AnyType id="USER" kind="USER"/>
  <AnyTypeClass id="BaseUser"/>
  <AnyType_AnyTypeClass anyType_id="USER" anyTypeClass_id="BaseUser"/>

  <AnyType id="GROUP" kind="GROUP"/>
        
  <!-- Actual plain schemas -->
  <Implementation id="EmailAddressValidator" type="VALIDATOR" engine="JAVA"
                  body="org.apache.syncope.core.persistence.jpa.attrvalue.validation.EmailAddressValidator"/>
  <SyncopeSchema id="email"/>
  <PlainSchema id="email" type="String" anyTypeClass_id="BaseUser"
               mandatoryCondition="false" multivalue="0" uniqueConstraint="0" readonly="0"
               validator_id="EmailAddressValidator"/>

  <Implementation id="PullJobDelegate" type="TASKJOB_DELEGATE" engine="JAVA"
                  body="org.apache.syncope.core.provisioning.java.pushpull.PullJobDelegate"/>
  <Implementation id="PushJobDelegate" type="TASKJOB_DELEGATE" engine="JAVA"
                  body="org.apache.syncope.core.provisioning.java.pushpull.PushJobDelegate"/>

  <Implementation id="ExpiredAccessTokenCleanup" type="TASKJOB_DELEGATE" engine="JAVA"
                  body="org.apache.syncope.core.provisioning.java.job.ExpiredAccessTokenCleanup"/>
  <Task DTYPE="SchedTask" id="89de5014-e3f5-4462-84d8-d97575740baf" name="Access Token Cleanup Task"  active="1"
        jobDelegate_id="ExpiredAccessTokenCleanup" cronExpression="0 0/5 * * * ?"/>
  
  <!-- Password reset notifications -->
  <MailTemplate id="requestPasswordReset"
                textTemplate="Hi,
a password reset was requested for ${user.getUsername()}.

In order to complete this request, you need to visit this link:

http://localhost:9080/syncope-enduser/confirmpasswordreset?token=${input.get(0).replaceAll(' ', '%20')}

If you did not request this reset, just ignore the present e-mail.

Best regards."
                htmlTemplate="&lt;html&gt;
&lt;body&gt;
&lt;p&gt;Hi,
a password reset was requested for ${user.getUsername()}.&lt;/p&gt;

&lt;p&gt;In order to complete this request, you need to visit this 
&lt;a href=&quot;http://localhost:9080/syncope-enduser/confirmpasswordreset?token=${input.get(0).replaceAll(' ', '%20')}&quot;&gt;link&lt;/a&gt;&lt;/p&gt;.

&lt;p&gt;If you did not request this reset, just ignore the present e-mail.&lt;/p&gt;

&lt;p&gt;Best regards.&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;"/>
  <MailTemplate id="confirmPasswordReset"
                textTemplate="Hi,
we are happy to inform you that the password request was successfully executed for your account.

Best regards."
                htmlTemplate="&lt;html&gt;
&lt;body&gt;
&lt;p&gt;Hi,&lt;/br&gt;
we are happy to inform you that the password request was successfully executed for your account.&lt;/p&gt;

&lt;p&gt;Best regards.&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;"/>

  <Notification id="c74b4616-9c63-4350-b4bf-ae0077b1ae6a" active="1" recipientAttrName="email" selfAsRecipient="1" 
                sender="admin@syncope.apache.org" subject="Password Reset request" template_id="requestPasswordReset" 
                traceLevel="FAILURES"/> 
  <AnyAbout id="0d4e37a1-a4f4-4865-afcb-4be01da3da53" anyType_id="USER" notification_id="c74b4616-9c63-4350-b4bf-ae0077b1ae6a" anyType_filter="token!=$null"/>
  <Notification_events notification_id="c74b4616-9c63-4350-b4bf-ae0077b1ae6a" event="[CUSTOM]:[]:[]:[requestPasswordReset]:[SUCCESS]"/>
  
  <Notification id="71769807-7f74-4dc3-ba61-e4a7a00eb8ad" active="1" recipientAttrName="email" selfAsRecipient="1" 
                sender="admin@syncope.apache.org" subject="Password Reset successful" template_id="confirmPasswordReset" 
                traceLevel="FAILURES"/> 
  <Notification_events notification_id="71769807-7f74-4dc3-ba61-e4a7a00eb8ad" event="[CUSTOM]:[]:[]:[confirmPasswordReset]:[SUCCESS]"/>
</dataset>
