Files
ofbiz-framework/applications/content/servicedef/services_email.xml
T
Jacopo Cappellato 670f44edbf License change from MIT to ASL2.0 for the files of the content component.
Thanks to Scott Gray for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422868 13f79535-47bb-0310-9956-ffa450edef68
2006-07-17 20:59:54 +00:00

130 lines
8.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2001-2006 The Apache Software Foundation
Licensed 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.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/services.xsd">
<description>Content Component Services</description>
<vendor>OFBiz</vendor>
<!-- Email Related Services -->
<service name="sendMailInterface" engine="interface" location="" invoke="">
<description>Interface service for mail services. contentType defaults to "text/html", sendType defaults to
"mail.smtp.host". sendVia must be specified if sendType is different. Configured in general.properties</description>
<attribute name="sendTo" type="String" mode="IN" optional="true"/>
<attribute name="sendCc" type="String" mode="IN" optional="true"/>
<attribute name="sendBcc" type="String" mode="IN" optional="true"/>
<attribute name="sendFrom" type="String" mode="IN" optional="false"/>
<attribute name="subject" type="String" mode="IN" optional="false"/>
<attribute name="authUser" type="String" mode="IN" optional="true"/>
<attribute name="authPass" type="String" mode="IN" optional="true"/>
<attribute name="sendVia" type="String" mode="IN" optional="true"/>
<attribute name="sendType" type="String" mode="IN" optional="true"/>
<attribute name="contentType" type="String" mode="INOUT" optional="true"/>
<attribute name="subject" type="String" mode="OUT" optional="true"/>
<attribute name="partyId" type="String" mode="INOUT" optional="true"/>
</service>
<service name="sendMail" engine="java"
location="org.ofbiz.content.email.EmailServices" invoke="sendMail">
<description>Send E-Mail Service. partyId and communicationEventId aren't used by sendMail
but are passed down to storeEmailAsCommunication during the SECA chain. See sednMailInterface for more comments.</description>
<implements service="sendMailInterface"/>
<attribute name="body" type="String" mode="INOUT" optional="false"/>
<attribute name="communicationEventId" type="String" mode="INOUT" optional="true"/>
<override name="contentType" mode="INOUT"/>
<override name="subject" mode="INOUT" optional="false"/>
</service>
<service name="sendMailMultiPart" engine="java"
location="org.ofbiz.content.email.EmailServices" invoke="sendMail">
<description>Send Multi-Part E-Mail Service</description>
<implements service="sendMailInterface"/>
<attribute name="bodyParts" type="java.util.List" mode="INOUT" optional="false"/>
<attribute name="subject" type="String" mode="INOUT" optional="false"/>
<attribute name="partyId" type="String" mode="INOUT" optional="true"/>
<override name="contentType" mode="INOUT"/>
</service>
<service name="sendMailFromUrl" engine="java"
location="org.ofbiz.content.email.EmailServices" invoke="sendMailFromUrl">
<description>Send E-Mail From URL Service</description>
<implements service="sendMailInterface"/>
<attribute name="bodyUrl" type="String" mode="IN" optional="false"/>
<attribute name="bodyUrlParameters" type="Map" mode="IN" optional="true"/>
<attribute name="body" type="String" mode="OUT" optional="false"/>
</service>
<service name="sendMailFromScreen" max-retry="3" engine="java"
location="org.ofbiz.content.email.EmailServices" invoke="sendMailFromScreen">
<description>Send E-Mail From Screen Widget Service</description>
<implements service="sendMailInterface"/>
<attribute name="bodyText" type="String" mode="IN" optional="true"/>
<attribute name="bodyScreenUri" type="String" mode="IN" optional="true"/>
<attribute name="xslfoAttachScreenLocation" type="String" mode="IN" optional="true"/>
<attribute name="bodyParameters" type="Map" mode="IN" optional="true"/>
<attribute name="webSiteId" type="String" mode="IN" optional="true"/>
<attribute name="body" type="String" mode="OUT" optional="false"/>
</service>
<service name="prepareNotificationInterface" engine="interface"
location="" invoke="">
<description>Send Template Based Notification Service</description>
<implements service="sendMailInterface"/>
<attribute name="body" type="String" mode="INOUT" optional="true"/>
<attribute name="baseUrl" type="String" mode="IN" optional="true"/>
<attribute name="templateName" type="String" mode="IN" optional="false"/>
<attribute name="templateData" type="Map" mode="IN" optional="true"/>
<attribute name="webSiteId" type="String" mode="IN" optional="true"/>
</service>
<service name="sendNotificationInterface" engine="interface"
location="" invoke="">
<description>Send Template Based Notification Service</description>
<implements service="prepareNotificationInterface"/>
<attribute name="body" type="String" mode="IN" optional="true"/>
<attribute name="templateName" type="String" mode="IN" optional="false"/>
<attribute name="templateData" type="Map" mode="IN" optional="true"/>
<attribute name="webSiteId" type="String" mode="IN" optional="true"/>
</service>
<service name="sendGenericNotificationEmail" engine="java"
location="org.ofbiz.content.email.NotificationServices" invoke="sendNotification">
<description>Generic Template Based Notification Service</description>
<implements service="sendNotificationInterface"/>
</service>
<service name="storeEmailAsCommunication" engine="java"
location="org.ofbiz.content.email.EmailServices" invoke="storeEmailAsCommunication" auth="true">
<description>Store email as a communication event with the status COM_COMPLETE. The communication event will be
from the party of the userLogin to the party of the partyId parameter. It is meant to run a SECA after
a sendMail to record outgoing emails.</description>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="communicationEventId" type="String" mode="IN" optional="true"/>
<attribute name="subject" type="String" mode="IN" optional="false"/>
<attribute name="body" type="String" mode="IN" optional="false"/>
<attribute name="contentType" type="String" mode="IN" optional="true"/>
</service>
<service name="storeIncomingEmail" engine="java"
location="org.ofbiz.content.email.EmailServices" invoke="storeIncomingEmail" auth="true">
<description>
Process incoming email. Try to determine partyIdFrom from the first SendFrom email address. datetimeStarted and datetimeEnded are the
sent and received dates respectively, partyIdTo is from the first SendTo email address. If the parties are not found,
the email addresses are stored in CommunicationEvent.note
</description>
<attribute name="messageWrapper" type="org.ofbiz.service.mail.MimeMessageWrapper" mode="IN"/>
<attribute name="communicationEventId" type="String" mode="OUT" optional="false"/>
</service>
<service name="storeForwardedEmail" engine="java"
location="org.ofbiz.content.email.EmailServices" invoke="storeForwardedEmail" auth="true">
<description>Process incoming email. Try to determine partyIdFrom from email address.</description>
<implements service="mailProcessInterface"/>
</service>
</services>