<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="execute">
            <bm:parameters>
                <bm:parameter name="password_session_id" dataType="java.lang.String" input="false" output="true" outputPath="/parameter/@password_session_id"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
            begin
				sys_user_pkg.check_password_by_owner(
                   p_user_name    =>${@user_name},
				   p_old_password => ${@current_password},
				   p_new_password => ${@update_password},
				   p_ip_address   => ${/request/@address},
                   p_password_session_id =>${@password_session_id}
				);
			end;
			]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
            begin
				sys_user_pkg.change_password_by_owner(
                   p_user_name    =>${@user_name},
				   p_old_password => ${@current_password},
				   p_new_password => ${@update_password},
				   p_ip_address   => ${/request/@address}
				);
			end;
			]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
