org.ofbiz.service.mail
Class ServiceMcaCondition

java.lang.Object
  extended by org.ofbiz.service.mail.ServiceMcaCondition
All Implemented Interfaces:
java.io.Serializable

public class ServiceMcaCondition
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static int CONDITION_FIELD
           
static int CONDITION_HEADER
           
static int CONDITION_SERVICE
           
protected  java.lang.String fieldName
           
protected  java.lang.String headerName
           
static java.lang.String module
           
protected  java.lang.String operator
           
protected  java.lang.String serviceName
           
protected  java.lang.String value
           
 
Constructor Summary
ServiceMcaCondition(org.w3c.dom.Element condElement, int condType)
           
 
Method Summary
 boolean eval(LocalDispatcher dispatcher, MimeMessageWrapper messageWrapper, GenericValue userLogin)
           
protected  java.lang.String[] getFieldValue(MimeMessage message, java.lang.String fieldName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

CONDITION_FIELD

public static final int CONDITION_FIELD
See Also:
Constant Field Values

CONDITION_HEADER

public static final int CONDITION_HEADER
See Also:
Constant Field Values

CONDITION_SERVICE

public static final int CONDITION_SERVICE
See Also:
Constant Field Values

serviceName

protected java.lang.String serviceName

headerName

protected java.lang.String headerName

fieldName

protected java.lang.String fieldName

operator

protected java.lang.String operator

value

protected java.lang.String value
Constructor Detail

ServiceMcaCondition

public ServiceMcaCondition(org.w3c.dom.Element condElement,
                           int condType)
Method Detail

eval

public boolean eval(LocalDispatcher dispatcher,
                    MimeMessageWrapper messageWrapper,
                    GenericValue userLogin)

getFieldValue

protected java.lang.String[] getFieldValue(MimeMessage message,
                                           java.lang.String fieldName)
                                    throws MessagingException,
                                           java.io.IOException
Throws:
MessagingException
java.io.IOException