| Modifier | Constructor and Description | 
|---|---|
protected  | 
AuditLogBuilder(String message,
               boolean negative)  | 
| Modifier and Type | Method and Description | 
|---|---|
AuditLog.AuditLogBuilder | 
causedByCurrentUser()
Marks the entry as caused by the current user in  
UserContext.getCurrentUser(). | 
AuditLog.AuditLogBuilder | 
causedByUser(String id,
            String name)
Marks the entry as caused by the given user. 
 | 
AuditLog.AuditLogBuilder | 
forCurrentUser()
Creates the entry for the current user in  
UserContext.getCurrentUser(). | 
AuditLog.AuditLogBuilder | 
forTenant(String id,
         String name)
Creates the entry for the given tenant. 
 | 
AuditLog.AuditLogBuilder | 
forUser(String id,
       String name)
Creates the entry for the given user. 
 | 
void | 
log()
Writes the entry into the log table. 
 | 
protected AuditLogBuilder(String message, boolean negative)
@CheckReturnValue public AuditLog.AuditLogBuilder forCurrentUser()
UserContext.getCurrentUser().@CheckReturnValue public AuditLog.AuditLogBuilder forUser(@Nullable String id, @Nullable String name)
id - the ID of the username - the name of the user@CheckReturnValue public AuditLog.AuditLogBuilder causedByCurrentUser()
UserContext.getCurrentUser().@CheckReturnValue public AuditLog.AuditLogBuilder causedByUser(@Nullable String id, @Nullable String name)
id - the ID of the username - the name of the user@CheckReturnValue public AuditLog.AuditLogBuilder forTenant(@Nullable String id, @Nullable String name)
id - the ID of the tenantname - the name of the tenantpublic void log()
Copyright © 2018. All rights reserved.