Package org.bgerp.plugin.msg.email
Class ExpressionObject
java.lang.Object
org.bgerp.dao.expression.ExpressionContextAccessingObject
org.bgerp.plugin.msg.email.ExpressionObject
- All Implemented Interfaces:
ExpressionObject
-
Field Summary
Fields inherited from class org.bgerp.dao.expression.ExpressionContextAccessingObject
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsendMessageToExecutors(int paramId, String subject, String text) Send email to process' executors, except ones from the currentDynActionFormvoidsendMessageToUsers(Iterable<Integer> userIds, int paramId, String subject, String text) Send email to usersvoid
-
Constructor Details
-
ExpressionObject
public ExpressionObject() -
ExpressionObject
- Throws:
Exception
-
-
Method Details
-
toContext
- Specified by:
toContextin interfaceExpressionObject- Overrides:
toContextin classExpressionContextAccessingObject
-
sendMessageToExecutors
public void sendMessageToExecutors(int paramId, String subject, String text) throws BGMessageException, SQLException, jakarta.mail.MessagingException Send email to process' executors, except ones from the currentDynActionForm- Parameters:
paramId- user parameter ID with type 'email', use0for using the first user parameter with this typesubject- message subjecttext- message text- Throws:
BGMessageExceptionSQLExceptionjakarta.mail.MessagingException
-
sendMessageToUsers
public void sendMessageToUsers(Iterable<Integer> userIds, int paramId, String subject, String text) throws BGMessageException, SQLException, jakarta.mail.MessagingException Send email to users- Parameters:
userIds- recipient user IDsparamId- user parameter ID with type 'email', use0for using the first user parameter with this typesubject- message subjecttext- message text- Throws:
BGMessageExceptionSQLExceptionjakarta.mail.MessagingException
-