From add346cf29af60894ecccf76a30d151284cf7b38 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 23 Dec 2024 23:56:12 +0100 Subject: [PATCH] [FEAT] add get userID --- src/org/kar/archidata/filter/GenericContext.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/org/kar/archidata/filter/GenericContext.java b/src/org/kar/archidata/filter/GenericContext.java index 4938741..a14443e 100644 --- a/src/org/kar/archidata/filter/GenericContext.java +++ b/src/org/kar/archidata/filter/GenericContext.java @@ -19,4 +19,11 @@ public class GenericContext implements Principal { } return this.userByToken.name; } + + public Long getUserID() { + if (this.userByToken != null) { + return this.userByToken.id; + } + return null; + } }