public class CreateMessage extends AsyncDominoJNXJson
Implements OperationId: createMessage Saves a mime-formatted message from Base64 encoded html or text
AsyncDominoBase.RequestType
apiName, appTags, logger, requestParams, UNNEEDED_CALL, user, vertx
Constructor and Description |
---|
CreateMessage() |
Modifier and Type | Method and Description |
---|---|
static jakarta.mail.internet.MimeMessage |
createMimeMessage(java.lang.String from,
io.vertx.core.json.JsonArray to,
io.vertx.core.json.JsonArray bcc,
io.vertx.core.json.JsonArray cc,
java.lang.String subject,
java.lang.String bodyText,
java.lang.String contentType)
Creates a MIME formatted message
|
void |
process(DbRequestParameters<io.vertx.core.json.JsonObject> request)
Actual work is done here.
|
static void |
setRecipients(io.vertx.core.json.JsonArray recipients,
jakarta.mail.internet.MimeMessage email,
jakarta.mail.Message.RecipientType type)
Set MimeMessage recipients from JsonArray
|
getDbRequestParameters
accessControlCheck, dontCallProcessPayload, emitterToObserver, getActualDatabaseName, getApiName, getAppTags, getBarbican, getEventbusId, getKeepDbInfo, getRequestType, getSubscriber, getUser, getUserForMetrics, isProcessPayloadRequired, isWorkInProgress, processDominoRequest, recordAppMetrics, setApiName, setBarbican, setDbFileName, setKeepDbInfo, setProcessPayloadRequired, setRequestParams, setRequestType, setSubscriber, setUser, setVertx, subscribe, validateDqlAccess, validateOpenAccess, validationCheck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customValidator, preflight
public static jakarta.mail.internet.MimeMessage createMimeMessage(@NonNull java.lang.String from, @NonNull io.vertx.core.json.JsonArray to, io.vertx.core.json.JsonArray bcc, io.vertx.core.json.JsonArray cc, java.lang.String subject, java.lang.String bodyText, @NonNull java.lang.String contentType) throws jakarta.mail.MessagingException
Creates a MIME formatted message
from
- to
- bcc
- cc
- subject
- bodyText
- contentType
- jakarta.mail.MessagingException
public static void setRecipients(io.vertx.core.json.JsonArray recipients, jakarta.mail.internet.MimeMessage email, jakarta.mail.Message.RecipientType type)
Set MimeMessage recipients from JsonArray
recipients
- email
- type
- public void process(DbRequestParameters<io.vertx.core.json.JsonObject> request) throws java.lang.Exception
AsyncDominoBase
Actual work is done here. The DbRequestParameters injects all needed components as well as functions like validation and results
request
- DbRequestParameters granting access to session and databasejava.lang.Exception
- Anything that can go wrong, will go wrong