Package org.bgerp.plugin.msg.email
Class ExpressionObject
java.lang.Object
ru.bgcrm.dao.expression.ExpressionContextAccessingObject
org.bgerp.plugin.msg.email.ExpressionObject
-
Field Summary
Fields inherited from class ru.bgcrm.dao.expression.ExpressionContextAccessingObject
expression
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sendMessageToExecutors
(int paramId, String subject, String text) Sends email to process' executors, except ones from the currentDynActionForm
.void
sendMessageToUsers
(Iterable<Integer> userIds, int paramId, String subject, String text) Sends email to users.Methods inherited from class ru.bgcrm.dao.expression.ExpressionContextAccessingObject
setExpression
-
Constructor Details
-
ExpressionObject
public ExpressionObject() -
ExpressionObject
- Throws:
Exception
-
-
Method Details
-
sendMessageToExecutors
public void sendMessageToExecutors(int paramId, String subject, String text) throws BGMessageException, SQLException Sends email to process' executors, except ones from the currentDynActionForm
.- Parameters:
paramId
- user parameter ID with type 'email', use0
for using the first user parameter with this type.subject
- message subject.text
- message text.- Throws:
BGMessageException
SQLException
-
sendMessageToUsers
public void sendMessageToUsers(Iterable<Integer> userIds, int paramId, String subject, String text) throws BGMessageException, SQLException Sends email to users.- Parameters:
userIds
- recipient user IDs.paramId
- user parameter ID with type 'email', use0
for using the first user parameter with this type.subject
- message subject.text
- message text.- Throws:
BGMessageException
SQLException
-