Complete documentation for Kotlin

15 views
Skip to first unread message

Franck Benault

unread,
Jan 2, 2018, 5:40:12 PM1/2/18
to Audit4j
Hello,

Audit4j works fine with Kotlin (of course!)

Is it possible to complete the documentation topic 5.1 with a new tab "Kotlin"

AuditManager
val actor = MyApplicationContext.getAuthenticatedUser()
var manager = AuditManager.getInstance()
manager.audit(AuditEvent(actor, "myMethod", Field("myParam1Name", myParam1), Field("myParam2Name", myParam2)))
 
EventBuilder
val actor = MyApplicationContext.getAuthenticatedUser()
var builder = EventBuilder();
builder.addActor(actor).addAction("myMethod").addField("myParam1Name", myParam1).addField("myParam2Name", myParam2)
var manager = AuditManager.getInstance()
manager.audit(builder.build())

Regards Franck

Janith Bandara

unread,
Jan 3, 2018, 9:29:00 PM1/3/18
to Audit4j
Hi,

Thanks, I'll update this.

If you tested this in a demo project can you push it to the demo project repository?

Regards,
Janith
Reply all
Reply to author
Forward
0 new messages