From e0e69660af9cbfbe84fbd8310c4e7ec8e5bee3ea Mon Sep 17 00:00:00 2001 From: "yadong.zhang" Date: Mon, 4 Oct 2021 23:41:13 +0800 Subject: [PATCH] :sparkles: feat: Add createAndGetLdapUser method to JapUserService --- .../java/com/fujieid/jap/core/JapUserService.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/jap-core/src/main/java/com/fujieid/jap/core/JapUserService.java b/jap-core/src/main/java/com/fujieid/jap/core/JapUserService.java index eb32426..a2d451d 100644 --- a/jap-core/src/main/java/com/fujieid/jap/core/JapUserService.java +++ b/jap-core/src/main/java/com/fujieid/jap/core/JapUserService.java @@ -124,4 +124,17 @@ public interface JapUserService { } + /** + * Save the ldap user information to the database and return JapUser + *

+ * It is suitable for the {@code jap-ldap} module + * + * @param userInfo User information obtained through ldap login, type {@code com.fujieid.jap.ldap.model.LdapPerson} + * @return When saving successfully, return {@code JapUser}, otherwise return {@code null} + * @since 1.0.6 + */ + default JapUser createAndGetLdapUser(Object userInfo) { + return null; + } + } -- GitLab