Improved: refactor javadocs in OFBiz to be standards compliant

(OFBIZ-9144)

This is the first commit to the above mentioned issue which fixes many javadoc
errors dispersed through the different components. The fixes are not
necessarily improvements to the javadocs but rather making them valid javadocs
to prevent reporting errors from gradle


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774154 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Taher A. Alkhateeb
2016-12-14 09:22:32 +00:00
parent 6bc29e380d
commit 71f512a0d2
119 changed files with 382 additions and 315 deletions
@@ -34,20 +34,22 @@ public class AuthenticationComparator implements Comparator<Authenticator> {
* Compares its two arguments for order. Returns a negative integer,
* zero, or a positive integer as the first argument is less than, equal
* to, or greater than the second.<p>
* <p/>
* <p>
* The implementor must ensure that <tt>sgn(compare(x, y)) ==
* -sgn(compare(y, x))</tt> for all <tt>x</tt> and <tt>y</tt>. (This
* implies that <tt>compare(x, y)</tt> must throw an exception if and only
* if <tt>compare(y, x)</tt> throws an exception.)<p>
* <p/>
* </p>
* <p>
* The implementor must also ensure that the relation is transitive:
* <tt>((compare(x, y)&gt;0) &amp;&amp; (compare(y, z)&gt;0))</tt> implies
* <tt>compare(x, z)&gt;0</tt>.<p>
* <p/>
* </p>
* <p>
* Finally, the implementer must ensure that <tt>compare(x, y)==0</tt>
* implies that <tt>sgn(compare(x, z))==sgn(compare(y, z))</tt> for all
* <tt>z</tt>.<p>
* <p/>
* <tt>z</tt>.
* </p>
* It is generally the case, but <i>not</i> strictly required that
* <tt>(compare(x, y)==0) == (x.equals(y))</tt>. Generally speaking,
* any comparator that violates this condition should clearly indicate
@@ -44,40 +44,43 @@ import org.apache.ofbiz.webapp.WebAppUtil;
import freemarker.template.TemplateException;
/**
* Provides generic services related to preparing and
* delivering notifications via email.
* Provides generic services related to preparing and delivering notifications
* via email.
* <p>
* To use the NotificationService, a message specific service should be
* defined for a particular <a href="http://freemarker.sourceforge.net/docs/dgui_quickstart_template.html">
* Freemarker Template</a> mapping the required fields of the
* template to the required attributes of the service.
* defined for a particular
* <a href="http://freemarker.sourceforge.net/docs/dgui_quickstart_template.html">
* Freemarker Template</a> mapping the required fields of the template to the
* required attributes of the service.
* </p>
* <p>
* This service definition should extend the <code>sendNotificationInterface<code>
* This service definition should extend the <code>sendNotificationInterface</code>
* or the <code>prepareNotificationInterface</code> service interface
* and simply invoke the associated method defined in this class.
* <p>
* <blockquote>
* </p>
* <pre>
* &lt;service name="sendPoPickupNotification" engine="java"
* location="org.apache.ofbiz.content.email.NotificationServices" invoke="sendNotification"&gt;
* &lt;description&gt;Sends notification based on a message template&lt;/description&gt;
* &lt;implements service="sendNotificationInterface"/&gt;
* &lt;attribute name="orderId" type="String" mode="IN" optional="false"/&gt;
* &lt;/service&gt;
* {@code
* <service name="sendPoPickupNotification" engine="java"
* location="org.apache.ofbiz.content.email.NotificationServices"
* invoke="sendNotification">
* <description>Sends notification based on a message template</description>
* <implements service="sendNotificationInterface"/>
* <attribute name="orderId" type="String" mode="IN" optional="false"/>
* </service>
* }
* </pre>
* </blockquote>
* <p>
* An optional parameter available to all message templates is <code>baseUrl</code>
* which can either be specified when the service is invoked or let the
* <code>NotificationService</code> attempt to resolve it as best it can,
* see {@link #setBaseUrl(Delegator, String, Map) setBaseUrl(Map)} for details on how this is achieved.
* <p>
* An optional parameter available to all message templates is
* <code>baseUrl</code> which can either be specified when the service is
* invoked or let the <code>NotificationService</code> attempt to resolve it
* as best it can, see {@link #setBaseUrl(Delegator, String, Map) setBaseUrl(Map)}
* for details on how this is achieved.
* </p>
* The following example shows what a simple notification message template,
* associated with the above service, might contain:
* <blockquote>
* <pre>
* Please use the following link to schedule a delivery date:
* &lt;p&gt;
* ${baseUrl}/ordermgr/control/schedulepo?orderId=${orderId}"
* </pre>
* </blockquote>
@@ -85,6 +88,7 @@ import freemarker.template.TemplateException;
* The template file must be found on the classpath at runtime and
* match the "templateName" field passed to the service when it
* is invoked.
* </p>
* <p>
* For complex messages with a large number of dynamic fields, it may be wise
* to implement a custom service that takes one or two parameters that can
@@ -92,7 +96,7 @@ import freemarker.template.TemplateException;
* the {@link #prepareNotification(DispatchContext, Map) prepareNotification(DispatchContext, Map)}
* or {@link #sendNotification(DispatchContext, Map) sendNotification(DispatchContext, Map)}
* methods directly to generate or generate and send the notification respectively.
*
* </p>
*/
public class NotificationServices {