public class UpdateMessageProperties extends AsyncDominoJNXJson
UpdateMessageProperties iterates over lists of messages and sets / unsets three properties flags: follow up, soft delete, and unread.
AsyncDominoBase.RequestType
Modifier and Type | Field and Description |
---|---|
protected boolean |
contentFound |
protected io.vertx.core.json.JsonObject |
result |
apiName, appTags, logger, requestParams, UNNEEDED_CALL, user, vertx
Constructor and Description |
---|
UpdateMessageProperties() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
convertToArray(io.vertx.core.json.JsonArray jsonIdArray)
convertToArray converts a JsonArray of Document unids to an ArrayList.
|
protected void |
handleFollowUpFlag(KeepJnxSession s,
com.hcl.domino.data.Database db,
io.vertx.core.json.JsonArray followUpOnIds,
io.vertx.core.json.JsonArray followUpOffIds)
handleFollowUpFlag turns a document’s Follow Up flag on or off.
|
protected void |
handleFollowUpFlagImpl(KeepJnxSession s,
com.hcl.domino.data.Database db,
io.vertx.core.json.JsonArray docIds,
boolean followUp)
handleFollowUpFlagImpl turns a document’s Follow Up flag on or off.
|
protected void |
handleSoftDeleteFlag(KeepJnxSession s,
com.hcl.domino.data.Database db,
io.vertx.core.json.JsonArray softDeleteOnIds,
io.vertx.core.json.JsonArray softDeleteOffIds)
handleSoftDeleteFlag turns a document’s Soft Delete flag on or off.
|
protected void |
handleSoftDeleteFlagImpl(KeepJnxSession s,
com.hcl.domino.data.Database db,
io.vertx.core.json.JsonArray docIds,
boolean softDelete)
handleSoftDeleteFlagImpl turns a document’s Soft Delete flag on or off.
|
protected void |
handleUnreadFlag(com.hcl.domino.DominoClient client,
KeepJnxSession s,
com.hcl.domino.data.Database db,
io.vertx.core.json.JsonArray unreadOnIds,
io.vertx.core.json.JsonArray unreadOffIds)
handleUnreadFlag turns a document’s Unread flag on or off.
|
protected void |
onAbsenceOfEitherFollowupIds(DbRequestParameters<io.vertx.core.json.JsonObject> request,
io.vertx.core.json.JsonArray followUpOnIds,
io.vertx.core.json.JsonArray followUpOffIds) |
void |
process(DbRequestParameters<io.vertx.core.json.JsonObject> request)
process fetches lists of document ids.
|
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
protected boolean contentFound
protected final io.vertx.core.json.JsonObject result
public static java.util.List<java.lang.String> convertToArray(io.vertx.core.json.JsonArray jsonIdArray)
convertToArray converts a JsonArray of Document unids to an ArrayList.
jsonIdArray
- the array to convertprotected void handleFollowUpFlag(KeepJnxSession s, com.hcl.domino.data.Database db, io.vertx.core.json.JsonArray followUpOnIds, io.vertx.core.json.JsonArray followUpOffIds)
handleFollowUpFlag turns a document’s Follow Up flag on or off.
s
- current sessiondb
- current databasefollowUpOnIds
- documents to turn on Follow UpfollowUpOffIds
- documents to turn off Follow Upprotected void handleFollowUpFlagImpl(KeepJnxSession s, com.hcl.domino.data.Database db, io.vertx.core.json.JsonArray docIds, boolean followUp)
handleFollowUpFlagImpl turns a document’s Follow Up flag on or off.
s
- current sessiondb
- current databasedocIds
- the array of document ids to be processedfollowUp
- true if soft delete should be turned onprotected void handleSoftDeleteFlag(KeepJnxSession s, com.hcl.domino.data.Database db, io.vertx.core.json.JsonArray softDeleteOnIds, io.vertx.core.json.JsonArray softDeleteOffIds)
handleSoftDeleteFlag turns a document’s Soft Delete flag on or off.
s
- current sessiondb
- current databasesoftDeleteOnIds
- documents to turn on Soft DeletesoftDeleteOffIds
- documents to turn off Soft Deleteprotected void handleSoftDeleteFlagImpl(KeepJnxSession s, com.hcl.domino.data.Database db, io.vertx.core.json.JsonArray docIds, boolean softDelete)
handleSoftDeleteFlagImpl turns a document’s Soft Delete flag on or off.
s
- current sessiondb
- current databasedocIds
- the array of document ids to be processedsoftDelete
- true if soft delete should be turned onprotected void handleUnreadFlag(com.hcl.domino.DominoClient client, KeepJnxSession s, com.hcl.domino.data.Database db, io.vertx.core.json.JsonArray unreadOnIds, io.vertx.core.json.JsonArray unreadOffIds)
handleUnreadFlag turns a document’s Unread flag on or off.
s
- current sessiondb
- current databaseunreadOnIds
- documents to be marked unreadunreadOffIds
- documents to be marked readprotected void onAbsenceOfEitherFollowupIds(DbRequestParameters<io.vertx.core.json.JsonObject> request, io.vertx.core.json.JsonArray followUpOnIds, io.vertx.core.json.JsonArray followUpOffIds)
request
- followUpOnIds
- followUpOffIds
- public void process(DbRequestParameters<io.vertx.core.json.JsonObject> request) throws java.lang.Exception
process fetches lists of document ids. Tt then iterates over each list, fetches the proper document, and changes its corresponding message property.
followUpOn document ids to turn on Follow Up followUpOFF documents ids to turn off Follow Up softDeleteOn documents ids to turn on Soft DeleteOn softDeleteOff documents to turn off Soft Delete
request
- java.lang.Exception
- Anything that can go wrong, will go wrong