public class GetMailboxInfo extends AsyncDominoJNXJson
Implements OperationId: getMailboxInfo Get individual mailbox information Example Payload: { "mailboxid": "MAIL", "headers": { "jwtclaim":
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJUaGUgRGVtbyBXaXp6YXJkIiwic3ViIjoiTWFudWVsI
ExvcmVuem8gTGVybWEvUGhpbGlwcGluZXMvUE5QSENMIiwiaWF0IjoxNTk1ODc0NDA3LCJleHAiOjE1OTU4OTYwMDcsIm
F1ZCI6IkRvbWlubyJ9.RMWCzdjtxYKe8_WP7pBs6HepDrns4dlLVE4FtjabNc0", "db":
"MAIL", "operationId": "getMailboxInfo" }, "replicaid": "482585590040A750",
"apiName": "MAIL", "filepath": "DemoMail.nsf", "title": "DemoMail" }
Example Result: { "Title": "DemoMail's mailbox", "count ": 52,
"filepath": "DemoMail.nsf", "replicaid": "482585590040A750", "unread": 40,
"viewInfo": [ { "FolderId": "738CB93AE2E1B7F8852564B5001283E2", "View":
"($Calendar)", "isFolder": "false", "Alias": [ "Calendar" ], "DocumentCount":
8, "DisplayName": "Calendar", "Calendars": [ { "CalendarId": "testCalendar",
"DocumentCount": 2 }, { "CalendarId": "TeamCalendar", "DocumentCount": 0 } ]
}, { "FolderId": "21D822802DA4AA14852567D6005BD9EB", "View": "($Contacts)",
"isFolder": "false", "Alias": [ "People" ], "DocumentCount": 5,
"DisplayName": "($Contacts)", "Folders": [ { "FolderId":
"22E94B49E5DEF292482585F1004CF16B", "View": "Sample contacts",
"DocumentCount": 0, "DisplayName": "Sample contacts" }, { "FolderId":
"50E72E4792BD8E5E482585F1004885FD", "View": "Sports Contacts",
"DocumentCount": 0, "DisplayName": "Sports Contacts" }, { "FolderId":
"05F6906CC63FA569482585F10048922C", "View": "Sports Contacts\\NBA Contacts",
"DocumentCount": 1, "ParentId": "50E72E4792BD8E5E482585F1004885FD",
"DisplayName": "NBA Contacts" }, { "FolderId":
"24DC84175763C3D2482585F1004D2F85", "View": "new contacts", "DocumentCount":
1, "DisplayName": "new contacts" } ] }, { "FolderId":
"739290EBC9A3D527852569690058A018", "View": "($Journal)", "isFolder":
"false", "Alias": [ "Notebook" ], "DocumentCount": 0, "DisplayName":
"Journal", "Folders": [ { "FolderId": "5AA1B3E0DED4DA28482585F8005542A0",
"View": "Important Notes", "DocumentCount": 0, "DisplayName": "Important
Notes" } ] }, { "FolderId": "C82CD0A7E61B2866852564B5001283EB", "View":
"($ToDo)", "isFolder": "false", "Alias": [ "Tasks" ], "DocumentCount": 5,
"DisplayName": "Tasks", "Folders": [ { "FolderId":
"B8E7F20C54D077BF482585F30048ACAF", "View": "Imp Tasks", "DocumentCount": 0,
"DisplayName": "Imp Tasks" }, { "FolderId":
"70130A7552158D76482585F30048DD59", "View": "new Tasks", "DocumentCount": 1,
"DisplayName": "new Tasks" } ] } ], "delegation": [ { "name": "-Default-",
"level": "NOACCESS", "roles": [], "flags": [ "AUTHOR_NOCREATE", "NODELETE",
"NOREPLICATE" ], "type": "" }, { "name": "OtherDomainServers", "level":
"NOACCESS", "roles": [], "flags": [ "AUTHOR_NOCREATE", "NODELETE",
"NOREPLICATE" ], "type": "GROUP" }, { "name": "CN=Manuel Lorenzo
Lerma/OU=Philippines/O=PNPHCL", "level": "MANAGER", "roles": [], "flags": [
"CREATE_PRAGENT", "CREATE_PRFOLDER", "CREATE_FOLDER", "CREATE_LOTUSSCRIPT",
"PUBLICREADER", "PUBLICWRITER" ], "type": "PERSON" }, { "name": "Anonymous",
"level": "NOACCESS", "roles": [], "flags": [ "AUTHOR_NOCREATE", "NODELETE",
"NOREPLICATE" ], "type": "" }, { "name": "LocalDomainServers", "level":
"MANAGER", "roles": [], "type": "GROUP", "flags": [ "CREATE_PRAGENT",
"CREATE_PRFOLDER", "CREATE_FOLDER", "CREATE_LOTUSSCRIPT", "PUBLICREADER",
"PUBLICWRITER" ] }, { "name": "CN=John Doe/O=Mauraders", "level": "MANAGER",
"roles": [], "flags": [ "CREATE_PRAGENT", "CREATE_PRFOLDER", "CREATE_FOLDER",
"CREATE_LOTUSSCRIPT", "PUBLICREADER", "PUBLICWRITER" ], "type": "PERSON" } ]
}
AsyncDominoBase.RequestType
apiName, appTags, logger, requestParams, UNNEEDED_CALL, user, vertx
Constructor and Description |
---|
GetMailboxInfo()
Standard constructor
|
GetMailboxInfo(LabelHelper labelHelper)
Constructor with mock object
|
Modifier and Type | Method and Description |
---|---|
void |
process(DbRequestParameters<io.vertx.core.json.JsonObject> request)
Actual work is done here.
|
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 GetMailboxInfo()
Standard constructor
public GetMailboxInfo(LabelHelper labelHelper)
Constructor with mock object
labelHelper
- 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