简体   繁体   English

用户Dao访问WSO2 API Manager中的内部用户存储

[英]User Dao to access internal user store in WSO2 API Manager

Im trying to write a customized user signup workflow extension for a WSO2 API Manager(v. 1.8.0). 我正在尝试为WSO2 API Manager(v.1.8.0)编写自定义用户注册工作流扩展。 I would like to send a notification email to the admin whenever a user signs up in the api store. 我想在用户在api商店注册时向管理员发送通知电子邮件。 In the email i would like to include basic data about the user - email, first name, last name etc...I have difficulty finding out which class I can use to retrieve this data. 在电子邮件中,我想要包含有关用户的基本数据 - 电子邮件,名字,姓氏等...我很难找到可用于检索此数据的类。

Application registration workflow and subscription workflow have DTO classes (ApplicationRegistrationWorkflowDTO.java ,SubscriptionWorkflowDTO.java) where you can cast the WorkflowDTO to them and get the details related to that workflows. 应用程序注册工作流和订阅工作流具有DTO类(ApplicationRegistrationWorkflowDTO.java,SubscriptionWorkflowDTO.java),您可以在其中将WorkflowDTO转换为它们并获取与该工作流相关的详细信息。 But For user signup workflow I couldn't find such DTO class . 但对于用户注册工作流程,我找不到这样的DTO类。 But as I know when user signup ,all the details of that user will be stored as user profile(which is a feature of IS used in apimanger). 但据我所知,当用户注册时,该用户的所有细节都将存储为用户配置文件(这是apimanger中使用的IS的一项功能)。 So by admin service call you can get the user profile of a particular user.here[1] you can find a sample User profile management service client. 因此,通过管理服务调用,您可以获取特定用户的用户配置文件。[1]您可以找到示例用户配置文件管理服务客户端。 Hope this would help you. 希望这会对你有所帮助。

1 . 1。 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/UserProfileMgtServiceClient.java https://svn.wso2.org/repos/wso2/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/碳/自动化/ API /客户/身份证/ UserProfileMgtServiceClient.java

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM