|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.app.behavior.LyBehavior
leon.app.behavior.LyActionBehavior
leon.app.behavior.LyMailBehavior
public class LyMailBehavior
This class implements the default behavior for actions that sends mail with a mail controller.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
static java.lang.String |
MAIL_JNDI
Accessor to the String MAIL_JNDI |
Constructor Summary | |
---|---|
LyMailBehavior()
|
Method Summary | |
---|---|
static int |
indexOfAny(java.lang.String s,
java.lang.String any)
Returns the index of the first occurence of a character in the any string that
appears in the s string. |
boolean |
sendMail(LyMailController controller,
LyClassInfo toClass,
LyFieldInfo toField,
LyObjectList selectedObjects)
Send a mail |
boolean |
sendMail(LyMailController controller,
LyObjectList selectedUsers,
LyFieldInfo toField)
Send the email |
void |
userInputDemand(LyController controller,
LyDemand demand)
Handle the given demand |
Methods inherited from class leon.app.behavior.LyActionBehavior |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction |
Methods inherited from class leon.app.behavior.LyBehavior |
---|
free, getSession, handleDemand, init |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction |
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface |
---|
free, handleDemand, init |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final java.lang.String MAIL_JNDI
Constructor Detail |
---|
public LyMailBehavior()
Method Detail |
---|
public void userInputDemand(LyController controller, LyDemand demand)
userInputDemand
in interface LyUserInputBehaviorInterface
controller
- the controllerdemand
- the demandpublic static int indexOfAny(java.lang.String s, java.lang.String any)
any
string that
appears in the s
string.
s
- an arbitrary string that is testedany
- the list of characters to find in the first given string
public boolean sendMail(LyMailController controller, LyClassInfo toClass, LyFieldInfo toField, LyObjectList selectedObjects)
sendMail
in interface LyMailBehaviorInterface
controller
- the controllertoClass
- the classInfo the classinfo corresponding to the recipienttoField
- the email fieldselectedObjects
- a list of selected objects
public boolean sendMail(LyMailController controller, LyObjectList selectedUsers, LyFieldInfo toField)
sendMail
in interface LyMailBehaviorInterface
controller
- the mail controllerselectedUsers
- the list of recipienttoField
- the field corresponding to the email address
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |