|
|
@ -7,6 +7,7 @@ import com.fr.decision.webservice.utils.user.source.UserSource; |
|
|
|
import com.fr.decision.webservice.v10.user.UserService; |
|
|
|
import com.fr.decision.webservice.v10.user.UserService; |
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @author richie |
|
|
|
* @author richie |
|
|
@ -63,4 +64,15 @@ public class UserKit { |
|
|
|
public static void add(OpenUser user) throws Exception { |
|
|
|
public static void add(OpenUser user) throws Exception { |
|
|
|
AuthorityContext.getInstance().getUserController().update(user.select()); |
|
|
|
AuthorityContext.getInstance().getUserController().update(user.select()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 通过邮箱获取用户名数组 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param email 邮箱 |
|
|
|
|
|
|
|
* @return 用户名数组 |
|
|
|
|
|
|
|
* @throws Exception 如果邮箱不存在则抛出此异常 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static List<String> getUserNamesFromEmail(String email) throws Exception { |
|
|
|
|
|
|
|
return UserService.getInstance().getUserNamesFromEmail(email); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|