@MinimumAcl(value=DEPOSITOR) @AclAttributes(value=CreateDocuments) public class CreatePerson extends AsyncDominoJNXJson
Implements OperationId: createPerson Creates Person details in Notes contacts. Example Payload: { "UUID":
"65e75e19-1abf-41b9-884c-8d11c3aa2ad3", "body": { "Form": "Person", "Type":
"Person", "Title": "Mr.", "FirstName": "Steve", "LastName": "Kerr",
"FullNameInput": "Mr. Steve Kerr", "FullName": "Steve Kerr" }, "headers": {
"jwtclaim":
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJUaGUgRGVtbyBXaXp6YXJkIiwic3ViIjoiTWFudWVsIExvcmVuem8gTGVybWEvUGhpbGlwcGluZXMvUE5QSENMIiwiaWF0IjoxNTk3NDIxOTExLCJleHAiOjE1OTc0NDM1MTEsImF1ZCI6IkRvbWlubyJ9.jWkCf0zY06D29a9ol0IN0BhCGmTKj9STpbVrK6IKFAY",
"db": "MAIL", "operationId": "createPerson", "mergeChunks": "false",
"sourceForEventBus": "com.hcl.domino.keep.handlers.pim.DefaultPimHandler",
"tags": "contacts" }, "replicaid": "482585590040A750", "apiName": "MAIL",
"filepath": "DemoMail.nsf", "title": "DemoMail" }
Example Result: {
"status": "OK", "statusCode": 200, "message": "creation complete", "unid":
"506628691D08E3F9482585C4005AF0EF" }
AsyncDominoBase.RequestType
apiName, appTags, logger, requestParams, UNNEEDED_CALL, user, vertx
Constructor and Description |
---|
CreatePerson() |
Modifier and Type | Method and Description |
---|---|
void |
process(DbRequestParameters<io.vertx.core.json.JsonObject> request)
Returns status of created contact
|
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 void process(DbRequestParameters<io.vertx.core.json.JsonObject> request) throws java.lang.Exception
Returns status of created contact
request
- DbRequestParameters granting access to session and databasejava.lang.Exception
- Anything that can go wrong, will go wrong