简体   繁体   English

WSO2治理标签

[英]WSO2 Governance Tag

I've uploaded a good amount of resources into WSO2 governance with a Java program and automatically uploaded the Tags with registry.applyTag(resourcePath, "svc"); 我已经使用Java程序将大量资源上载到WSO2治理中,并使用Registry.applyTag(resourcePath,“ svc”)自动上载了标签;

My plan is to grab all the services off of WSO2 with another Java program that checks which resources have this tag (which, ideally, would be all) so that I can export an XML from them. 我的计划是使用另一个Java程序从WSO2中获取所有服务,该Java程序检查哪些资源具有此标记(理想情况下将是全部),以便可以从中导出XML。 (with this code: registry.getResourcePathsWithTag("svc")) Not sure if this is the right approach, but it's the only one I could come up with. (使用以下代码:registry.getResourcePathsWithTag(“ svc”))不确定这是否是正确的方法,但这是我唯一能想到的方法。

My question is, is there a way to automatically set this Tag from the "Add" screen in the Management Console? 我的问题是,有没有办法从管理控制台的“添加”屏幕自动设置此标记? I know you can go back to Browse and add it there, but I don't want to forget this tag and other user will be adding services. 我知道您可以返回“浏览”并将其添加到此处,但我不想忘记此标签,其他用户将添加服务。

Any suggestions on how to do this? 有关如何执行此操作的任何建议? or a better way to export the metadata from WSO2 other than searching for tags? 还是从WSO2导出元数据的更好方法,而不是搜索标签?
Thanks! 谢谢!

If you need to add specific tag for each service you are going to add, you can use registry handlers. 如果您需要为要添加的每个服务添加特定的标记,则可以使用注册表处理程序。 When resource is inserting( put operation), you can add custom tag for it. 当资源正在插入( put操作)时,您可以为其添加自定义标签。

Please refer Handler Sample documentation. 请参阅处理程序样本文档。

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

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