Package org.bonitasoft.engine.mdc
Class UserIdMDC
java.lang.Object
org.bonitasoft.engine.mdc.AbstractMDC
org.bonitasoft.engine.mdc.UserIdMDC
- All Implemented Interfaces:
AutoCloseable,MDCConstants
-
Field Summary
Fields inherited from interface org.bonitasoft.engine.mdc.MDCConstants
CORRELATION_REQUEST_ID, FLOW_NODE_INSTANCE_ID, PROCESS_DEFINITION_ID, PROCESS_INSTANCE_ID, REQUEST_ID, REQUEST_METHOD, REQUEST_QUERY_STRING, REQUEST_REMOTE_HOST_MDC_KEY, REQUEST_REQUEST_URI, REQUEST_REQUEST_URL, REQUEST_USER_AGENT_MDC_KEY, REQUEST_X_FORWARDED_FOR, ROOT_PROCESS_INSTANCE_ID, SUBSTITUTE_USER_ID, TRANSACTION_ID, USER_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsupplierFromOptionalId(Optional<Long> userId) Get a supplier from an optional user idMethods inherited from class org.bonitasoft.engine.mdc.AbstractMDC
close
-
Constructor Details
-
UserIdMDC
Build MDC with user id.- Parameters:
userId- authenticated user id
-
-
Method Details
-
supplierFromOptionalId
Get a supplier from an optional user id- Parameters:
userId- authenticated user id or empty- Returns:
- supplier supplies a valid MDC or
null
-