Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)

135590 jkaabimofrad: APPSREPO-35: Added password reset V1 API.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135930 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jamal Kaabi-Mofrad
2017-03-16 19:39:24 +00:00
parent c9c30849f9
commit b96832b0fd
17 changed files with 2172 additions and 4 deletions

View File

@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Reset Password Workflow Model -->
<model name="resetpasswordwf:reset-password-workflow-model" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
</imports>
<namespaces>
<namespace uri="http://www.alfresco.org/model/workflow/resetpassword/1.0" prefix="resetpasswordwf" />
</namespaces>
<types>
<type name="resetpasswordwf:requestPasswordResetTask">
<parent>bpm:startTask</parent>
<mandatory-aspects>
<aspect>resetpasswordwf:resetPasswordInitialProperties</aspect>
</mandatory-aspects>
</type>
<type name="resetpasswordwf:sendResetPasswordEmailTask">
<parent>bpm:workflowTask</parent>
<mandatory-aspects>
<aspect>resetpasswordwf:resetPasswordInitialProperties</aspect>
</mandatory-aspects>
</type>
<type name="resetpasswordwf:resetPasswordTask">
<parent>bpm:workflowTask</parent>
<mandatory-aspects>
<aspect>resetpasswordwf:resetPasswordInitialProperties</aspect>
</mandatory-aspects>
</type>
<type name="resetpasswordwf:performResetPassword">
<parent>bpm:workflowTask</parent>
<mandatory-aspects>
<aspect>resetpasswordwf:resetPasswordInitialProperties</aspect>
</mandatory-aspects>
</type>
</types>
<aspects>
<aspect name="resetpasswordwf:resetPasswordInitialProperties">
<properties>
<property name="resetpasswordwf:userName">
<type>d:text</type>
</property>
<property name="resetpasswordwf:userEmail">
<type>d:text</type>
</property>
<property name="resetpasswordwf:key">
<type>d:text</type>
</property>
<property name="resetpasswordwf:clientName">
<type>d:text</type>
</property>
</properties>
</aspect>
</aspects>
</model>

View File

@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8" ?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:activiti="http://activiti.org/bpmn"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
typeLanguage="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://alfresco.org">
<process isExecutable="true" id="resetPassword" name="On Premise Reset Password process">
<startEvent id="start" activiti:formKey="resetpasswordwf:requestPasswordResetTask"/>
<sequenceFlow id="flow1" sourceRef="start" targetRef="sendResetPasswordEmailTask"/>
<serviceTask id="sendResetPasswordEmailTask" name="Send Reset Password Email" activiti:delegateExpression="${SendResetPasswordEmailDelegate}"
activiti:formKey="resetpasswordwf:sendResetPasswordEmailTask"/>
<sequenceFlow id="flow2" sourceRef="sendResetPasswordEmailTask" targetRef="resetPasswordTask"/>
<!-- The password reset has been requested and is now waiting for the user to complete by clicking on the link in the email. -->
<!-- Note that we do not store the password as an execution variable for security reasons. -->
<userTask id="resetPasswordTask" name="Password Reset Pending" activiti:formKey="resetpasswordwf:resetPasswordTask"/>
<!-- After 'system.reset-password.endTimer' of waiting for user to reset password, end the process -->
<boundaryEvent id="endProcessTimer" cancelActivity="true" attachedToRef="resetPasswordTask">
<timerEventDefinition>
<timeDuration>${resetpasswordwf_endTimer}</timeDuration>
</timerEventDefinition>
</boundaryEvent>
<sequenceFlow sourceRef="endProcessTimer" targetRef="expired"/>
<sequenceFlow sourceRef="resetPasswordTask" targetRef="performResetPassword"/>
<!-- The user has submitted the necessary data to reset the password. -->
<serviceTask id="performResetPassword" name="Perform Reset Password" activiti:delegateExpression="${PerformResetPasswordDelegate}"
activiti:formKey="resetpasswordwf:passwordReset"/>
<sequenceFlow sourceRef="performResetPassword" targetRef="end"/>
<endEvent id="end"/>
<endEvent id="expired"/>
</process>
</definitions>

View File

@@ -146,3 +146,7 @@ workflowtask.outcome.Approve=Approved
workflowtask.outcome.Reject=Rejected
workflowtask.already.done.error=This task has already been completed and is no longer editable.
# Reset password Task Definitions
resetpasswordwf_resetpassword.resetpassword.workflow.title=Request Password Reset.
resetpasswordwf_resetpassword.resetpassword.workflow.description=Used to request a password reset for a user's own login.