<?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 left="USER" right="BaseUser"/>

  <AnyType id="GROUP" kind="GROUP"/>
  <AnyTypeClass id="BaseGroup"/>
  <AnyType_AnyTypeClass left="GROUP" right="BaseGroup"/>

  <!-- Actual plain schemas -->
  <Implementation id="EmailAddressValidator" type="ATTR_VALUE_VALIDATOR" engine="JAVA"
                  body="org.apache.syncope.core.persistence.common.attrvalue.EmailAddressValidator"/>
  <SyncopeSchema id="email"/>
  <PlainSchema id="email" type="String" mandatoryCondition="false" multivalue="0" uniqueConstraint="0" readonly="0"/>
  <PlainSchema_AnyTypeClass left="email" right="BaseUser"/>
  <PlainSchema_Implementation type="PLAIN_SCHEMA_ATTR_VALUE_VALIDATOR" left="email" right="EmailAddressValidator"/>
  
  <Implementation id="BinaryValidator" type="ATTR_VALUE_VALIDATOR" engine="JAVA"
                  body="org.apache.syncope.core.persistence.common.attrvalue.BinaryValidator"/>

  <Implementation id="MacroJobDelegate" type="TASKJOB_DELEGATE" engine="JAVA"
                  body="org.apache.syncope.core.provisioning.java.job.MacroJobDelegate"/>
  <Implementation id="LiveSyncJobDelegate" type="TASKJOB_DELEGATE" engine="JAVA"
                  body="org.apache.syncope.core.provisioning.java.pushpull.LiveSyncJobDelegate"/>
  <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="GroupMemberProvisionTaskJobDelegate" type="TASKJOB_DELEGATE" engine="JAVA"
                  body="org.apache.syncope.core.provisioning.java.job.GroupMemberProvisionTaskJobDelegate"/>

  <Implementation id="ExpiredAccessTokenCleanup" type="TASKJOB_DELEGATE" engine="JAVA"
                  body="org.apache.syncope.core.provisioning.java.job.ExpiredAccessTokenCleanup"/>
  <SchedTask id="89de5014-e3f5-4462-84d8-d97575740baf" name="Access Token Cleanup Task"  active="1"
             cronExpression="0 0/5 * * * ?"/>
  <SchedTask_Implementation left="89de5014-e3f5-4462-84d8-d97575740baf" right="ExpiredAccessTokenCleanup"/>           
  <Implementation id="ExpiredBatchCleanup" type="TASKJOB_DELEGATE" engine="JAVA"
                  body="org.apache.syncope.core.provisioning.java.job.ExpiredBatchCleanup"/>
  <SchedTask id="8ea0ea51-ce08-4fe3-a0c8-c281b31b5893" name="Expired Batch Operations Cleanup Task"  active="1"/>
  <SchedTask_Implementation type="SCHED_TASK_JOB_DELEGATE" left="8ea0ea51-ce08-4fe3-a0c8-c281b31b5893" right="ExpiredBatchCleanup"/>

  <!-- 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:${cargo.servlet.port}/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:${cargo.servlet.port}/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="e00945b5-1184-4d43-8e45-4318a8dcdfd4" active="1" recipientAttrName="email" selfAsRecipient="1" 
                sender="admin@syncope.apache.org" subject="Password Reset request"
                traceLevel="FAILURES" events='["[CUSTOM]:[]:[]:[requestPasswordReset]:[SUCCESS]"]'/> 
  <Notification_MailTemplate left="e00945b5-1184-4d43-8e45-4318a8dcdfd4" right="requestPasswordReset"/>
  <AnyAbout id="a328f2e6-25e9-4cc1-badf-7425d7be4b39"/>
  <AnyAbout_AnyType left="a328f2e6-25e9-4cc1-badf-7425d7be4b39" right="USER"/>
  <AnyAbout_Notification left="a328f2e6-25e9-4cc1-badf-7425d7be4b39" right="e00945b5-1184-4d43-8e45-4318a8dcdfd4"/>
  
  <Notification id="bef0c250-e8a7-4848-bb63-2564fc409ce2" active="1" recipientAttrName="email" selfAsRecipient="1" 
                sender="admin@syncope.apache.org" subject="Password Reset successful"
                traceLevel="FAILURES" events='["[CUSTOM]:[]:[]:[confirmPasswordReset]:[SUCCESS]"]'/> 
  <Notification_MailTemplate left="bef0c250-e8a7-4848-bb63-2564fc409ce2" right="confirmPasswordReset"/>
</dataset>
