Class UserUuidTransformation
java.lang.Object
com.appiancorp.suiteapi.process.history.UserUuidTransformation
UserUuidTransformation
As process audit history returns users in user UUID form, this allows those user UUIDs to be transformed
into usernames. This can be expensive (with calls to fetch usernames from their user UUIDs the first time
they are encountered), so done optionally.
Within the Consumer of AuditHistoryRow, keep an instance of this, and invoke usernameUuidTransformation on
each AuditHistoryRow instance, but ONLY if you want the values to have their user UUIDs remapped to
usernames.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionusernameUuidTransformation
(AuditHistoryRow auditHistoryRow) Transform this auditHistoryRow's user UUID, and its CompleteValue or PartialValue's user UUIDS, into usernames.
-
Constructor Details
-
UserUuidTransformation
- Parameters:
serviceContext
- to be used to fetch user UUIDS into usernames
-
-
Method Details
-
usernameUuidTransformation
Transform this auditHistoryRow's user UUID, and its CompleteValue or PartialValue's user UUIDS, into usernames. Do not do this more than once to any given row, or it will attempt to transform usernames as if they were user UUIDs. This may involve calls to the Personalization engine (if POPULATED_UUID is returned).- Parameters:
auditHistoryRow
-- Returns:
- Action.POPULATED_UUID is a UUID was populated from other than cache, otherwise Action.NONE
-